diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 96d85712..de950796 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,7 +1,7 @@ - + @@ -31,7 +31,7 @@ - + diff --git a/android-libpokerth.so-deployment-settings.json b/android-libpokerth.so-deployment-settings.json new file mode 100644 index 00000000..a65fd5ae --- /dev/null +++ b/android-libpokerth.so-deployment-settings.json @@ -0,0 +1,16 @@ +{ + "description": "This file is generated by qmake to be read by androiddeployqt and should not be modified by hand.", + "qt": "/home/min/Dokumente/Qt5.13.0/5.13.0/android_armv7", + "sdk": "/home/min/Dokumente/Android", + "sdkBuildToolsRevision": "", + "ndk": "/home/min/Dokumente/Android/android-ndk-r13b", + "toolchain-prefix": "arm-linux-androideabi", + "tool-prefix": "arm-linux-androideabi", + "toolchain-version": "4.9", + "ndk-host": "linux-x86_64", + "target-architecture": "armeabi-v7a", + "qml-root-path": "/home/min/Dokumente/pokerth", + "stdcpp-path": "/home/min/Dokumente/Android/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so", + "useLLVM": false, + "application-binary": "/home/min/Dokumente/pokerth/libpokerth.so" +} diff --git a/pokerth.pro.user b/pokerth.pro.user new file mode 100644 index 00000000..b03b031f --- /dev/null +++ b/pokerth.pro.user @@ -0,0 +1,230 @@ + + + + + + EnvironmentId + {305266b5-7802-47a6-9864-ddd965ca89a2} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Qt 5.13.0 for Android ARMv7 + Qt 5.13.0 for Android ARMv7 + {548474b4-3c43-4596-9405-a81c8aa43ccd} + 0 + 0 + 0 + + /home/min/Dokumente/pokerth + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + 'CONFIG+=client gui_800x480' 'PREFIX+=/home/min/Dokumente/Android/cmoss/bin/droid' + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Erstellen + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Bereinigen + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 1 + + + + true + Deployment auf Android-Gerät + + Qt4ProjectManager.AndroidDeployQtStep + false + + 1 + Deployment + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deployment auf Android-Gerät + + Qt4ProjectManager.AndroidDeployConfiguration2 + + 1 + + + dwarf + + cpu-cycles + + + 250 + -F + true + 4096 + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + + + 0 + + pokerth_game + pokerth_game + Qt4ProjectManager.AndroidRunConfiguration:/home/min/Dokumente/pokerth/pokerth_game.pro + + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 21 + + + Version + 21 + + diff --git a/pokerth_game.pro b/pokerth_game.pro index 5860b515..a369896b 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -538,7 +538,7 @@ unix:!mac { $$BOOST_IOSTREAMS \ $$BOOST_REGEX \ $$BOOST_SYS - !count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}/armv5") + !count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}/armv7") LIBS += -ltinyxml LIBS += $$BOOST_LIBS LIBS += -lgsasl -lidn @@ -673,6 +673,7 @@ android{ DEFINES += TIXML_USE_STL # sqlite3 is included directly. INCLUDEPATH += src/third_party/sqlite3 + INCLUDEPATH += /home/min/Dokumente/Android/android-ndk-r13b/platforms/android-19/arch-arm/usr/include # sound system switches !android_api8 { diff --git a/pokerth_lib.pro b/pokerth_lib.pro index 8612a86d..dc197969 100644 --- a/pokerth_lib.pro +++ b/pokerth_lib.pro @@ -31,7 +31,7 @@ INCLUDEPATH += . \ src/engine/network_engine \ src/config \ src/core \ - src/third_party/websocketpp + src/third_party/websocketpp DEPENDPATH += . \ src \ @@ -312,6 +312,7 @@ android{ DEFINES += BOOST_FILESYSTEM_VERSION=3 # sqlite3 is included directly. INCLUDEPATH += src/third_party/sqlite3 + INCLUDEPATH += /home/min/Dokumente/Android/android-ndk-r13b/platforms/android-19/arch-arm/usr/include SOURCES += src/third_party/sqlite3/sqlite3.c } diff --git a/protoc.exe b/protoc.exe new file mode 100755 index 00000000..2d8d4a5d Binary files /dev/null and b/protoc.exe differ diff --git a/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp b/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp index 67f9cfcf..aa7802aa 100755 --- a/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp +++ b/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp @@ -35,7 +35,7 @@ #ifdef ANDROID #ifndef ANDROID_TEST -#include "QtGui/5.7.1/QtGui/qpa/qplatformnativeinterface.h" +#include "QtGui/5.13.0/QtGui/qpa/qplatformnativeinterface.h" #include #endif #endif diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index e0743b8b..370615be 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -69,7 +69,7 @@ #ifdef ANDROID #ifndef ANDROID_TEST -#include "QtGui/5.7.1/QtGui/qpa/qplatformnativeinterface.h" +#include "QtGui/5.13.0/QtGui/qpa/qplatformnativeinterface.h" #include #endif #endif diff --git a/src/gui/qt/startwindow/startwindowimpl.cpp b/src/gui/qt/startwindow/startwindowimpl.cpp index aea34557..cadfd653 100644 --- a/src/gui/qt/startwindow/startwindowimpl.cpp +++ b/src/gui/qt/startwindow/startwindowimpl.cpp @@ -61,7 +61,7 @@ #ifdef ANDROID #ifndef ANDROID_TEST -#include "QtGui/5.7.1/QtGui/qpa/qplatformnativeinterface.h" +#include "QtGui/5.13.0/QtGui/qpa/qplatformnativeinterface.h" #include #endif #endif diff --git a/src/third_party/protobuf/chatcleaner.pb.cc b/src/third_party/protobuf/chatcleaner.pb.cc index 8a42b082..a35bf013 100644 --- a/src/third_party/protobuf/chatcleaner.pb.cc +++ b/src/third_party/protobuf/chatcleaner.pb.cc @@ -1,162 +1,51 @@ // 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 // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CleanerChatReplyMessage_chatcleaner_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CleanerChatRequestMessage_chatcleaner_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CleanerInitAckMessage_chatcleaner_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CleanerInitMessage_chatcleaner_2eproto; -class CleanerInitMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CleanerInitMessage_default_instance_; -class CleanerInitAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CleanerInitAckMessage_default_instance_; -class CleanerChatRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CleanerChatRequestMessage_default_instance_; -class CleanerChatReplyMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CleanerChatReplyMessage_default_instance_; -class ChatCleanerMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ChatCleanerMessage_default_instance_; -static void InitDefaultsCleanerInitMessage_chatcleaner_2eproto() { +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_; +} + +void protobuf_AddDesc_chatcleaner_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::_CleanerInitMessage_default_instance_; - new (ptr) ::CleanerInitMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::CleanerInitMessage::InitAsDefaultInstance(); + 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); } -::google::protobuf::internal::SCCInfo<0> scc_info_CleanerInitMessage_chatcleaner_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCleanerInitMessage_chatcleaner_2eproto}, {}}; - -static void InitDefaultsCleanerInitAckMessage_chatcleaner_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_CleanerInitAckMessage_default_instance_; - new (ptr) ::CleanerInitAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_chatcleaner_2eproto { + StaticDescriptorInitializer_chatcleaner_2eproto() { + protobuf_AddDesc_chatcleaner_2eproto(); } - ::CleanerInitAckMessage::InitAsDefaultInstance(); -} +} static_descriptor_initializer_chatcleaner_2eproto_; -::google::protobuf::internal::SCCInfo<0> scc_info_CleanerInitAckMessage_chatcleaner_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCleanerInitAckMessage_chatcleaner_2eproto}, {}}; - -static void InitDefaultsCleanerChatRequestMessage_chatcleaner_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_CleanerChatRequestMessage_default_instance_; - new (ptr) ::CleanerChatRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::CleanerChatRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CleanerChatRequestMessage_chatcleaner_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCleanerChatRequestMessage_chatcleaner_2eproto}, {}}; - -static void InitDefaultsCleanerChatReplyMessage_chatcleaner_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_CleanerChatReplyMessage_default_instance_; - new (ptr) ::CleanerChatReplyMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::CleanerChatReplyMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CleanerChatReplyMessage_chatcleaner_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCleanerChatReplyMessage_chatcleaner_2eproto}, {}}; - -static void InitDefaultsChatCleanerMessage_chatcleaner_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ChatCleanerMessage_default_instance_; - new (ptr) ::ChatCleanerMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ChatCleanerMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_ChatCleanerMessage_chatcleaner_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsChatCleanerMessage_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,}}; - -bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !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; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 bool CleanerChatType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: return true; @@ -168,270 +57,158 @@ bool CleanerChatType_IsValid(int value) { // =================================================================== -void CleanerInitMessage::InitAsDefaultInstance() { -} -class CleanerInitMessage::HasBitSetters { - public: - static void set_has_requestedversion(CleanerInitMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_clientsecret(CleanerInitMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const int CleanerInitMessage::kRequestedVersionFieldNumber; const int CleanerInitMessage::kClientSecretFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER CleanerInitMessage::CleanerInitMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:CleanerInitMessage) } + +void CleanerInitMessage::InitAsDefaultInstance() { +} + CleanerInitMessage::CleanerInitMessage(const CleanerInitMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clientsecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_clientsecret()) { - clientsecret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clientsecret_); - } - requestedversion_ = from.requestedversion_; - // @@protoc_insertion_point(copy_constructor:CleanerInitMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void CleanerInitMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CleanerInitMessage_chatcleaner_2eproto.base); - clientsecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; requestedversion_ = 0u; + clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitMessage::~CleanerInitMessage() { - // @@protoc_insertion_point(destructor:CleanerInitMessage) SharedDtor(); } void CleanerInitMessage::SharedDtor() { - clientsecret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { + delete clientsecret_; + } + if (this != default_instance_) { + } } void CleanerInitMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const CleanerInitMessage& CleanerInitMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CleanerInitMessage_chatcleaner_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); return *default_instance_; } +CleanerInitMessage* CleanerInitMessage::default_instance_ = NULL; + +CleanerInitMessage* CleanerInitMessage::New() const { + return new CleanerInitMessage; +} void CleanerInitMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:CleanerInitMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestedversion_ = 0u; + if (has_clientsecret()) { + if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { + clientsecret_->clear(); + } + } } - requestedversion_ = 0u; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CleanerInitMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestedVersion = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestedversion(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required string clientSecret = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_clientsecret(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CleanerInitMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:CleanerInitMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required uint32 requestedVersion = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestedversion(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(18)) goto parse_clientSecret; break; } - + // required string clientSecret = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:CleanerInitMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:CleanerInitMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CleanerInitMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:CleanerInitMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; // required uint32 requestedVersion = 1; - if (cached_has_bits & 0x00000002u) { + if (has_requestedversion()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestedversion(), output); } - + // required string clientSecret = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + if (has_clientsecret()) { + ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->clientsecret(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:CleanerInitMessage) + } -size_t CleanerInitMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitMessage) - size_t total_size = 0; - - if (has_clientsecret()) { - // required string clientSecret = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->clientsecret()); - } - - if (has_requestedversion()) { +int CleanerInitMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required uint32 requestedVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestedversion()); - } - - return total_size; -} -size_t CleanerInitMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:CleanerInitMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + if (has_requestedversion()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestedversion()); + } + // required string clientSecret = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->clientsecret()); - - // required uint32 requestedVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestedversion()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); + if (has_clientsecret()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->clientsecret()); + } + } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -441,27 +218,18 @@ void CleanerInitMessage::CheckTypeAndMergeFrom( } void CleanerInitMessage::MergeFrom(const CleanerInitMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - clientsecret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clientsecret_); + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestedversion()) { + set_requestedversion(from.requestedversion()); } - if (cached_has_bits & 0x00000002u) { - requestedversion_ = from.requestedversion_; + if (from.has_clientsecret()) { + set_clientsecret(from.clientsecret()); } - _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); @@ -469,20 +237,17 @@ void CleanerInitMessage::CopyFrom(const CleanerInitMessage& from) { bool CleanerInitMessage::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + return true; } void CleanerInitMessage::Swap(CleanerInitMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestedversion_, other->requestedversion_); + 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_); + } } ::std::string CleanerInitMessage::GetTypeName() const { @@ -492,270 +257,158 @@ void CleanerInitMessage::InternalSwap(CleanerInitMessage* other) { // =================================================================== -void CleanerInitAckMessage::InitAsDefaultInstance() { -} -class CleanerInitAckMessage::HasBitSetters { - public: - static void set_has_serverversion(CleanerInitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_serversecret(CleanerInitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const int CleanerInitAckMessage::kServerVersionFieldNumber; const int CleanerInitAckMessage::kServerSecretFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER CleanerInitAckMessage::CleanerInitAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:CleanerInitAckMessage) } + +void CleanerInitAckMessage::InitAsDefaultInstance() { +} + CleanerInitAckMessage::CleanerInitAckMessage(const CleanerInitAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - serversecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_serversecret()) { - serversecret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serversecret_); - } - serverversion_ = from.serverversion_; - // @@protoc_insertion_point(copy_constructor:CleanerInitAckMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void CleanerInitAckMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); - serversecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; serverversion_ = 0u; + serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitAckMessage::~CleanerInitAckMessage() { - // @@protoc_insertion_point(destructor:CleanerInitAckMessage) SharedDtor(); } void CleanerInitAckMessage::SharedDtor() { - serversecret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (serversecret_ != &::google::protobuf::internal::kEmptyString) { + delete serversecret_; + } + if (this != default_instance_) { + } } void CleanerInitAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const CleanerInitAckMessage& CleanerInitAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); return *default_instance_; } +CleanerInitAckMessage* CleanerInitAckMessage::default_instance_ = NULL; + +CleanerInitAckMessage* CleanerInitAckMessage::New() const { + return new CleanerInitAckMessage; +} void CleanerInitAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:CleanerInitAckMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + serverversion_ = 0u; + if (has_serversecret()) { + if (serversecret_ != &::google::protobuf::internal::kEmptyString) { + serversecret_->clear(); + } + } } - serverversion_ = 0u; - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CleanerInitAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 serverVersion = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_serverversion(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required string serverSecret = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_serversecret(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CleanerInitAckMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:CleanerInitAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required uint32 serverVersion = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_serverversion(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(18)) goto parse_serverSecret; break; } - + // required string serverSecret = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:CleanerInitAckMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:CleanerInitAckMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CleanerInitAckMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:CleanerInitAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; // required uint32 serverVersion = 1; - if (cached_has_bits & 0x00000002u) { + if (has_serverversion()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->serverversion(), output); } - + // required string serverSecret = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + if (has_serversecret()) { + ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->serversecret(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:CleanerInitAckMessage) + } -size_t CleanerInitAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitAckMessage) - size_t total_size = 0; - - if (has_serversecret()) { - // required string serverSecret = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->serversecret()); - } - - if (has_serverversion()) { +int CleanerInitAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required uint32 serverVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->serverversion()); - } - - return total_size; -} -size_t CleanerInitAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:CleanerInitAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. + if (has_serverversion()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->serverversion()); + } + // required string serverSecret = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->serversecret()); - - // required uint32 serverVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->serverversion()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); + if (has_serversecret()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->serversecret()); + } + } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -765,27 +418,18 @@ void CleanerInitAckMessage::CheckTypeAndMergeFrom( } void CleanerInitAckMessage::MergeFrom(const CleanerInitAckMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitAckMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - serversecret_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serversecret_); + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_serverversion()) { + set_serverversion(from.serverversion()); } - if (cached_has_bits & 0x00000002u) { - serverversion_ = from.serverversion_; + if (from.has_serversecret()) { + set_serversecret(from.serversecret()); } - _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); @@ -793,20 +437,17 @@ void CleanerInitAckMessage::CopyFrom(const CleanerInitAckMessage& from) { bool CleanerInitAckMessage::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + return true; } void CleanerInitAckMessage::Swap(CleanerInitAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(serverversion_, other->serverversion_); + 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_); + } } ::std::string CleanerInitAckMessage::GetTypeName() const { @@ -816,467 +457,291 @@ void CleanerInitAckMessage::InternalSwap(CleanerInitAckMessage* other) { // =================================================================== -void CleanerChatRequestMessage::InitAsDefaultInstance() { -} -class CleanerChatRequestMessage::HasBitSetters { - public: - static void set_has_requestid(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_cleanerchattype(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_gameid(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_playerid(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static void set_has_playername(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_chatmessage(CleanerChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER CleanerChatRequestMessage::CleanerChatRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:CleanerChatRequestMessage) } + +void CleanerChatRequestMessage::InitAsDefaultInstance() { +} + CleanerChatRequestMessage::CleanerChatRequestMessage(const CleanerChatRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_playername()) { - playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_); - } - chatmessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_chatmessage()) { - chatmessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chatmessage_); - } - ::memcpy(&requestid_, &from.requestid_, - static_cast(reinterpret_cast(&playerid_) - - reinterpret_cast(&requestid_)) + sizeof(playerid_)); - // @@protoc_insertion_point(copy_constructor:CleanerChatRequestMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void CleanerChatRequestMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base); - playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - chatmessage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&requestid_, 0, static_cast( - reinterpret_cast(&playerid_) - - reinterpret_cast(&requestid_)) + sizeof(playerid_)); + _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_)); } CleanerChatRequestMessage::~CleanerChatRequestMessage() { - // @@protoc_insertion_point(destructor:CleanerChatRequestMessage) SharedDtor(); } void CleanerChatRequestMessage::SharedDtor() { - playername_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - chatmessage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (playername_ != &::google::protobuf::internal::kEmptyString) { + delete playername_; + } + if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { + delete chatmessage_; + } + if (this != default_instance_) { + } } void CleanerChatRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const CleanerChatRequestMessage& CleanerChatRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); return *default_instance_; } +CleanerChatRequestMessage* CleanerChatRequestMessage::default_instance_ = NULL; + +CleanerChatRequestMessage* CleanerChatRequestMessage::New() const { + return new CleanerChatRequestMessage; +} void CleanerChatRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:CleanerChatRequestMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); + 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(); + } } - if (cached_has_bits & 0x00000002u) { - chatmessage_.ClearNonDefaultToEmptyNoArena(); + if (has_chatmessage()) { + if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { + chatmessage_->clear(); + } } } - if (cached_has_bits & 0x0000003cu) { - ::memset(&requestid_, 0, static_cast( - reinterpret_cast(&playerid_) - - reinterpret_cast(&requestid_)) + sizeof(playerid_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CleanerChatRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .CleanerChatType cleanerChatType = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::CleanerChatType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_cleanerchattype(static_cast<::CleanerChatType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 gameId = 3 [default = 0]; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required string playerName = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_playername(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required string chatMessage = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_chatmessage(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CleanerChatRequestMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:CleanerChatRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required uint32 requestId = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(16)) goto parse_cleanerChatType; break; } - + // required .CleanerChatType cleanerChatType = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; + 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)); - } else { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); + if (CleanerChatType_IsValid(value)) { + set_cleanerchattype(static_cast< CleanerChatType >(value)); } } else { - goto handle_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(24)) goto parse_gameId; break; } - + // optional uint32 gameId = 3 [default = 0]; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_gameid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(32)) goto parse_playerId; break; } - + // required uint32 playerId = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_playerid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(42)) goto parse_playerName; break; } - + // required string playerName = 5; case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(50)) goto parse_chatMessage; break; } - + // required string chatMessage = 6; case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:CleanerChatRequestMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:CleanerChatRequestMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CleanerChatRequestMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:CleanerChatRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; // required uint32 requestId = 1; - if (cached_has_bits & 0x00000004u) { + if (has_requestid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); } - + // required .CleanerChatType cleanerChatType = 2; - if (cached_has_bits & 0x00000008u) { + if (has_cleanerchattype()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->cleanerchattype(), output); } - + // optional uint32 gameId = 3 [default = 0]; - if (cached_has_bits & 0x00000010u) { + if (has_gameid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); } - + // required uint32 playerId = 4; - if (cached_has_bits & 0x00000020u) { + if (has_playerid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); } - + // required string playerName = 5; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + if (has_playername()) { + ::google::protobuf::internal::WireFormatLite::WriteString( 5, this->playername(), output); } - + // required string chatMessage = 6; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + if (has_chatmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteString( 6, this->chatmessage(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:CleanerChatRequestMessage) + } -size_t CleanerChatRequestMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatRequestMessage) - size_t total_size = 0; - - if (has_playername()) { - // required string playerName = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - } - - if (has_chatmessage()) { - // required string chatMessage = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chatmessage()); - } - - if (has_requestid()) { +int CleanerChatRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - if (has_cleanerchattype()) { + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + // required .CleanerChatType cleanerChatType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - if (has_playerid()) { + 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; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t CleanerChatRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:CleanerChatRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000002f) ^ 0x0000002f) == 0) { // All required fields are present. + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + // required string playerName = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - + if (has_playername()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->playername()); + } + // required string chatMessage = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chatmessage()); - - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - - // required .CleanerChatType cleanerChatType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - - // required uint32 playerId = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); + if (has_chatmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->chatmessage()); + } + } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1286,66 +751,52 @@ void CleanerChatRequestMessage::CheckTypeAndMergeFrom( } void CleanerChatRequestMessage::MergeFrom(const CleanerChatRequestMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatRequestMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_); + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); } - if (cached_has_bits & 0x00000002u) { - _has_bits_[0] |= 0x00000002u; - chatmessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chatmessage_); + if (from.has_cleanerchattype()) { + set_cleanerchattype(from.cleanerchattype()); } - if (cached_has_bits & 0x00000004u) { - requestid_ = from.requestid_; + if (from.has_gameid()) { + set_gameid(from.gameid()); } - if (cached_has_bits & 0x00000008u) { - cleanerchattype_ = from.cleanerchattype_; + if (from.has_playerid()) { + set_playerid(from.playerid()); } - if (cached_has_bits & 0x00000010u) { - gameid_ = from.gameid_; + if (from.has_playername()) { + set_playername(from.playername()); } - if (cached_has_bits & 0x00000020u) { - playerid_ = from.playerid_; + if (from.has_chatmessage()) { + set_chatmessage(from.chatmessage()); } - _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] & 0x0000002f) != 0x0000002f) return false; + if ((_has_bits_[0] & 0x0000003b) != 0x0000003b) return false; + return true; } void CleanerChatRequestMessage::Swap(CleanerChatRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - chatmessage_.Swap(&other->chatmessage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestid_, other->requestid_); - swap(cleanerchattype_, other->cleanerchattype_); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); + 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_); + } } ::std::string CleanerChatRequestMessage::GetTypeName() const { @@ -1355,455 +806,311 @@ void CleanerChatRequestMessage::InternalSwap(CleanerChatRequestMessage* other) { // =================================================================== -void CleanerChatReplyMessage::InitAsDefaultInstance() { +bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -class CleanerChatReplyMessage::HasBitSetters { - public: - static void set_has_requestid(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_cleanerchattype(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_gameid(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_playerid(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_cleaneractiontype(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static void set_has_cleanertext(CleanerChatReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER CleanerChatReplyMessage::CleanerChatReplyMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:CleanerChatReplyMessage) } + +void CleanerChatReplyMessage::InitAsDefaultInstance() { +} + CleanerChatReplyMessage::CleanerChatReplyMessage(const CleanerChatReplyMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cleanertext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_cleanertext()) { - cleanertext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cleanertext_); - } - ::memcpy(&requestid_, &from.requestid_, - static_cast(reinterpret_cast(&cleaneractiontype_) - - reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); - // @@protoc_insertion_point(copy_constructor:CleanerChatReplyMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void CleanerChatReplyMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base); - cleanertext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&requestid_, 0, static_cast( - reinterpret_cast(&cleaneractiontype_) - - reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); + _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_)); } CleanerChatReplyMessage::~CleanerChatReplyMessage() { - // @@protoc_insertion_point(destructor:CleanerChatReplyMessage) SharedDtor(); } void CleanerChatReplyMessage::SharedDtor() { - cleanertext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { + delete cleanertext_; + } + if (this != default_instance_) { + } } void CleanerChatReplyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const CleanerChatReplyMessage& CleanerChatReplyMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); return *default_instance_; } +CleanerChatReplyMessage* CleanerChatReplyMessage::default_instance_ = NULL; + +CleanerChatReplyMessage* CleanerChatReplyMessage::New() const { + return new CleanerChatReplyMessage; +} void CleanerChatReplyMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:CleanerChatReplyMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); + 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(); + } + } } - if (cached_has_bits & 0x0000003eu) { - ::memset(&requestid_, 0, static_cast( - reinterpret_cast(&cleaneractiontype_) - - reinterpret_cast(&requestid_)) + sizeof(cleaneractiontype_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CleanerChatReplyMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .CleanerChatType cleanerChatType = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::CleanerChatType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_cleanerchattype(static_cast<::CleanerChatType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 gameId = 3 [default = 0]; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::CleanerChatReplyMessage_CleanerActionType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(5, val, msg->mutable_unknown_fields()); - break; - } - msg->set_cleaneractiontype(static_cast<::CleanerChatReplyMessage_CleanerActionType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional string cleanerText = 6 [default = ""]; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_cleanertext(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool CleanerChatReplyMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:CleanerChatReplyMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required uint32 requestId = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(16)) goto parse_cleanerChatType; break; } - + // required .CleanerChatType cleanerChatType = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; + 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)); - } else { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); + if (CleanerChatType_IsValid(value)) { + set_cleanerchattype(static_cast< CleanerChatType >(value)); } } else { - goto handle_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(24)) goto parse_gameId; break; } - + // optional uint32 gameId = 3 [default = 0]; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_gameid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(32)) goto parse_playerId; break; } - + // required uint32 playerId = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_playerid(this); + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(40)) goto parse_cleanerActionType; break; } - + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - int value = 0; + 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)); - } else { - unknown_fields_stream.WriteVarint32(40u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); } } else { - goto handle_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(50)) goto parse_cleanerText; break; } - + // optional string cleanerText = 6 [default = ""]; case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:CleanerChatReplyMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:CleanerChatReplyMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void CleanerChatReplyMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:CleanerChatReplyMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; // required uint32 requestId = 1; - if (cached_has_bits & 0x00000002u) { + if (has_requestid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); } - + // required .CleanerChatType cleanerChatType = 2; - if (cached_has_bits & 0x00000004u) { + if (has_cleanerchattype()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->cleanerchattype(), output); } - + // optional uint32 gameId = 3 [default = 0]; - if (cached_has_bits & 0x00000008u) { + if (has_gameid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); } - + // required uint32 playerId = 4; - if (cached_has_bits & 0x00000010u) { + if (has_playerid()) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); } - + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - if (cached_has_bits & 0x00000020u) { + if (has_cleaneractiontype()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 5, this->cleaneractiontype(), output); } - + // optional string cleanerText = 6 [default = ""]; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + if (has_cleanertext()) { + ::google::protobuf::internal::WireFormatLite::WriteString( 6, this->cleanertext(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:CleanerChatReplyMessage) + } -size_t CleanerChatReplyMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatReplyMessage) - size_t total_size = 0; - - if (has_requestid()) { +int CleanerChatReplyMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - if (has_cleanerchattype()) { + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + // required .CleanerChatType cleanerChatType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - if (has_playerid()) { + 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; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_cleaneractiontype()) { + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); + 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()); + } + } - - return total_size; -} -size_t CleanerChatReplyMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:CleanerChatReplyMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000036) ^ 0x00000036) == 0) { // All required fields are present. - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - - // required .CleanerChatType cleanerChatType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - - // required uint32 playerId = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cleanertext()); - } - - // optional uint32 gameId = 3 [default = 0]; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -1813,64 +1120,52 @@ void CleanerChatReplyMessage::CheckTypeAndMergeFrom( } void CleanerChatReplyMessage::MergeFrom(const CleanerChatReplyMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatReplyMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - cleanertext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cleanertext_); + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); } - if (cached_has_bits & 0x00000002u) { - requestid_ = from.requestid_; + if (from.has_cleanerchattype()) { + set_cleanerchattype(from.cleanerchattype()); } - if (cached_has_bits & 0x00000004u) { - cleanerchattype_ = from.cleanerchattype_; + if (from.has_gameid()) { + set_gameid(from.gameid()); } - if (cached_has_bits & 0x00000008u) { - gameid_ = from.gameid_; + if (from.has_playerid()) { + set_playerid(from.playerid()); } - if (cached_has_bits & 0x00000010u) { - playerid_ = from.playerid_; + if (from.has_cleaneractiontype()) { + set_cleaneractiontype(from.cleaneractiontype()); } - if (cached_has_bits & 0x00000020u) { - cleaneractiontype_ = from.cleaneractiontype_; + if (from.has_cleanertext()) { + set_cleanertext(from.cleanertext()); } - _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] & 0x00000036) != 0x00000036) return false; + if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false; + return true; } void CleanerChatReplyMessage::Swap(CleanerChatReplyMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestid_, other->requestid_); - swap(cleanerchattype_, other->cleanerchattype_); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(cleaneractiontype_, other->cleaneractiontype_); + 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_); + } } ::std::string CleanerChatReplyMessage::GetTypeName() const { @@ -1880,445 +1175,281 @@ void CleanerChatReplyMessage::InternalSwap(CleanerChatReplyMessage* other) { // =================================================================== -void ChatCleanerMessage::InitAsDefaultInstance() { - ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>( - ::CleanerInitMessage::internal_default_instance()); - ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>( - ::CleanerInitAckMessage::internal_default_instance()); - ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>( - ::CleanerChatRequestMessage::internal_default_instance()); - ::_ChatCleanerMessage_default_instance_._instance.get_mutable()->cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>( - ::CleanerChatReplyMessage::internal_default_instance()); +bool ChatCleanerMessage_ChatCleanerMessageType_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } } -class ChatCleanerMessage::HasBitSetters { - public: - static void set_has_messagetype(ChatCleanerMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static const ::CleanerInitMessage& cleanerinitmessage(const ChatCleanerMessage* msg); - static void set_has_cleanerinitmessage(ChatCleanerMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static const ::CleanerInitAckMessage& cleanerinitackmessage(const ChatCleanerMessage* msg); - static void set_has_cleanerinitackmessage(ChatCleanerMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static const ::CleanerChatRequestMessage& cleanerchatrequestmessage(const ChatCleanerMessage* msg); - static void set_has_cleanerchatrequestmessage(ChatCleanerMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static const ::CleanerChatReplyMessage& cleanerchatreplymessage(const ChatCleanerMessage* msg); - static void set_has_cleanerchatreplymessage(ChatCleanerMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; -const ::CleanerInitMessage& -ChatCleanerMessage::HasBitSetters::cleanerinitmessage(const ChatCleanerMessage* msg) { - return *msg->cleanerinitmessage_; -} -const ::CleanerInitAckMessage& -ChatCleanerMessage::HasBitSetters::cleanerinitackmessage(const ChatCleanerMessage* msg) { - return *msg->cleanerinitackmessage_; -} -const ::CleanerChatRequestMessage& -ChatCleanerMessage::HasBitSetters::cleanerchatrequestmessage(const ChatCleanerMessage* msg) { - return *msg->cleanerchatrequestmessage_; -} -const ::CleanerChatReplyMessage& -ChatCleanerMessage::HasBitSetters::cleanerchatreplymessage(const ChatCleanerMessage* msg) { - return *msg->cleanerchatreplymessage_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER ChatCleanerMessage::ChatCleanerMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:ChatCleanerMessage) } + +void ChatCleanerMessage::InitAsDefaultInstance() { + cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>(&::CleanerInitMessage::default_instance()); + cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>(&::CleanerInitAckMessage::default_instance()); + cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>(&::CleanerChatRequestMessage::default_instance()); + cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>(&::CleanerChatReplyMessage::default_instance()); +} + ChatCleanerMessage::ChatCleanerMessage(const ChatCleanerMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_cleanerinitmessage()) { - cleanerinitmessage_ = new ::CleanerInitMessage(*from.cleanerinitmessage_); - } else { - cleanerinitmessage_ = nullptr; - } - if (from.has_cleanerinitackmessage()) { - cleanerinitackmessage_ = new ::CleanerInitAckMessage(*from.cleanerinitackmessage_); - } else { - cleanerinitackmessage_ = nullptr; - } - if (from.has_cleanerchatrequestmessage()) { - cleanerchatrequestmessage_ = new ::CleanerChatRequestMessage(*from.cleanerchatrequestmessage_); - } else { - cleanerchatrequestmessage_ = nullptr; - } - if (from.has_cleanerchatreplymessage()) { - cleanerchatreplymessage_ = new ::CleanerChatReplyMessage(*from.cleanerchatreplymessage_); - } else { - cleanerchatreplymessage_ = nullptr; - } - messagetype_ = from.messagetype_; - // @@protoc_insertion_point(copy_constructor:ChatCleanerMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void ChatCleanerMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); - ::memset(&cleanerinitmessage_, 0, static_cast( - reinterpret_cast(&cleanerchatreplymessage_) - - reinterpret_cast(&cleanerinitmessage_)) + sizeof(cleanerchatreplymessage_)); + _cached_size_ = 0; messagetype_ = 1; + cleanerinitmessage_ = NULL; + cleanerinitackmessage_ = NULL; + cleanerchatrequestmessage_ = NULL; + cleanerchatreplymessage_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } ChatCleanerMessage::~ChatCleanerMessage() { - // @@protoc_insertion_point(destructor:ChatCleanerMessage) SharedDtor(); } void ChatCleanerMessage::SharedDtor() { - 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_; + if (this != default_instance_) { + delete cleanerinitmessage_; + delete cleanerinitackmessage_; + delete cleanerchatrequestmessage_; + delete cleanerchatreplymessage_; + } } void ChatCleanerMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ChatCleanerMessage& ChatCleanerMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); return *default_instance_; } +ChatCleanerMessage* ChatCleanerMessage::default_instance_ = NULL; + +ChatCleanerMessage* ChatCleanerMessage::New() const { + return new ChatCleanerMessage; +} void ChatCleanerMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ChatCleanerMessage) - ::google::protobuf::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(); - } + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 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(); + } } - _has_bits_.Clear(); - _internal_metadata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ChatCleanerMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::ChatCleanerMessage_ChatCleanerMessageType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_messagetype(static_cast<::ChatCleanerMessage_ChatCleanerMessageType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional .CleanerInitMessage cleanerInitMessage = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::CleanerInitMessage::_InternalParse; - object = msg->mutable_cleanerinitmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::CleanerInitAckMessage::_InternalParse; - object = msg->mutable_cleanerinitackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::CleanerChatRequestMessage::_InternalParse; - object = msg->mutable_cleanerchatrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::CleanerChatReplyMessage::_InternalParse; - object = msg->mutable_cleanerchatreplymessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ChatCleanerMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ChatCleanerMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; + 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)); - } else { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); } } else { - goto handle_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(18)) goto parse_cleanerInitMessage; break; } - + // optional .CleanerInitMessage cleanerInitMessage = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(26)) goto parse_cleanerInitAckMessage; break; } - + // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(34)) goto parse_cleanerChatRequestMessage; break; } - + // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(42)) goto parse_cleanerChatReplyMessage; break; } - + // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:ChatCleanerMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:ChatCleanerMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ChatCleanerMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatCleanerMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - if (cached_has_bits & 0x00000010u) { + if (has_messagetype()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->messagetype(), output); } - + // optional .CleanerInitMessage cleanerInitMessage = 2; - if (cached_has_bits & 0x00000001u) { + if (has_cleanerinitmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, HasBitSetters::cleanerinitmessage(this), output); + 2, this->cleanerinitmessage(), output); } - + // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (cached_has_bits & 0x00000002u) { + if (has_cleanerinitackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, HasBitSetters::cleanerinitackmessage(this), output); + 3, this->cleanerinitackmessage(), output); } - + // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (cached_has_bits & 0x00000004u) { + if (has_cleanerchatrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, HasBitSetters::cleanerchatrequestmessage(this), output); + 4, this->cleanerchatrequestmessage(), output); } - + // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (cached_has_bits & 0x00000008u) { + if (has_cleanerchatreplymessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, HasBitSetters::cleanerchatreplymessage(this), output); + 5, this->cleanerchatreplymessage(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ChatCleanerMessage) + } -size_t ChatCleanerMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ChatCleanerMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } - ::google::protobuf::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) { +int ChatCleanerMessage::ByteSize() const { + int 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()); + } + // optional .CleanerInitMessage cleanerInitMessage = 2; - if (cached_has_bits & 0x00000001u) { + if (has_cleanerinitmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cleanerinitmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cleanerinitmessage()); } - + // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (cached_has_bits & 0x00000002u) { + if (has_cleanerinitackmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cleanerinitackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cleanerinitackmessage()); } - + // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (cached_has_bits & 0x00000004u) { + if (has_cleanerchatrequestmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cleanerchatrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cleanerchatrequestmessage()); } - + // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (cached_has_bits & 0x00000008u) { + if (has_cleanerchatreplymessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cleanerchatreplymessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->cleanerchatreplymessage()); } - + } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -2328,70 +1459,60 @@ void ChatCleanerMessage::CheckTypeAndMergeFrom( } void ChatCleanerMessage::MergeFrom(const ChatCleanerMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:ChatCleanerMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_messagetype()) { + set_messagetype(from.messagetype()); + } + if (from.has_cleanerinitmessage()) { mutable_cleanerinitmessage()->::CleanerInitMessage::MergeFrom(from.cleanerinitmessage()); } - if (cached_has_bits & 0x00000002u) { + if (from.has_cleanerinitackmessage()) { mutable_cleanerinitackmessage()->::CleanerInitAckMessage::MergeFrom(from.cleanerinitackmessage()); } - if (cached_has_bits & 0x00000004u) { + if (from.has_cleanerchatrequestmessage()) { mutable_cleanerchatrequestmessage()->::CleanerChatRequestMessage::MergeFrom(from.cleanerchatrequestmessage()); } - if (cached_has_bits & 0x00000008u) { + 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] & 0x00000010) != 0x00000010) return false; + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + if (has_cleanerinitmessage()) { - if (!this->cleanerinitmessage_->IsInitialized()) return false; + if (!this->cleanerinitmessage().IsInitialized()) return false; } if (has_cleanerinitackmessage()) { - if (!this->cleanerinitackmessage_->IsInitialized()) return false; + if (!this->cleanerinitackmessage().IsInitialized()) return false; } if (has_cleanerchatrequestmessage()) { - if (!this->cleanerchatrequestmessage_->IsInitialized()) return false; + if (!this->cleanerchatrequestmessage().IsInitialized()) return false; } if (has_cleanerchatreplymessage()) { - if (!this->cleanerchatreplymessage_->IsInitialized()) return false; + if (!this->cleanerchatreplymessage().IsInitialized()) return false; } return true; } void ChatCleanerMessage::Swap(ChatCleanerMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void ChatCleanerMessage::InternalSwap(ChatCleanerMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(cleanerinitmessage_, other->cleanerinitmessage_); - swap(cleanerinitackmessage_, other->cleanerinitackmessage_); - swap(cleanerchatrequestmessage_, other->cleanerchatrequestmessage_); - swap(cleanerchatreplymessage_, other->cleanerchatreplymessage_); - swap(messagetype_, other->messagetype_); + 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_); + } } ::std::string ChatCleanerMessage::GetTypeName() const { @@ -2400,25 +1521,5 @@ void ChatCleanerMessage::InternalSwap(ChatCleanerMessage* other) { // @@protoc_insertion_point(namespace_scope) -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::CleanerInitMessage* Arena::CreateMaybeMessage< ::CleanerInitMessage >(Arena* arena) { - return Arena::CreateInternal< ::CleanerInitMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::CleanerInitAckMessage* Arena::CreateMaybeMessage< ::CleanerInitAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::CleanerInitAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::CleanerChatRequestMessage* Arena::CreateMaybeMessage< ::CleanerChatRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::CleanerChatRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::CleanerChatReplyMessage* Arena::CreateMaybeMessage< ::CleanerChatReplyMessage >(Arena* arena) { - return Arena::CreateInternal< ::CleanerChatReplyMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ChatCleanerMessage* Arena::CreateMaybeMessage< ::ChatCleanerMessage >(Arena* arena) { - return Arena::CreateInternal< ::ChatCleanerMessage >(arena); -} -} // namespace protobuf -} // namespace google // @@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 b49c768a..df5f9912 100644 --- a/src/third_party/protobuf/chatcleaner.pb.h +++ b/src/third_party/protobuf/chatcleaner.pb.h @@ -1,76 +1,39 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: chatcleaner.proto -#ifndef PROTOBUF_INCLUDED_chatcleaner_2eproto -#define PROTOBUF_INCLUDED_chatcleaner_2eproto +#ifndef PROTOBUF_chatcleaner_2eproto__INCLUDED +#define PROTOBUF_chatcleaner_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3007000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 2004000 #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 3007001 < PROTOBUF_MIN_PROTOC_VERSION +#if 2004001 < GOOGLE_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 // IWYU pragma: export -#include // IWYU pragma: export -#include +#include +#include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto -// Internal implementation detail -- do not use these members. -struct TableStruct_chatcleaner_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::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_; +// 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 CleanerInitMessageDefaultTypeInternal; -extern CleanerInitMessageDefaultTypeInternal _CleanerInitMessage_default_instance_; -namespace google { -namespace protobuf { -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*); -} // namespace protobuf -} // namespace google +class CleanerInitAckMessage; +class CleanerChatRequestMessage; +class CleanerChatReplyMessage; +class ChatCleanerMessage; enum CleanerChatReplyMessage_CleanerActionType { CleanerChatReplyMessage_CleanerActionType_cleanerActionNone = 0, @@ -106,561 +69,346 @@ const int CleanerChatType_ARRAYSIZE = CleanerChatType_MAX + 1; // =================================================================== -class CleanerInitMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitMessage) */ { +class CleanerInitMessage : public ::google::protobuf::MessageLite { public: CleanerInitMessage(); virtual ~CleanerInitMessage(); - + CleanerInitMessage(const CleanerInitMessage& from); - + inline CleanerInitMessage& operator=(const CleanerInitMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - CleanerInitMessage(CleanerInitMessage&& from) noexcept - : CleanerInitMessage() { - *this = ::std::move(from); - } - - inline CleanerInitMessage& operator=(CleanerInitMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const CleanerInitMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CleanerInitMessage* internal_default_instance() { - return reinterpret_cast( - &_CleanerInitMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - + void Swap(CleanerInitMessage* other); - friend void swap(CleanerInitMessage& a, CleanerInitMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline CleanerInitMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - CleanerInitMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + CleanerInitMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CleanerInitMessage& from); void MergeFrom(const CleanerInitMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(CleanerInitMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required string clientSecret = 2; - bool has_clientsecret() const; - void clear_clientsecret(); - static const int kClientSecretFieldNumber = 2; - const ::std::string& clientsecret() const; - void set_clientsecret(const ::std::string& value); - #if LANG_CXX11 - void set_clientsecret(::std::string&& value); - #endif - 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); - + // required uint32 requestedVersion = 1; - bool has_requestedversion() const; - void clear_requestedversion(); + inline bool has_requestedversion() const; + inline void clear_requestedversion(); static const int kRequestedVersionFieldNumber = 1; - ::google::protobuf::uint32 requestedversion() const; - void set_requestedversion(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestedversion() const; + inline void set_requestedversion(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:CleanerInitMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr clientsecret_; + inline void set_has_requestedversion(); + inline void clear_has_requestedversion(); + inline void set_has_clientsecret(); + inline void clear_has_clientsecret(); + + ::std::string* clientsecret_; ::google::protobuf::uint32 requestedversion_; - friend struct ::TableStruct_chatcleaner_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_chatcleaner_2eproto(); + friend void protobuf_AssignDesc_chatcleaner_2eproto(); + friend void protobuf_ShutdownFile_chatcleaner_2eproto(); + + void InitAsDefaultInstance(); + static CleanerInitMessage* default_instance_; }; // ------------------------------------------------------------------- -class CleanerInitAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitAckMessage) */ { +class CleanerInitAckMessage : public ::google::protobuf::MessageLite { public: CleanerInitAckMessage(); virtual ~CleanerInitAckMessage(); - + CleanerInitAckMessage(const CleanerInitAckMessage& from); - + inline CleanerInitAckMessage& operator=(const CleanerInitAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - CleanerInitAckMessage(CleanerInitAckMessage&& from) noexcept - : CleanerInitAckMessage() { - *this = ::std::move(from); - } - - inline CleanerInitAckMessage& operator=(CleanerInitAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const CleanerInitAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CleanerInitAckMessage* internal_default_instance() { - return reinterpret_cast( - &_CleanerInitAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - + void Swap(CleanerInitAckMessage* other); - friend void swap(CleanerInitAckMessage& a, CleanerInitAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline CleanerInitAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - CleanerInitAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + CleanerInitAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CleanerInitAckMessage& from); void MergeFrom(const CleanerInitAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(CleanerInitAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required string serverSecret = 2; - bool has_serversecret() const; - void clear_serversecret(); - static const int kServerSecretFieldNumber = 2; - const ::std::string& serversecret() const; - void set_serversecret(const ::std::string& value); - #if LANG_CXX11 - void set_serversecret(::std::string&& value); - #endif - 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); - + // required uint32 serverVersion = 1; - bool has_serverversion() const; - void clear_serverversion(); + inline bool has_serverversion() const; + inline void clear_serverversion(); static const int kServerVersionFieldNumber = 1; - ::google::protobuf::uint32 serverversion() const; - void set_serverversion(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 serverversion() const; + inline void set_serverversion(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:CleanerInitAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr serversecret_; + inline void set_has_serverversion(); + inline void clear_has_serverversion(); + inline void set_has_serversecret(); + inline void clear_has_serversecret(); + + ::std::string* serversecret_; ::google::protobuf::uint32 serverversion_; - friend struct ::TableStruct_chatcleaner_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_chatcleaner_2eproto(); + friend void protobuf_AssignDesc_chatcleaner_2eproto(); + friend void protobuf_ShutdownFile_chatcleaner_2eproto(); + + void InitAsDefaultInstance(); + static CleanerInitAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class CleanerChatRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatRequestMessage) */ { +class CleanerChatRequestMessage : public ::google::protobuf::MessageLite { public: CleanerChatRequestMessage(); virtual ~CleanerChatRequestMessage(); - + CleanerChatRequestMessage(const CleanerChatRequestMessage& from); - + inline CleanerChatRequestMessage& operator=(const CleanerChatRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - CleanerChatRequestMessage(CleanerChatRequestMessage&& from) noexcept - : CleanerChatRequestMessage() { - *this = ::std::move(from); - } - - inline CleanerChatRequestMessage& operator=(CleanerChatRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const CleanerChatRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CleanerChatRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_CleanerChatRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - + void Swap(CleanerChatRequestMessage* other); - friend void swap(CleanerChatRequestMessage& a, CleanerChatRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline CleanerChatRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - CleanerChatRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + CleanerChatRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CleanerChatRequestMessage& from); void MergeFrom(const CleanerChatRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(CleanerChatRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required string playerName = 5; - bool has_playername() const; - void clear_playername(); - static const int kPlayerNameFieldNumber = 5; - const ::std::string& playername() const; - void set_playername(const ::std::string& value); - #if LANG_CXX11 - void set_playername(::std::string&& value); - #endif - 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); - - // required string chatMessage = 6; - bool has_chatmessage() const; - void clear_chatmessage(); - static const int kChatMessageFieldNumber = 6; - const ::std::string& chatmessage() const; - void set_chatmessage(const ::std::string& value); - #if LANG_CXX11 - void set_chatmessage(::std::string&& value); - #endif - 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); - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + // required .CleanerChatType cleanerChatType = 2; - bool has_cleanerchattype() const; - void clear_cleanerchattype(); + inline bool has_cleanerchattype() const; + inline void clear_cleanerchattype(); static const int kCleanerChatTypeFieldNumber = 2; - ::CleanerChatType cleanerchattype() const; - void set_cleanerchattype(::CleanerChatType value); - + inline CleanerChatType cleanerchattype() const; + inline void set_cleanerchattype(CleanerChatType value); + // optional uint32 gameId = 3 [default = 0]; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 3; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 4; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 4; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:CleanerChatRequestMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr playername_; - ::google::protobuf::internal::ArenaStringPtr chatmessage_; + 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(); + ::google::protobuf::uint32 requestid_; int cleanerchattype_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_chatcleaner_2eproto; + ::std::string* playername_; + ::std::string* chatmessage_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_chatcleaner_2eproto(); + friend void protobuf_AssignDesc_chatcleaner_2eproto(); + friend void protobuf_ShutdownFile_chatcleaner_2eproto(); + + void InitAsDefaultInstance(); + static CleanerChatRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class CleanerChatReplyMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatReplyMessage) */ { +class CleanerChatReplyMessage : public ::google::protobuf::MessageLite { public: CleanerChatReplyMessage(); virtual ~CleanerChatReplyMessage(); - + CleanerChatReplyMessage(const CleanerChatReplyMessage& from); - + inline CleanerChatReplyMessage& operator=(const CleanerChatReplyMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - CleanerChatReplyMessage(CleanerChatReplyMessage&& from) noexcept - : CleanerChatReplyMessage() { - *this = ::std::move(from); - } - - inline CleanerChatReplyMessage& operator=(CleanerChatReplyMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const CleanerChatReplyMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CleanerChatReplyMessage* internal_default_instance() { - return reinterpret_cast( - &_CleanerChatReplyMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - + void Swap(CleanerChatReplyMessage* other); - friend void swap(CleanerChatReplyMessage& a, CleanerChatReplyMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline CleanerChatReplyMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - CleanerChatReplyMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + CleanerChatReplyMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const CleanerChatReplyMessage& from); void MergeFrom(const CleanerChatReplyMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(CleanerChatReplyMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool CleanerActionType_IsValid(int value) { return CleanerChatReplyMessage_CleanerActionType_IsValid(value); } @@ -670,184 +418,135 @@ class CleanerChatReplyMessage : CleanerChatReplyMessage_CleanerActionType_CleanerActionType_MAX; static const int CleanerActionType_ARRAYSIZE = CleanerChatReplyMessage_CleanerActionType_CleanerActionType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // optional string cleanerText = 6 [default = ""]; - bool has_cleanertext() const; - void clear_cleanertext(); - static const int kCleanerTextFieldNumber = 6; - const ::std::string& cleanertext() const; - void set_cleanertext(const ::std::string& value); - #if LANG_CXX11 - void set_cleanertext(::std::string&& value); - #endif - 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); - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + // required .CleanerChatType cleanerChatType = 2; - bool has_cleanerchattype() const; - void clear_cleanerchattype(); + inline bool has_cleanerchattype() const; + inline void clear_cleanerchattype(); static const int kCleanerChatTypeFieldNumber = 2; - ::CleanerChatType cleanerchattype() const; - void set_cleanerchattype(::CleanerChatType value); - + inline CleanerChatType cleanerchattype() const; + inline void set_cleanerchattype(CleanerChatType value); + // optional uint32 gameId = 3 [default = 0]; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 3; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 4; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 4; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - bool has_cleaneractiontype() const; - void clear_cleaneractiontype(); + inline bool has_cleaneractiontype() const; + inline void clear_cleaneractiontype(); static const int kCleanerActionTypeFieldNumber = 5; - ::CleanerChatReplyMessage_CleanerActionType cleaneractiontype() const; - void set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); - + 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(); + // @@protoc_insertion_point(class_scope:CleanerChatReplyMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr cleanertext_; + 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(); + ::google::protobuf::uint32 requestid_; int cleanerchattype_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; + ::std::string* cleanertext_; int cleaneractiontype_; - friend struct ::TableStruct_chatcleaner_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_chatcleaner_2eproto(); + friend void protobuf_AssignDesc_chatcleaner_2eproto(); + friend void protobuf_ShutdownFile_chatcleaner_2eproto(); + + void InitAsDefaultInstance(); + static CleanerChatReplyMessage* default_instance_; }; // ------------------------------------------------------------------- -class ChatCleanerMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatCleanerMessage) */ { +class ChatCleanerMessage : public ::google::protobuf::MessageLite { public: ChatCleanerMessage(); virtual ~ChatCleanerMessage(); - + ChatCleanerMessage(const ChatCleanerMessage& from); - + inline ChatCleanerMessage& operator=(const ChatCleanerMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ChatCleanerMessage(ChatCleanerMessage&& from) noexcept - : ChatCleanerMessage() { - *this = ::std::move(from); - } - - inline ChatCleanerMessage& operator=(ChatCleanerMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ChatCleanerMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ChatCleanerMessage* internal_default_instance() { - return reinterpret_cast( - &_ChatCleanerMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - + void Swap(ChatCleanerMessage* other); - friend void swap(ChatCleanerMessage& a, ChatCleanerMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ChatCleanerMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ChatCleanerMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ChatCleanerMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ChatCleanerMessage& from); void MergeFrom(const ChatCleanerMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ChatCleanerMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool ChatCleanerMessageType_IsValid(int value) { return ChatCleanerMessage_ChatCleanerMessageType_IsValid(value); } @@ -857,153 +556,162 @@ class ChatCleanerMessage : ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_MAX; static const int ChatCleanerMessageType_ARRAYSIZE = ChatCleanerMessage_ChatCleanerMessageType_ChatCleanerMessageType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // optional .CleanerInitMessage cleanerInitMessage = 2; - bool has_cleanerinitmessage() const; - void clear_cleanerinitmessage(); - static const int kCleanerInitMessageFieldNumber = 2; - const ::CleanerInitMessage& cleanerinitmessage() const; - ::CleanerInitMessage* release_cleanerinitmessage(); - ::CleanerInitMessage* mutable_cleanerinitmessage(); - void set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage); - - // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - bool has_cleanerinitackmessage() const; - void clear_cleanerinitackmessage(); - static const int kCleanerInitAckMessageFieldNumber = 3; - const ::CleanerInitAckMessage& cleanerinitackmessage() const; - ::CleanerInitAckMessage* release_cleanerinitackmessage(); - ::CleanerInitAckMessage* mutable_cleanerinitackmessage(); - void set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage); - - // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - bool has_cleanerchatrequestmessage() const; - void clear_cleanerchatrequestmessage(); - static const int kCleanerChatRequestMessageFieldNumber = 4; - const ::CleanerChatRequestMessage& cleanerchatrequestmessage() const; - ::CleanerChatRequestMessage* release_cleanerchatrequestmessage(); - ::CleanerChatRequestMessage* mutable_cleanerchatrequestmessage(); - void set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage); - - // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - bool has_cleanerchatreplymessage() const; - void clear_cleanerchatreplymessage(); - static const int kCleanerChatReplyMessageFieldNumber = 5; - const ::CleanerChatReplyMessage& cleanerchatreplymessage() const; - ::CleanerChatReplyMessage* release_cleanerchatreplymessage(); - ::CleanerChatReplyMessage* mutable_cleanerchatreplymessage(); - void set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage); - + // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - bool has_messagetype() const; - void clear_messagetype(); + inline bool has_messagetype() const; + inline void clear_messagetype(); static const int kMessageTypeFieldNumber = 1; - ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; - void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); - + inline ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; + inline void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:ChatCleanerMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::CleanerInitMessage* cleanerinitmessage_; ::CleanerInitAckMessage* cleanerinitackmessage_; ::CleanerChatRequestMessage* cleanerchatrequestmessage_; ::CleanerChatReplyMessage* cleanerchatreplymessage_; int messagetype_; - friend struct ::TableStruct_chatcleaner_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_chatcleaner_2eproto(); + friend void protobuf_AssignDesc_chatcleaner_2eproto(); + friend void protobuf_ShutdownFile_chatcleaner_2eproto(); + + void InitAsDefaultInstance(); + static ChatCleanerMessage* default_instance_; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ // CleanerInitMessage // required uint32 requestedVersion = 1; inline bool CleanerInitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void CleanerInitMessage::clear_requestedversion() { requestedversion_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_requestedversion(); } inline ::google::protobuf::uint32 CleanerInitMessage::requestedversion() const { - // @@protoc_insertion_point(field_get:CleanerInitMessage.requestedVersion) return requestedversion_; } inline void CleanerInitMessage::set_requestedversion(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_requestedversion(); requestedversion_ = value; - // @@protoc_insertion_point(field_set:CleanerInitMessage.requestedVersion) } // required string clientSecret = 2; inline bool CleanerInitMessage::has_clientsecret() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void CleanerInitMessage::clear_clientsecret() { - clientsecret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (clientsecret_ != &::google::protobuf::internal::kEmptyString) { + clientsecret_->clear(); + } + clear_has_clientsecret(); } inline const ::std::string& CleanerInitMessage::clientsecret() const { - // @@protoc_insertion_point(field_get:CleanerInitMessage.clientSecret) - return clientsecret_.GetNoArena(); + return *clientsecret_; } inline void CleanerInitMessage::set_clientsecret(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - clientsecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:CleanerInitMessage.clientSecret) + set_has_clientsecret(); + if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { + clientsecret_ = new ::std::string; + } + clientsecret_->assign(value); } -#if LANG_CXX11 -inline void CleanerInitMessage::set_clientsecret(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - clientsecret_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:CleanerInitMessage.clientSecret) -} -#endif inline void CleanerInitMessage::set_clientsecret(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - clientsecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:CleanerInitMessage.clientSecret) + set_has_clientsecret(); + if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { + clientsecret_ = new ::std::string; + } + clientsecret_->assign(value); } inline void CleanerInitMessage::set_clientsecret(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - clientsecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:CleanerInitMessage.clientSecret) + set_has_clientsecret(); + if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { + clientsecret_ = new ::std::string; + } + clientsecret_->assign(reinterpret_cast(value), size); } inline ::std::string* CleanerInitMessage::mutable_clientsecret() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:CleanerInitMessage.clientSecret) - return clientsecret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_clientsecret(); + if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { + clientsecret_ = new ::std::string; + } + return clientsecret_; } inline ::std::string* CleanerInitMessage::release_clientsecret() { - // @@protoc_insertion_point(field_release:CleanerInitMessage.clientSecret) - if (!has_clientsecret()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return clientsecret_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CleanerInitMessage::set_allocated_clientsecret(::std::string* clientsecret) { - if (clientsecret != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_clientsecret(); + if (clientsecret_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = clientsecret_; + clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - clientsecret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clientsecret); - // @@protoc_insertion_point(field_set_allocated:CleanerInitMessage.clientSecret) } // ------------------------------------------------------------------- @@ -1012,80 +720,82 @@ inline void CleanerInitMessage::set_allocated_clientsecret(::std::string* client // required uint32 serverVersion = 1; inline bool CleanerInitAckMessage::has_serverversion() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void CleanerInitAckMessage::clear_serverversion() { serverversion_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_serverversion(); } inline ::google::protobuf::uint32 CleanerInitAckMessage::serverversion() const { - // @@protoc_insertion_point(field_get:CleanerInitAckMessage.serverVersion) return serverversion_; } inline void CleanerInitAckMessage::set_serverversion(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_serverversion(); serverversion_ = value; - // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverVersion) } // required string serverSecret = 2; inline bool CleanerInitAckMessage::has_serversecret() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void CleanerInitAckMessage::clear_serversecret() { - serversecret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (serversecret_ != &::google::protobuf::internal::kEmptyString) { + serversecret_->clear(); + } + clear_has_serversecret(); } inline const ::std::string& CleanerInitAckMessage::serversecret() const { - // @@protoc_insertion_point(field_get:CleanerInitAckMessage.serverSecret) - return serversecret_.GetNoArena(); + return *serversecret_; } inline void CleanerInitAckMessage::set_serversecret(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - serversecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverSecret) + set_has_serversecret(); + if (serversecret_ == &::google::protobuf::internal::kEmptyString) { + serversecret_ = new ::std::string; + } + serversecret_->assign(value); } -#if LANG_CXX11 -inline void CleanerInitAckMessage::set_serversecret(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - serversecret_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:CleanerInitAckMessage.serverSecret) -} -#endif inline void CleanerInitAckMessage::set_serversecret(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - serversecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:CleanerInitAckMessage.serverSecret) + set_has_serversecret(); + if (serversecret_ == &::google::protobuf::internal::kEmptyString) { + serversecret_ = new ::std::string; + } + serversecret_->assign(value); } inline void CleanerInitAckMessage::set_serversecret(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - serversecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:CleanerInitAckMessage.serverSecret) + set_has_serversecret(); + if (serversecret_ == &::google::protobuf::internal::kEmptyString) { + serversecret_ = new ::std::string; + } + serversecret_->assign(reinterpret_cast(value), size); } inline ::std::string* CleanerInitAckMessage::mutable_serversecret() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:CleanerInitAckMessage.serverSecret) - return serversecret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_serversecret(); + if (serversecret_ == &::google::protobuf::internal::kEmptyString) { + serversecret_ = new ::std::string; + } + return serversecret_; } inline ::std::string* CleanerInitAckMessage::release_serversecret() { - // @@protoc_insertion_point(field_release:CleanerInitAckMessage.serverSecret) - if (!has_serversecret()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return serversecret_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CleanerInitAckMessage::set_allocated_serversecret(::std::string* serversecret) { - if (serversecret != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_serversecret(); + if (serversecret_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = serversecret_; + serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - serversecret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serversecret); - // @@protoc_insertion_point(field_set_allocated:CleanerInitAckMessage.serverSecret) } // ------------------------------------------------------------------- @@ -1094,195 +804,207 @@ inline void CleanerInitAckMessage::set_allocated_serversecret(::std::string* ser // required uint32 requestId = 1; inline bool CleanerChatRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_requestid() { requestid_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_requestid(); } inline ::google::protobuf::uint32 CleanerChatRequestMessage::requestid() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.requestId) return requestid_; } inline void CleanerChatRequestMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.requestId) } // required .CleanerChatType cleanerChatType = 2; inline bool CleanerChatRequestMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - _has_bits_[0] &= ~0x00000008u; + clear_has_cleanerchattype(); } -inline ::CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.cleanerChatType) - return static_cast< ::CleanerChatType >(cleanerchattype_); +inline CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { + return static_cast< CleanerChatType >(cleanerchattype_); } -inline void CleanerChatRequestMessage::set_cleanerchattype(::CleanerChatType value) { - assert(::CleanerChatType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; +inline void CleanerChatRequestMessage::set_cleanerchattype(CleanerChatType value) { + GOOGLE_DCHECK(CleanerChatType_IsValid(value)); + set_has_cleanerchattype(); cleanerchattype_ = value; - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.cleanerChatType) } // optional uint32 gameId = 3 [default = 0]; inline bool CleanerChatRequestMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000010u; + clear_has_gameid(); } inline ::google::protobuf::uint32 CleanerChatRequestMessage::gameid() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.gameId) return gameid_; } inline void CleanerChatRequestMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.gameId) } // required uint32 playerId = 4; inline bool CleanerChatRequestMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_playerid() { playerid_ = 0u; - _has_bits_[0] &= ~0x00000020u; + clear_has_playerid(); } inline ::google::protobuf::uint32 CleanerChatRequestMessage::playerid() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.playerId) return playerid_; } inline void CleanerChatRequestMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000020u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerId) } // required string playerName = 5; inline bool CleanerChatRequestMessage::has_playername() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_playername() { - playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (playername_ != &::google::protobuf::internal::kEmptyString) { + playername_->clear(); + } + clear_has_playername(); } inline const ::std::string& CleanerChatRequestMessage::playername() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.playerName) - return playername_.GetNoArena(); + return *playername_; } inline void CleanerChatRequestMessage::set_playername(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); } -#if LANG_CXX11 -inline void CleanerChatRequestMessage::set_playername(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:CleanerChatRequestMessage.playerName) -} -#endif inline void CleanerChatRequestMessage::set_playername(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:CleanerChatRequestMessage.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); } inline void CleanerChatRequestMessage::set_playername(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:CleanerChatRequestMessage.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(reinterpret_cast(value), size); } inline ::std::string* CleanerChatRequestMessage::mutable_playername() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.playerName) - return playername_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + return playername_; } inline ::std::string* CleanerChatRequestMessage::release_playername() { - // @@protoc_insertion_point(field_release:CleanerChatRequestMessage.playerName) - if (!has_playername()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return playername_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CleanerChatRequestMessage::set_allocated_playername(::std::string* playername) { - if (playername != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = playername_; + playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - playername_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), playername); - // @@protoc_insertion_point(field_set_allocated:CleanerChatRequestMessage.playerName) } // required string chatMessage = 6; inline bool CleanerChatRequestMessage::has_chatmessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void CleanerChatRequestMessage::clear_chatmessage() { - chatmessage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000002u; + if (chatmessage_ != &::google::protobuf::internal::kEmptyString) { + chatmessage_->clear(); + } + clear_has_chatmessage(); } inline const ::std::string& CleanerChatRequestMessage::chatmessage() const { - // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.chatMessage) - return chatmessage_.GetNoArena(); + return *chatmessage_; } inline void CleanerChatRequestMessage::set_chatmessage(const ::std::string& value) { - _has_bits_[0] |= 0x00000002u; - chatmessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.chatMessage) + set_has_chatmessage(); + if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { + chatmessage_ = new ::std::string; + } + chatmessage_->assign(value); } -#if LANG_CXX11 -inline void CleanerChatRequestMessage::set_chatmessage(::std::string&& value) { - _has_bits_[0] |= 0x00000002u; - chatmessage_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:CleanerChatRequestMessage.chatMessage) -} -#endif inline void CleanerChatRequestMessage::set_chatmessage(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - chatmessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:CleanerChatRequestMessage.chatMessage) + set_has_chatmessage(); + if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { + chatmessage_ = new ::std::string; + } + chatmessage_->assign(value); } inline void CleanerChatRequestMessage::set_chatmessage(const char* value, size_t size) { - _has_bits_[0] |= 0x00000002u; - chatmessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:CleanerChatRequestMessage.chatMessage) + set_has_chatmessage(); + if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { + chatmessage_ = new ::std::string; + } + chatmessage_->assign(reinterpret_cast(value), size); } inline ::std::string* CleanerChatRequestMessage::mutable_chatmessage() { - _has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.chatMessage) - return chatmessage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_chatmessage(); + if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { + chatmessage_ = new ::std::string; + } + return chatmessage_; } inline ::std::string* CleanerChatRequestMessage::release_chatmessage() { - // @@protoc_insertion_point(field_release:CleanerChatRequestMessage.chatMessage) - if (!has_chatmessage()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return chatmessage_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CleanerChatRequestMessage::set_allocated_chatmessage(::std::string* chatmessage) { - if (chatmessage != nullptr) { - _has_bits_[0] |= 0x00000002u; + clear_has_chatmessage(); + if (chatmessage_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000002u; + ::std::string* temp = chatmessage_; + chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - chatmessage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chatmessage); - // @@protoc_insertion_point(field_set_allocated:CleanerChatRequestMessage.chatMessage) } // ------------------------------------------------------------------- @@ -1291,154 +1013,172 @@ inline void CleanerChatRequestMessage::set_allocated_chatmessage(::std::string* // required uint32 requestId = 1; inline bool CleanerChatReplyMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_requestid() { requestid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_requestid(); } inline ::google::protobuf::uint32 CleanerChatReplyMessage::requestid() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.requestId) return requestid_; } inline void CleanerChatReplyMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.requestId) } // required .CleanerChatType cleanerChatType = 2; inline bool CleanerChatReplyMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - _has_bits_[0] &= ~0x00000004u; + clear_has_cleanerchattype(); } -inline ::CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerChatType) - return static_cast< ::CleanerChatType >(cleanerchattype_); +inline CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { + return static_cast< CleanerChatType >(cleanerchattype_); } -inline void CleanerChatReplyMessage::set_cleanerchattype(::CleanerChatType value) { - assert(::CleanerChatType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline void CleanerChatReplyMessage::set_cleanerchattype(CleanerChatType value) { + GOOGLE_DCHECK(CleanerChatType_IsValid(value)); + set_has_cleanerchattype(); cleanerchattype_ = value; - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerChatType) } // optional uint32 gameId = 3 [default = 0]; inline bool CleanerChatReplyMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000008u; + clear_has_gameid(); } inline ::google::protobuf::uint32 CleanerChatReplyMessage::gameid() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.gameId) return gameid_; } inline void CleanerChatReplyMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.gameId) } // required uint32 playerId = 4; inline bool CleanerChatReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_playerid() { playerid_ = 0u; - _has_bits_[0] &= ~0x00000010u; + clear_has_playerid(); } inline ::google::protobuf::uint32 CleanerChatReplyMessage::playerid() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.playerId) return playerid_; } inline void CleanerChatReplyMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.playerId) } // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; inline bool CleanerChatReplyMessage::has_cleaneractiontype() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_cleaneractiontype() { cleaneractiontype_ = 0; - _has_bits_[0] &= ~0x00000020u; + clear_has_cleaneractiontype(); } inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleaneractiontype() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerActionType) return static_cast< ::CleanerChatReplyMessage_CleanerActionType >(cleaneractiontype_); } inline void CleanerChatReplyMessage::set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value) { - assert(::CleanerChatReplyMessage_CleanerActionType_IsValid(value)); - _has_bits_[0] |= 0x00000020u; + GOOGLE_DCHECK(::CleanerChatReplyMessage_CleanerActionType_IsValid(value)); + set_has_cleaneractiontype(); cleaneractiontype_ = value; - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerActionType) } // optional string cleanerText = 6 [default = ""]; inline bool CleanerChatReplyMessage::has_cleanertext() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void CleanerChatReplyMessage::clear_cleanertext() { - cleanertext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (cleanertext_ != &::google::protobuf::internal::kEmptyString) { + cleanertext_->clear(); + } + clear_has_cleanertext(); } inline const ::std::string& CleanerChatReplyMessage::cleanertext() const { - // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerText) - return cleanertext_.GetNoArena(); + return *cleanertext_; } inline void CleanerChatReplyMessage::set_cleanertext(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - cleanertext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerText) + set_has_cleanertext(); + if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { + cleanertext_ = new ::std::string; + } + cleanertext_->assign(value); } -#if LANG_CXX11 -inline void CleanerChatReplyMessage::set_cleanertext(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - cleanertext_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:CleanerChatReplyMessage.cleanerText) -} -#endif inline void CleanerChatReplyMessage::set_cleanertext(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - cleanertext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:CleanerChatReplyMessage.cleanerText) + set_has_cleanertext(); + if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { + cleanertext_ = new ::std::string; + } + cleanertext_->assign(value); } inline void CleanerChatReplyMessage::set_cleanertext(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - cleanertext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:CleanerChatReplyMessage.cleanerText) + set_has_cleanertext(); + if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { + cleanertext_ = new ::std::string; + } + cleanertext_->assign(reinterpret_cast(value), size); } inline ::std::string* CleanerChatReplyMessage::mutable_cleanertext() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:CleanerChatReplyMessage.cleanerText) - return cleanertext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_cleanertext(); + if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { + cleanertext_ = new ::std::string; + } + return cleanertext_; } inline ::std::string* CleanerChatReplyMessage::release_cleanertext() { - // @@protoc_insertion_point(field_release:CleanerChatReplyMessage.cleanerText) - if (!has_cleanertext()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return cleanertext_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CleanerChatReplyMessage::set_allocated_cleanertext(::std::string* cleanertext) { - if (cleanertext != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_cleanertext(); + if (cleanertext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = cleanertext_; + cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - cleanertext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cleanertext); - // @@protoc_insertion_point(field_set_allocated:CleanerChatReplyMessage.cleanerText) } // ------------------------------------------------------------------- @@ -1447,245 +1187,146 @@ inline void CleanerChatReplyMessage::set_allocated_cleanertext(::std::string* cl // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; inline bool ChatCleanerMessage::has_messagetype() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void ChatCleanerMessage::clear_messagetype() { messagetype_ = 1; - _has_bits_[0] &= ~0x00000010u; + clear_has_messagetype(); } inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::messagetype() const { - // @@protoc_insertion_point(field_get:ChatCleanerMessage.messageType) return static_cast< ::ChatCleanerMessage_ChatCleanerMessageType >(messagetype_); } inline void ChatCleanerMessage::set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value) { - assert(::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; + GOOGLE_DCHECK(::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)); + set_has_messagetype(); messagetype_ = value; - // @@protoc_insertion_point(field_set:ChatCleanerMessage.messageType) } // optional .CleanerInitMessage cleanerInitMessage = 2; inline bool ChatCleanerMessage::has_cleanerinitmessage() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void ChatCleanerMessage::clear_cleanerinitmessage() { - if (cleanerinitmessage_ != nullptr) cleanerinitmessage_->Clear(); - _has_bits_[0] &= ~0x00000001u; + if (cleanerinitmessage_ != NULL) cleanerinitmessage_->::CleanerInitMessage::Clear(); + clear_has_cleanerinitmessage(); } inline const ::CleanerInitMessage& ChatCleanerMessage::cleanerinitmessage() const { - const ::CleanerInitMessage* p = cleanerinitmessage_; - // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_CleanerInitMessage_default_instance_); -} -inline ::CleanerInitMessage* ChatCleanerMessage::release_cleanerinitmessage() { - // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerInitMessage) - _has_bits_[0] &= ~0x00000001u; - ::CleanerInitMessage* temp = cleanerinitmessage_; - cleanerinitmessage_ = nullptr; - return temp; + return cleanerinitmessage_ != NULL ? *cleanerinitmessage_ : *default_instance_->cleanerinitmessage_; } inline ::CleanerInitMessage* ChatCleanerMessage::mutable_cleanerinitmessage() { - _has_bits_[0] |= 0x00000001u; - if (cleanerinitmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::CleanerInitMessage>(GetArenaNoVirtual()); - cleanerinitmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitMessage) + set_has_cleanerinitmessage(); + if (cleanerinitmessage_ == NULL) cleanerinitmessage_ = new ::CleanerInitMessage; return cleanerinitmessage_; } -inline void ChatCleanerMessage::set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cleanerinitmessage_; - } - if (cleanerinitmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cleanerinitmessage = ::google::protobuf::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) +inline ::CleanerInitMessage* ChatCleanerMessage::release_cleanerinitmessage() { + clear_has_cleanerinitmessage(); + ::CleanerInitMessage* temp = cleanerinitmessage_; + cleanerinitmessage_ = NULL; + return temp; } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; inline bool ChatCleanerMessage::has_cleanerinitackmessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void ChatCleanerMessage::clear_cleanerinitackmessage() { - if (cleanerinitackmessage_ != nullptr) cleanerinitackmessage_->Clear(); - _has_bits_[0] &= ~0x00000002u; + if (cleanerinitackmessage_ != NULL) cleanerinitackmessage_->::CleanerInitAckMessage::Clear(); + clear_has_cleanerinitackmessage(); } inline const ::CleanerInitAckMessage& ChatCleanerMessage::cleanerinitackmessage() const { - const ::CleanerInitAckMessage* p = cleanerinitackmessage_; - // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_CleanerInitAckMessage_default_instance_); -} -inline ::CleanerInitAckMessage* ChatCleanerMessage::release_cleanerinitackmessage() { - // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerInitAckMessage) - _has_bits_[0] &= ~0x00000002u; - ::CleanerInitAckMessage* temp = cleanerinitackmessage_; - cleanerinitackmessage_ = nullptr; - return temp; + return cleanerinitackmessage_ != NULL ? *cleanerinitackmessage_ : *default_instance_->cleanerinitackmessage_; } inline ::CleanerInitAckMessage* ChatCleanerMessage::mutable_cleanerinitackmessage() { - _has_bits_[0] |= 0x00000002u; - if (cleanerinitackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::CleanerInitAckMessage>(GetArenaNoVirtual()); - cleanerinitackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitAckMessage) + set_has_cleanerinitackmessage(); + if (cleanerinitackmessage_ == NULL) cleanerinitackmessage_ = new ::CleanerInitAckMessage; return cleanerinitackmessage_; } -inline void ChatCleanerMessage::set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cleanerinitackmessage_; - } - if (cleanerinitackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cleanerinitackmessage = ::google::protobuf::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) +inline ::CleanerInitAckMessage* ChatCleanerMessage::release_cleanerinitackmessage() { + clear_has_cleanerinitackmessage(); + ::CleanerInitAckMessage* temp = cleanerinitackmessage_; + cleanerinitackmessage_ = NULL; + return temp; } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; inline bool ChatCleanerMessage::has_cleanerchatrequestmessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void ChatCleanerMessage::clear_cleanerchatrequestmessage() { - if (cleanerchatrequestmessage_ != nullptr) cleanerchatrequestmessage_->Clear(); - _has_bits_[0] &= ~0x00000004u; + if (cleanerchatrequestmessage_ != NULL) cleanerchatrequestmessage_->::CleanerChatRequestMessage::Clear(); + clear_has_cleanerchatrequestmessage(); } inline const ::CleanerChatRequestMessage& ChatCleanerMessage::cleanerchatrequestmessage() const { - const ::CleanerChatRequestMessage* p = cleanerchatrequestmessage_; - // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_CleanerChatRequestMessage_default_instance_); -} -inline ::CleanerChatRequestMessage* ChatCleanerMessage::release_cleanerchatrequestmessage() { - // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerChatRequestMessage) - _has_bits_[0] &= ~0x00000004u; - ::CleanerChatRequestMessage* temp = cleanerchatrequestmessage_; - cleanerchatrequestmessage_ = nullptr; - return temp; + return cleanerchatrequestmessage_ != NULL ? *cleanerchatrequestmessage_ : *default_instance_->cleanerchatrequestmessage_; } inline ::CleanerChatRequestMessage* ChatCleanerMessage::mutable_cleanerchatrequestmessage() { - _has_bits_[0] |= 0x00000004u; - if (cleanerchatrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::CleanerChatRequestMessage>(GetArenaNoVirtual()); - cleanerchatrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatRequestMessage) + set_has_cleanerchatrequestmessage(); + if (cleanerchatrequestmessage_ == NULL) cleanerchatrequestmessage_ = new ::CleanerChatRequestMessage; return cleanerchatrequestmessage_; } -inline void ChatCleanerMessage::set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cleanerchatrequestmessage_; - } - if (cleanerchatrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cleanerchatrequestmessage = ::google::protobuf::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) +inline ::CleanerChatRequestMessage* ChatCleanerMessage::release_cleanerchatrequestmessage() { + clear_has_cleanerchatrequestmessage(); + ::CleanerChatRequestMessage* temp = cleanerchatrequestmessage_; + cleanerchatrequestmessage_ = NULL; + return temp; } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; inline bool ChatCleanerMessage::has_cleanerchatreplymessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void ChatCleanerMessage::clear_cleanerchatreplymessage() { - if (cleanerchatreplymessage_ != nullptr) cleanerchatreplymessage_->Clear(); - _has_bits_[0] &= ~0x00000008u; + if (cleanerchatreplymessage_ != NULL) cleanerchatreplymessage_->::CleanerChatReplyMessage::Clear(); + clear_has_cleanerchatreplymessage(); } inline const ::CleanerChatReplyMessage& ChatCleanerMessage::cleanerchatreplymessage() const { - const ::CleanerChatReplyMessage* p = cleanerchatreplymessage_; - // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatReplyMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_CleanerChatReplyMessage_default_instance_); -} -inline ::CleanerChatReplyMessage* ChatCleanerMessage::release_cleanerchatreplymessage() { - // @@protoc_insertion_point(field_release:ChatCleanerMessage.cleanerChatReplyMessage) - _has_bits_[0] &= ~0x00000008u; - ::CleanerChatReplyMessage* temp = cleanerchatreplymessage_; - cleanerchatreplymessage_ = nullptr; - return temp; + return cleanerchatreplymessage_ != NULL ? *cleanerchatreplymessage_ : *default_instance_->cleanerchatreplymessage_; } inline ::CleanerChatReplyMessage* ChatCleanerMessage::mutable_cleanerchatreplymessage() { - _has_bits_[0] |= 0x00000008u; - if (cleanerchatreplymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::CleanerChatReplyMessage>(GetArenaNoVirtual()); - cleanerchatreplymessage_ = p; - } - // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatReplyMessage) + set_has_cleanerchatreplymessage(); + if (cleanerchatreplymessage_ == NULL) cleanerchatreplymessage_ = new ::CleanerChatReplyMessage; return cleanerchatreplymessage_; } -inline void ChatCleanerMessage::set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete cleanerchatreplymessage_; - } - if (cleanerchatreplymessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cleanerchatreplymessage = ::google::protobuf::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) +inline ::CleanerChatReplyMessage* ChatCleanerMessage::release_cleanerchatreplymessage() { + clear_has_cleanerchatreplymessage(); + ::CleanerChatReplyMessage* temp = cleanerchatreplymessage_; + cleanerchatreplymessage_ = NULL; + return temp; } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - -namespace google { -namespace protobuf { - -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 {}; - -} // namespace protobuf -} // namespace google - // @@protoc_insertion_point(global_scope) -#include -#endif // PROTOBUF_INCLUDED_chatcleaner_2eproto +#endif // PROTOBUF_chatcleaner_2eproto__INCLUDED diff --git a/src/third_party/protobuf/pokerth.pb.cc b/src/third_party/protobuf/pokerth.pb.cc index 656e0731..34e165ab 100644 --- a/src/third_party/protobuf/pokerth.pb.cc +++ b/src/third_party/protobuf/pokerth.pb.cc @@ -1,1842 +1,385 @@ // 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 // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminBanPlayerAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminBanPlayerMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminRemoveGameAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminRemoveGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AnnounceMessage_Version_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AskKickDeniedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AskKickPlayerMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthClientResponseMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthServerChallengeMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthServerVerificationMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AvatarDataMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AvatarEndMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AvatarHeaderMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AvatarRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ChatMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ChatRejectMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ChatRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DealFlopCardsMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DealRiverCardMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DealTurnCardMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DialogMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EndKickPetitionMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EndOfGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EndOfHandHideCardsMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ErrorMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameAdminChangedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListAdminChangedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListPlayerJoinedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListPlayerLeftMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListSpectatorLeftMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameListUpdateMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GamePlayerJoinedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GamePlayerLeftMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameSpectatorJoinedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameSpectatorLeftMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameStartInitialMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HandStartMessage_PlainCards_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InitAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InviteNotifyMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InvitePlayerToGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_JoinExistingGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_JoinGameFailedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KickPetitionUpdateMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KickPlayerRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LeaveGameRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MyActionRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NetGameInfo_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayerIdChangedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayerInfoRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayerListMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayerResult_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayersActionDoneMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PlayersTurnMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RejectGameInvitationMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RejectInvNotifyMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RejoinExistingGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RemovedFromGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ReportAvatarAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ReportAvatarMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ReportGameAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ReportGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResetTimeoutMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ShowMyCardsRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StartEventAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StartEventMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StartKickPetitionMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SubscriptionRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TimeoutWarningMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UnknownAvatarMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VoteKickReplyMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_VoteKickRequestMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_YourActionRejectedMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AfterHandShowCardsMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AllInShowCardsMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AnnounceMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EndOfHandShowCardsMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_GameListNewMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_GameStartRejoinMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HandStartMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_InitMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_JoinGameAckMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_JoinNewGameMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_pokerth_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StatisticsMessage_pokerth_2eproto; -class NetGameInfoDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NetGameInfo_default_instance_; -class PlayerResultDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerResult_default_instance_; -class AnnounceMessage_VersionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AnnounceMessage_Version_default_instance_; -class AnnounceMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AnnounceMessage_default_instance_; -class InitMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InitMessage_default_instance_; -class AuthServerChallengeMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AuthServerChallengeMessage_default_instance_; -class AuthClientResponseMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AuthClientResponseMessage_default_instance_; -class AuthServerVerificationMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AuthServerVerificationMessage_default_instance_; -class InitAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InitAckMessage_default_instance_; -class AvatarRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AvatarRequestMessage_default_instance_; -class AvatarHeaderMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AvatarHeaderMessage_default_instance_; -class AvatarDataMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AvatarDataMessage_default_instance_; -class AvatarEndMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AvatarEndMessage_default_instance_; -class UnknownAvatarMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UnknownAvatarMessage_default_instance_; -class PlayerListMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerListMessage_default_instance_; -class GameListNewMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListNewMessage_default_instance_; -class GameListUpdateMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListUpdateMessage_default_instance_; -class GameListPlayerJoinedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListPlayerJoinedMessage_default_instance_; -class GameListPlayerLeftMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListPlayerLeftMessage_default_instance_; -class GameListSpectatorJoinedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListSpectatorJoinedMessage_default_instance_; -class GameListSpectatorLeftMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListSpectatorLeftMessage_default_instance_; -class GameListAdminChangedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameListAdminChangedMessage_default_instance_; -class PlayerInfoRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerInfoRequestMessage_default_instance_; -class PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; -class PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerInfoReplyMessage_PlayerInfoData_default_instance_; -class PlayerInfoReplyMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerInfoReplyMessage_default_instance_; -class SubscriptionRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SubscriptionRequestMessage_default_instance_; -class JoinExistingGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _JoinExistingGameMessage_default_instance_; -class JoinNewGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _JoinNewGameMessage_default_instance_; -class RejoinExistingGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RejoinExistingGameMessage_default_instance_; -class JoinGameAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _JoinGameAckMessage_default_instance_; -class JoinGameFailedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _JoinGameFailedMessage_default_instance_; -class GamePlayerJoinedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GamePlayerJoinedMessage_default_instance_; -class GamePlayerLeftMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GamePlayerLeftMessage_default_instance_; -class GameSpectatorJoinedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameSpectatorJoinedMessage_default_instance_; -class GameSpectatorLeftMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameSpectatorLeftMessage_default_instance_; -class GameAdminChangedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameAdminChangedMessage_default_instance_; -class RemovedFromGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RemovedFromGameMessage_default_instance_; -class KickPlayerRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _KickPlayerRequestMessage_default_instance_; -class LeaveGameRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LeaveGameRequestMessage_default_instance_; -class InvitePlayerToGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InvitePlayerToGameMessage_default_instance_; -class InviteNotifyMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InviteNotifyMessage_default_instance_; -class RejectGameInvitationMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RejectGameInvitationMessage_default_instance_; -class RejectInvNotifyMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RejectInvNotifyMessage_default_instance_; -class StartEventMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StartEventMessage_default_instance_; -class StartEventAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StartEventAckMessage_default_instance_; -class GameStartInitialMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameStartInitialMessage_default_instance_; -class GameStartRejoinMessage_RejoinPlayerDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameStartRejoinMessage_RejoinPlayerData_default_instance_; -class GameStartRejoinMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GameStartRejoinMessage_default_instance_; -class HandStartMessage_PlainCardsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HandStartMessage_PlainCards_default_instance_; -class HandStartMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HandStartMessage_default_instance_; -class PlayersTurnMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayersTurnMessage_default_instance_; -class MyActionRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _MyActionRequestMessage_default_instance_; -class YourActionRejectedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _YourActionRejectedMessage_default_instance_; -class PlayersActionDoneMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayersActionDoneMessage_default_instance_; -class DealFlopCardsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DealFlopCardsMessage_default_instance_; -class DealTurnCardMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DealTurnCardMessage_default_instance_; -class DealRiverCardMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DealRiverCardMessage_default_instance_; -class AllInShowCardsMessage_PlayerAllInDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AllInShowCardsMessage_PlayerAllIn_default_instance_; -class AllInShowCardsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AllInShowCardsMessage_default_instance_; -class EndOfHandShowCardsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EndOfHandShowCardsMessage_default_instance_; -class EndOfHandHideCardsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EndOfHandHideCardsMessage_default_instance_; -class ShowMyCardsRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ShowMyCardsRequestMessage_default_instance_; -class AfterHandShowCardsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AfterHandShowCardsMessage_default_instance_; -class EndOfGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EndOfGameMessage_default_instance_; -class PlayerIdChangedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PlayerIdChangedMessage_default_instance_; -class AskKickPlayerMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AskKickPlayerMessage_default_instance_; -class AskKickDeniedMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AskKickDeniedMessage_default_instance_; -class StartKickPetitionMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StartKickPetitionMessage_default_instance_; -class VoteKickRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VoteKickRequestMessage_default_instance_; -class VoteKickReplyMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VoteKickReplyMessage_default_instance_; -class KickPetitionUpdateMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _KickPetitionUpdateMessage_default_instance_; -class EndKickPetitionMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EndKickPetitionMessage_default_instance_; -class StatisticsMessage_StatisticsDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StatisticsMessage_StatisticsData_default_instance_; -class StatisticsMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StatisticsMessage_default_instance_; -class ChatRequestMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ChatRequestMessage_default_instance_; -class ChatMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ChatMessage_default_instance_; -class ChatRejectMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ChatRejectMessage_default_instance_; -class DialogMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DialogMessage_default_instance_; -class TimeoutWarningMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TimeoutWarningMessage_default_instance_; -class ResetTimeoutMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ResetTimeoutMessage_default_instance_; -class ReportAvatarMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReportAvatarMessage_default_instance_; -class ReportAvatarAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReportAvatarAckMessage_default_instance_; -class ReportGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReportGameMessage_default_instance_; -class ReportGameAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReportGameAckMessage_default_instance_; -class ErrorMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ErrorMessage_default_instance_; -class AdminRemoveGameMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AdminRemoveGameMessage_default_instance_; -class AdminRemoveGameAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AdminRemoveGameAckMessage_default_instance_; -class AdminBanPlayerMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AdminBanPlayerMessage_default_instance_; -class AdminBanPlayerAckMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AdminBanPlayerAckMessage_default_instance_; -class PokerTHMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PokerTHMessage_default_instance_; -static void InitDefaultsNetGameInfo_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_NetGameInfo_default_instance_; - new (ptr) ::NetGameInfo(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::NetGameInfo::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NetGameInfo_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNetGameInfo_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerResult_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerResult_default_instance_; - new (ptr) ::PlayerResult(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerResult::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayerResult_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayerResult_pokerth_2eproto}, {}}; - -static void InitDefaultsAnnounceMessage_Version_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AnnounceMessage_Version_default_instance_; - new (ptr) ::AnnounceMessage_Version(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AnnounceMessage_Version::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AnnounceMessage_Version_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAnnounceMessage_Version_pokerth_2eproto}, {}}; - -static void InitDefaultsAnnounceMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AnnounceMessage_default_instance_; - new (ptr) ::AnnounceMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AnnounceMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AnnounceMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAnnounceMessage_pokerth_2eproto}, { - &scc_info_AnnounceMessage_Version_pokerth_2eproto.base,}}; - -static void InitDefaultsInitMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_InitMessage_default_instance_; - new (ptr) ::InitMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::InitMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_InitMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInitMessage_pokerth_2eproto}, { - &scc_info_AnnounceMessage_Version_pokerth_2eproto.base,}}; - -static void InitDefaultsAuthServerChallengeMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AuthServerChallengeMessage_default_instance_; - new (ptr) ::AuthServerChallengeMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AuthServerChallengeMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AuthServerChallengeMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuthServerChallengeMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAuthClientResponseMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AuthClientResponseMessage_default_instance_; - new (ptr) ::AuthClientResponseMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AuthClientResponseMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AuthClientResponseMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuthClientResponseMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAuthServerVerificationMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AuthServerVerificationMessage_default_instance_; - new (ptr) ::AuthServerVerificationMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AuthServerVerificationMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AuthServerVerificationMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuthServerVerificationMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsInitAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_InitAckMessage_default_instance_; - new (ptr) ::InitAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::InitAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_InitAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInitAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAvatarRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AvatarRequestMessage_default_instance_; - new (ptr) ::AvatarRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AvatarRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AvatarRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAvatarRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAvatarHeaderMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AvatarHeaderMessage_default_instance_; - new (ptr) ::AvatarHeaderMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AvatarHeaderMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AvatarHeaderMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAvatarHeaderMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAvatarDataMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AvatarDataMessage_default_instance_; - new (ptr) ::AvatarDataMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AvatarDataMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AvatarDataMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAvatarDataMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAvatarEndMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AvatarEndMessage_default_instance_; - new (ptr) ::AvatarEndMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AvatarEndMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AvatarEndMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAvatarEndMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsUnknownAvatarMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_UnknownAvatarMessage_default_instance_; - new (ptr) ::UnknownAvatarMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::UnknownAvatarMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_UnknownAvatarMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUnknownAvatarMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerListMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerListMessage_default_instance_; - new (ptr) ::PlayerListMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerListMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayerListMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayerListMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListNewMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListNewMessage_default_instance_; - new (ptr) ::GameListNewMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListNewMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GameListNewMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGameListNewMessage_pokerth_2eproto}, { - &scc_info_NetGameInfo_pokerth_2eproto.base,}}; - -static void InitDefaultsGameListUpdateMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListUpdateMessage_default_instance_; - new (ptr) ::GameListUpdateMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListUpdateMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListUpdateMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListUpdateMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListPlayerJoinedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListPlayerJoinedMessage_default_instance_; - new (ptr) ::GameListPlayerJoinedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListPlayerJoinedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListPlayerJoinedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListPlayerJoinedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListPlayerLeftMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListPlayerLeftMessage_default_instance_; - new (ptr) ::GameListPlayerLeftMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListPlayerLeftMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListPlayerLeftMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListPlayerLeftMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListSpectatorJoinedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListSpectatorJoinedMessage_default_instance_; - new (ptr) ::GameListSpectatorJoinedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListSpectatorJoinedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListSpectatorJoinedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListSpectatorLeftMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListSpectatorLeftMessage_default_instance_; - new (ptr) ::GameListSpectatorLeftMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListSpectatorLeftMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListSpectatorLeftMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListSpectatorLeftMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameListAdminChangedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameListAdminChangedMessage_default_instance_; - new (ptr) ::GameListAdminChangedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameListAdminChangedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameListAdminChangedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameListAdminChangedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerInfoRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerInfoRequestMessage_default_instance_; - new (ptr) ::PlayerInfoRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerInfoRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayerInfoRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayerInfoRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; - new (ptr) ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerInfoReplyMessage_PlayerInfoData_default_instance_; - new (ptr) ::PlayerInfoReplyMessage_PlayerInfoData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto}, { - &scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto.base,}}; - -static void InitDefaultsPlayerInfoReplyMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerInfoReplyMessage_default_instance_; - new (ptr) ::PlayerInfoReplyMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerInfoReplyMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PlayerInfoReplyMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPlayerInfoReplyMessage_pokerth_2eproto}, { - &scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto.base,}}; - -static void InitDefaultsSubscriptionRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_SubscriptionRequestMessage_default_instance_; - new (ptr) ::SubscriptionRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::SubscriptionRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SubscriptionRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSubscriptionRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsJoinExistingGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_JoinExistingGameMessage_default_instance_; - new (ptr) ::JoinExistingGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::JoinExistingGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_JoinExistingGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsJoinExistingGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsJoinNewGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_JoinNewGameMessage_default_instance_; - new (ptr) ::JoinNewGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::JoinNewGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_JoinNewGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsJoinNewGameMessage_pokerth_2eproto}, { - &scc_info_NetGameInfo_pokerth_2eproto.base,}}; - -static void InitDefaultsRejoinExistingGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_RejoinExistingGameMessage_default_instance_; - new (ptr) ::RejoinExistingGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::RejoinExistingGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RejoinExistingGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRejoinExistingGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsJoinGameAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_JoinGameAckMessage_default_instance_; - new (ptr) ::JoinGameAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::JoinGameAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_JoinGameAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsJoinGameAckMessage_pokerth_2eproto}, { - &scc_info_NetGameInfo_pokerth_2eproto.base,}}; - -static void InitDefaultsJoinGameFailedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_JoinGameFailedMessage_default_instance_; - new (ptr) ::JoinGameFailedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::JoinGameFailedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_JoinGameFailedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsJoinGameFailedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGamePlayerJoinedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GamePlayerJoinedMessage_default_instance_; - new (ptr) ::GamePlayerJoinedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GamePlayerJoinedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GamePlayerJoinedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGamePlayerJoinedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGamePlayerLeftMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GamePlayerLeftMessage_default_instance_; - new (ptr) ::GamePlayerLeftMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GamePlayerLeftMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GamePlayerLeftMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGamePlayerLeftMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameSpectatorJoinedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameSpectatorJoinedMessage_default_instance_; - new (ptr) ::GameSpectatorJoinedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameSpectatorJoinedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameSpectatorJoinedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameSpectatorJoinedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameSpectatorLeftMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameSpectatorLeftMessage_default_instance_; - new (ptr) ::GameSpectatorLeftMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameSpectatorLeftMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameSpectatorLeftMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameSpectatorLeftMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameAdminChangedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameAdminChangedMessage_default_instance_; - new (ptr) ::GameAdminChangedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameAdminChangedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameAdminChangedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameAdminChangedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsRemovedFromGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_RemovedFromGameMessage_default_instance_; - new (ptr) ::RemovedFromGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::RemovedFromGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RemovedFromGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRemovedFromGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsKickPlayerRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_KickPlayerRequestMessage_default_instance_; - new (ptr) ::KickPlayerRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::KickPlayerRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_KickPlayerRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKickPlayerRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsLeaveGameRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_LeaveGameRequestMessage_default_instance_; - new (ptr) ::LeaveGameRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::LeaveGameRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_LeaveGameRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLeaveGameRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsInvitePlayerToGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_InvitePlayerToGameMessage_default_instance_; - new (ptr) ::InvitePlayerToGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::InvitePlayerToGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_InvitePlayerToGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInvitePlayerToGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsInviteNotifyMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_InviteNotifyMessage_default_instance_; - new (ptr) ::InviteNotifyMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::InviteNotifyMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_InviteNotifyMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInviteNotifyMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsRejectGameInvitationMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_RejectGameInvitationMessage_default_instance_; - new (ptr) ::RejectGameInvitationMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::RejectGameInvitationMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RejectGameInvitationMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRejectGameInvitationMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsRejectInvNotifyMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_RejectInvNotifyMessage_default_instance_; - new (ptr) ::RejectInvNotifyMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::RejectInvNotifyMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RejectInvNotifyMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRejectInvNotifyMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsStartEventMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_StartEventMessage_default_instance_; - new (ptr) ::StartEventMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::StartEventMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StartEventMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStartEventMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsStartEventAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_StartEventAckMessage_default_instance_; - new (ptr) ::StartEventAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::StartEventAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StartEventAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStartEventAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameStartInitialMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameStartInitialMessage_default_instance_; - new (ptr) ::GameStartInitialMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameStartInitialMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameStartInitialMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameStartInitialMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsGameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameStartRejoinMessage_RejoinPlayerData_default_instance_; - new (ptr) ::GameStartRejoinMessage_RejoinPlayerData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto}, {}}; - -static void InitDefaultsGameStartRejoinMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_GameStartRejoinMessage_default_instance_; - new (ptr) ::GameStartRejoinMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::GameStartRejoinMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GameStartRejoinMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGameStartRejoinMessage_pokerth_2eproto}, { - &scc_info_GameStartRejoinMessage_RejoinPlayerData_pokerth_2eproto.base,}}; - -static void InitDefaultsHandStartMessage_PlainCards_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_HandStartMessage_PlainCards_default_instance_; - new (ptr) ::HandStartMessage_PlainCards(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::HandStartMessage_PlainCards::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HandStartMessage_PlainCards_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHandStartMessage_PlainCards_pokerth_2eproto}, {}}; - -static void InitDefaultsHandStartMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_HandStartMessage_default_instance_; - new (ptr) ::HandStartMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::HandStartMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_HandStartMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHandStartMessage_pokerth_2eproto}, { - &scc_info_HandStartMessage_PlainCards_pokerth_2eproto.base,}}; - -static void InitDefaultsPlayersTurnMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayersTurnMessage_default_instance_; - new (ptr) ::PlayersTurnMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayersTurnMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayersTurnMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayersTurnMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsMyActionRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_MyActionRequestMessage_default_instance_; - new (ptr) ::MyActionRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::MyActionRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_MyActionRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMyActionRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsYourActionRejectedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_YourActionRejectedMessage_default_instance_; - new (ptr) ::YourActionRejectedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::YourActionRejectedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_YourActionRejectedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsYourActionRejectedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayersActionDoneMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayersActionDoneMessage_default_instance_; - new (ptr) ::PlayersActionDoneMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayersActionDoneMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayersActionDoneMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayersActionDoneMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsDealFlopCardsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DealFlopCardsMessage_default_instance_; - new (ptr) ::DealFlopCardsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::DealFlopCardsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DealFlopCardsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDealFlopCardsMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsDealTurnCardMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DealTurnCardMessage_default_instance_; - new (ptr) ::DealTurnCardMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::DealTurnCardMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DealTurnCardMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDealTurnCardMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsDealRiverCardMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DealRiverCardMessage_default_instance_; - new (ptr) ::DealRiverCardMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::DealRiverCardMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DealRiverCardMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDealRiverCardMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAllInShowCardsMessage_PlayerAllIn_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AllInShowCardsMessage_PlayerAllIn_default_instance_; - new (ptr) ::AllInShowCardsMessage_PlayerAllIn(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAllInShowCardsMessage_PlayerAllIn_pokerth_2eproto}, {}}; - -static void InitDefaultsAllInShowCardsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AllInShowCardsMessage_default_instance_; - new (ptr) ::AllInShowCardsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AllInShowCardsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AllInShowCardsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAllInShowCardsMessage_pokerth_2eproto}, { - &scc_info_AllInShowCardsMessage_PlayerAllIn_pokerth_2eproto.base,}}; - -static void InitDefaultsEndOfHandShowCardsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_EndOfHandShowCardsMessage_default_instance_; - new (ptr) ::EndOfHandShowCardsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::EndOfHandShowCardsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_EndOfHandShowCardsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEndOfHandShowCardsMessage_pokerth_2eproto}, { - &scc_info_PlayerResult_pokerth_2eproto.base,}}; - -static void InitDefaultsEndOfHandHideCardsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_EndOfHandHideCardsMessage_default_instance_; - new (ptr) ::EndOfHandHideCardsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::EndOfHandHideCardsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EndOfHandHideCardsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEndOfHandHideCardsMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsShowMyCardsRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ShowMyCardsRequestMessage_default_instance_; - new (ptr) ::ShowMyCardsRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ShowMyCardsRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ShowMyCardsRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsShowMyCardsRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAfterHandShowCardsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AfterHandShowCardsMessage_default_instance_; - new (ptr) ::AfterHandShowCardsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AfterHandShowCardsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AfterHandShowCardsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAfterHandShowCardsMessage_pokerth_2eproto}, { - &scc_info_PlayerResult_pokerth_2eproto.base,}}; - -static void InitDefaultsEndOfGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_EndOfGameMessage_default_instance_; - new (ptr) ::EndOfGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::EndOfGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EndOfGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEndOfGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPlayerIdChangedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PlayerIdChangedMessage_default_instance_; - new (ptr) ::PlayerIdChangedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PlayerIdChangedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PlayerIdChangedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPlayerIdChangedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAskKickPlayerMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AskKickPlayerMessage_default_instance_; - new (ptr) ::AskKickPlayerMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AskKickPlayerMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AskKickPlayerMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAskKickPlayerMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAskKickDeniedMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AskKickDeniedMessage_default_instance_; - new (ptr) ::AskKickDeniedMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AskKickDeniedMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AskKickDeniedMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAskKickDeniedMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsStartKickPetitionMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_StartKickPetitionMessage_default_instance_; - new (ptr) ::StartKickPetitionMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::StartKickPetitionMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StartKickPetitionMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStartKickPetitionMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsVoteKickRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_VoteKickRequestMessage_default_instance_; - new (ptr) ::VoteKickRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VoteKickRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_VoteKickRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVoteKickRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsVoteKickReplyMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_VoteKickReplyMessage_default_instance_; - new (ptr) ::VoteKickReplyMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::VoteKickReplyMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_VoteKickReplyMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVoteKickReplyMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsKickPetitionUpdateMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_KickPetitionUpdateMessage_default_instance_; - new (ptr) ::KickPetitionUpdateMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::KickPetitionUpdateMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_KickPetitionUpdateMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKickPetitionUpdateMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsEndKickPetitionMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_EndKickPetitionMessage_default_instance_; - new (ptr) ::EndKickPetitionMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::EndKickPetitionMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EndKickPetitionMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEndKickPetitionMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsStatisticsMessage_StatisticsData_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_StatisticsMessage_StatisticsData_default_instance_; - new (ptr) ::StatisticsMessage_StatisticsData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::StatisticsMessage_StatisticsData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStatisticsMessage_StatisticsData_pokerth_2eproto}, {}}; - -static void InitDefaultsStatisticsMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_StatisticsMessage_default_instance_; - new (ptr) ::StatisticsMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::StatisticsMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StatisticsMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStatisticsMessage_pokerth_2eproto}, { - &scc_info_StatisticsMessage_StatisticsData_pokerth_2eproto.base,}}; - -static void InitDefaultsChatRequestMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ChatRequestMessage_default_instance_; - new (ptr) ::ChatRequestMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ChatRequestMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ChatRequestMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsChatRequestMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsChatMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ChatMessage_default_instance_; - new (ptr) ::ChatMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ChatMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ChatMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsChatMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsChatRejectMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ChatRejectMessage_default_instance_; - new (ptr) ::ChatRejectMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ChatRejectMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ChatRejectMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsChatRejectMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsDialogMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_DialogMessage_default_instance_; - new (ptr) ::DialogMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::DialogMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DialogMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDialogMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsTimeoutWarningMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_TimeoutWarningMessage_default_instance_; - new (ptr) ::TimeoutWarningMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::TimeoutWarningMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TimeoutWarningMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTimeoutWarningMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsResetTimeoutMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ResetTimeoutMessage_default_instance_; - new (ptr) ::ResetTimeoutMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ResetTimeoutMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ResetTimeoutMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResetTimeoutMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsReportAvatarMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ReportAvatarMessage_default_instance_; - new (ptr) ::ReportAvatarMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ReportAvatarMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ReportAvatarMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReportAvatarMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsReportAvatarAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ReportAvatarAckMessage_default_instance_; - new (ptr) ::ReportAvatarAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ReportAvatarAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ReportAvatarAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReportAvatarAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsReportGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ReportGameMessage_default_instance_; - new (ptr) ::ReportGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ReportGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ReportGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReportGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsReportGameAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ReportGameAckMessage_default_instance_; - new (ptr) ::ReportGameAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ReportGameAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ReportGameAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReportGameAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsErrorMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_ErrorMessage_default_instance_; - new (ptr) ::ErrorMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::ErrorMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ErrorMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsErrorMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAdminRemoveGameMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AdminRemoveGameMessage_default_instance_; - new (ptr) ::AdminRemoveGameMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AdminRemoveGameMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AdminRemoveGameMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminRemoveGameMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAdminRemoveGameAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AdminRemoveGameAckMessage_default_instance_; - new (ptr) ::AdminRemoveGameAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AdminRemoveGameAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AdminRemoveGameAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminRemoveGameAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAdminBanPlayerMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AdminBanPlayerMessage_default_instance_; - new (ptr) ::AdminBanPlayerMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AdminBanPlayerMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AdminBanPlayerMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminBanPlayerMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsAdminBanPlayerAckMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_AdminBanPlayerAckMessage_default_instance_; - new (ptr) ::AdminBanPlayerAckMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::AdminBanPlayerAckMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AdminBanPlayerAckMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminBanPlayerAckMessage_pokerth_2eproto}, {}}; - -static void InitDefaultsPokerTHMessage_pokerth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::_PokerTHMessage_default_instance_; - new (ptr) ::PokerTHMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::PokerTHMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<81> scc_info_PokerTHMessage_pokerth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 81, InitDefaultsPokerTHMessage_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,}}; +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 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_; +} + +void protobuf_AddDesc_pokerth_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + 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(); + 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(); + 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); +} + +// 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_; + +bool NetGameMode_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +bool NetGameState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +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; + } +} + +bool NetPlayerState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +bool NetPlayerInfoRights_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +bool NetAvatarType_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== bool NetGameInfo_NetGameType_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: case 3: @@ -1847,7 +390,7 @@ bool NetGameInfo_NetGameType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const NetGameInfo_NetGameType NetGameInfo::normalGame; const NetGameInfo_NetGameType NetGameInfo::registeredOnlyGame; const NetGameInfo_NetGameType NetGameInfo::inviteOnlyGame; @@ -1855,9 +398,9 @@ const NetGameInfo_NetGameType NetGameInfo::rankingGame; const NetGameInfo_NetGameType NetGameInfo::NetGameType_MIN; const NetGameInfo_NetGameType NetGameInfo::NetGameType_MAX; const int NetGameInfo::NetGameType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: return true; @@ -1866,15 +409,15 @@ bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER bool NetGameInfo_EndRaiseMode_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: case 3: @@ -1884,16 +427,1083 @@ bool NetGameInfo_EndRaiseMode_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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; +#endif // !_MSC_VER + +NetGameInfo::NetGameInfo() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +void NetGameInfo::InitAsDefaultInstance() { +} + +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; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NetGameInfo::~NetGameInfo() { + SharedDtor(); +} + +void NetGameInfo::SharedDtor() { + if (gamename_ != &::google::protobuf::internal::kEmptyString) { + delete gamename_; + } + if (this != default_instance_) { + } +} + +void NetGameInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const NetGameInfo& NetGameInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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; + } + 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->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); + } + +} + +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; + } + + } + // 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); + } + _manualblinds_cached_byte_size_ = data_size; + 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()); + } + } +} + +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(_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() { + if (this != default_instance_) { + } +} + +void PlayerResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayerResult& PlayerResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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); + } + _besthandposition_cached_byte_size_ = data_size; + 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"; +} + + +// =================================================================== + bool AnnounceMessage_ServerType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -1903,16 +1513,524 @@ bool AnnounceMessage_ServerType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int AnnounceMessage_Version::kMajorVersionFieldNumber; +const int AnnounceMessage_Version::kMinorVersionFieldNumber; +#endif // !_MSC_VER + +AnnounceMessage_Version::AnnounceMessage_Version() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + protocolversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); + latestgameversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); +} + +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() { + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool InitMessage_LoginType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -1922,16 +2040,2180 @@ bool InitMessage_LoginType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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() { + requestedversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); +} + +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_; + } + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void AuthServerChallengeMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void AuthClientResponseMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void AuthServerVerificationMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void InitAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const InitAckMessage& InitAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void AvatarRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AvatarRequestMessage& AvatarRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AvatarHeaderMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void AvatarDataMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AvatarDataMessage& AvatarDataMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AvatarEndMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AvatarEndMessage& AvatarEndMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void UnknownAvatarMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool PlayerListMessage_PlayerListNotification_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: return true; @@ -1940,15 +4222,2673 @@ bool PlayerListMessage_PlayerListNotification_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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() { + if (this != default_instance_) { + } +} + +void PlayerListMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayerListMessage& PlayerListMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +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() { + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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); + } + _playerids_cached_byte_size_ = data_size; + 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); + } + _spectatorids_cached_byte_size_ = data_size; + 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() { + if (this != default_instance_) { + } +} + +void GameListUpdateMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListUpdateMessage& GameListUpdateMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameListPlayerJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameListPlayerLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameListSpectatorJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListSpectatorJoinedMessage& GameListSpectatorJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameListSpectatorLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListSpectatorLeftMessage& GameListSpectatorLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameListAdminChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void PlayerInfoRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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); + } + _playerid_cached_byte_size_ = data_size; + 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_; + } + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>(&::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance()); +} + +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_; + } + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>(&::PlayerInfoReplyMessage_PlayerInfoData::default_instance()); +} + +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() { + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: return true; @@ -1957,15 +6897,1140 @@ bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int SubscriptionRequestMessage::kSubscriptionActionFieldNumber; +#endif // !_MSC_VER + +SubscriptionRequestMessage::SubscriptionRequestMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void SubscriptionRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void JoinExistingGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +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_; + } + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void RejoinExistingGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +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() { + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: case 3: @@ -1984,7 +8049,7 @@ bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidGame; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsFull; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsRunning; @@ -2000,9 +8065,433 @@ const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::noSpect const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MIN; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MAX; const int JoinGameFailedMessage::JoinGameFailureReason_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int JoinGameFailedMessage::kGameIdFieldNumber; +const int JoinGameFailedMessage::kJoinGameFailureReasonFieldNumber; +#endif // !_MSC_VER + +JoinGameFailedMessage::JoinGameFailedMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void JoinGameFailedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GamePlayerJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2012,16 +8501,868 @@ bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int GamePlayerLeftMessage::kGameIdFieldNumber; +const int GamePlayerLeftMessage::kPlayerIdFieldNumber; +const int GamePlayerLeftMessage::kGamePlayerLeftReasonFieldNumber; +#endif // !_MSC_VER + +GamePlayerLeftMessage::GamePlayerLeftMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void GamePlayerLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameSpectatorJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameSpectatorJoinedMessage& GameSpectatorJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameSpectatorLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameSpectatorLeftMessage& GameSpectatorLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameAdminChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2035,7 +9376,7 @@ bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedOnRequest; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::kickedFromGame; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsFull; @@ -2046,9 +9387,982 @@ const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameC const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MIN; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MAX; const int RemovedFromGameMessage::RemovedFromGameReason_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int RemovedFromGameMessage::kGameIdFieldNumber; +const int RemovedFromGameMessage::kRemovedFromGameReasonFieldNumber; +#endif // !_MSC_VER + +RemovedFromGameMessage::RemovedFromGameMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void RemovedFromGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void KickPlayerRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void LeaveGameRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void InvitePlayerToGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void InviteNotifyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const InviteNotifyMessage& InviteNotifyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: return true; @@ -2057,15 +10371,444 @@ bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int RejectGameInvitationMessage::kGameIdFieldNumber; +const int RejectGameInvitationMessage::kMyRejectReasonFieldNumber; +#endif // !_MSC_VER + +RejectGameInvitationMessage::RejectGameInvitationMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void RejectGameInvitationMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void RejectInvNotifyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool StartEventMessage_StartEventType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: return true; @@ -2074,15 +10817,2196 @@ bool StartEventMessage_StartEventType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const StartEventMessage_StartEventType StartEventMessage::startEvent; const StartEventMessage_StartEventType StartEventMessage::rejoinEvent; const StartEventMessage_StartEventType StartEventMessage::StartEventType_MIN; const StartEventMessage_StartEventType StartEventMessage::StartEventType_MAX; const int StartEventMessage::StartEventType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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() { + if (this != default_instance_) { + } +} + +void StartEventMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const StartEventMessage& StartEventMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void StartEventAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const StartEventAckMessage& StartEventAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameStartInitialMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameStartInitialMessage& GameStartInitialMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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); + } + _playerseats_cached_byte_size_ = data_size; + 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() { + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void GameStartRejoinMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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 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() { + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + plaincards_ = const_cast< ::HandStartMessage_PlainCards*>(&::HandStartMessage_PlainCards::default_instance()); +} + +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_; + } + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void PlayersTurnMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayersTurnMessage& PlayersTurnMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void MyActionRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const MyActionRequestMessage& MyActionRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: case 3: @@ -2092,16 +13016,3127 @@ bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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() { + if (this != default_instance_) { + } +} + +void YourActionRejectedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void PlayersActionDoneMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void DealFlopCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void DealTurnCardMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const DealTurnCardMessage& DealTurnCardMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void DealRiverCardMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const DealRiverCardMessage& DealRiverCardMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AllInShowCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void EndOfHandShowCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void EndOfHandHideCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void ShowMyCardsRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + playerresult_ = const_cast< ::PlayerResult*>(&::PlayerResult::default_instance()); +} + +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() { + if (this != default_instance_) { + 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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void EndOfGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const EndOfGameMessage& EndOfGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void PlayerIdChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AskKickPlayerMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2113,7 +16148,7 @@ bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidGameState; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedNotPossible; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedTryAgainLater; @@ -2122,9 +16157,802 @@ const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInva const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MIN; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MAX; const int AskKickDeniedMessage::KickDeniedReason_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int AskKickDeniedMessage::kGameIdFieldNumber; +const int AskKickDeniedMessage::kPlayerIdFieldNumber; +const int AskKickDeniedMessage::kKickDeniedReasonFieldNumber; +#endif // !_MSC_VER + +AskKickDeniedMessage::AskKickDeniedMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void AskKickDeniedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void StartKickPetitionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void VoteKickRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2134,16 +16962,547 @@ bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int VoteKickReplyMessage::kGameIdFieldNumber; +const int VoteKickReplyMessage::kPetitionIdFieldNumber; +const int VoteKickReplyMessage::kVoteKickReplyTypeFieldNumber; +#endif // !_MSC_VER + +VoteKickReplyMessage::VoteKickReplyMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void VoteKickReplyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void KickPetitionUpdateMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2154,7 +17513,7 @@ bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndEnoughVotes; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTooFewPlayers; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndPlayerLeft; @@ -2162,9 +17521,346 @@ const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionE const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MIN; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MAX; const int EndKickPetitionMessage::PetitionEndReason_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 + +EndKickPetitionMessage::EndKickPetitionMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void EndKickPetitionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { - switch (value) { + switch(value) { case 1: return true; default: @@ -2172,14 +17868,600 @@ bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int StatisticsMessage_StatisticsData::kStatisticsTypeFieldNumber; +const int StatisticsMessage_StatisticsData::kStatisticsValueFieldNumber; +#endif // !_MSC_VER + +StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +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() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void StatisticsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const StatisticsMessage& StatisticsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void ChatRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ChatRequestMessage& ChatRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool ChatMessage_ChatType_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2191,7 +18473,7 @@ bool ChatMessage_ChatType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const ChatMessage_ChatType ChatMessage::chatTypeLobby; const ChatMessage_ChatType ChatMessage::chatTypeGame; const ChatMessage_ChatType ChatMessage::chatTypeBot; @@ -2200,9 +18482,612 @@ const ChatMessage_ChatType ChatMessage::chatTypePrivate; const ChatMessage_ChatType ChatMessage::ChatType_MIN; const ChatMessage_ChatType ChatMessage::ChatType_MAX; const int ChatMessage::ChatType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 + +ChatMessage::ChatMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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_; + } + if (this != default_instance_) { + } +} + +void ChatMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ChatMessage& ChatMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void ChatRejectMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ChatRejectMessage& ChatRejectMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void DialogMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const DialogMessage& DialogMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2212,16 +19097,524 @@ bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int TimeoutWarningMessage::kTimeoutReasonFieldNumber; +const int TimeoutWarningMessage::kRemainingSecondsFieldNumber; +#endif // !_MSC_VER + +TimeoutWarningMessage::TimeoutWarningMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void TimeoutWarningMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void ResetTimeoutMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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_; + } + if (this != default_instance_) { + } +} + +void ReportAvatarMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ReportAvatarMessage& ReportAvatarMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2231,16 +19624,372 @@ bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int ReportAvatarAckMessage::kReportedPlayerIdFieldNumber; +const int ReportAvatarAckMessage::kReportAvatarResultFieldNumber; +#endif // !_MSC_VER + +ReportAvatarAckMessage::ReportAvatarAckMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void ReportAvatarAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void ReportGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ReportGameMessage& ReportGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2250,16 +19999,213 @@ bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int ReportGameAckMessage::kReportedGameIdFieldNumber; +const int ReportGameAckMessage::kReportGameResultFieldNumber; +#endif // !_MSC_VER + +ReportGameAckMessage::ReportGameAckMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void ReportGameAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ReportGameAckMessage& ReportGameAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool ErrorMessage_ErrorReason_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2281,7 +20227,7 @@ bool ErrorMessage_ErrorReason_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const ErrorMessage_ErrorReason ErrorMessage::custReserved; const ErrorMessage_ErrorReason ErrorMessage::initVersionNotSupported; const ErrorMessage_ErrorReason ErrorMessage::initServerFull; @@ -2300,9 +20246,330 @@ const ErrorMessage_ErrorReason ErrorMessage::sessionTimeout; const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MIN; const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MAX; const int ErrorMessage::ErrorReason_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int ErrorMessage::kErrorReasonFieldNumber; +#endif // !_MSC_VER + +ErrorMessage::ErrorMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void ErrorMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ErrorMessage& ErrorMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AdminRemoveGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AdminRemoveGameMessage& AdminRemoveGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: return true; @@ -2311,15 +20578,371 @@ bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#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 // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int AdminRemoveGameAckMessage::kRemoveGameIdFieldNumber; +const int AdminRemoveGameAckMessage::kRemoveGameResultFieldNumber; +#endif // !_MSC_VER + +AdminRemoveGameAckMessage::AdminRemoveGameAckMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void AdminRemoveGameAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AdminRemoveGameAckMessage& AdminRemoveGameAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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() { + if (this != default_instance_) { + } +} + +void AdminBanPlayerMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AdminBanPlayerMessage& AdminBanPlayerMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { - switch (value) { + switch(value) { case 0: case 1: case 2: @@ -2331,7 +20954,7 @@ bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerAccepted; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerPending; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerNoDB; @@ -2340,9 +20963,206 @@ const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::ba const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MIN; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MAX; const int AdminBanPlayerAckMessage::AdminBanPlayerResult_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER +const int AdminBanPlayerAckMessage::kBanPlayerIdFieldNumber; +const int AdminBanPlayerAckMessage::kBanPlayerResultFieldNumber; +#endif // !_MSC_VER + +AdminBanPlayerAckMessage::AdminBanPlayerAckMessage() + : ::google::protobuf::MessageLite() { + SharedCtor(); +} + +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() { + if (this != default_instance_) { + } +} + +void AdminBanPlayerAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const AdminBanPlayerAckMessage& AdminBanPlayerAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); 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"; +} + + +// =================================================================== + bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { - switch (value) { + switch(value) { case 1: case 2: case 3: @@ -2430,7 +21250,7 @@ bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { } } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#ifndef _MSC_VER const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AnnounceMessage; const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitMessage; const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerChallengeMessage; @@ -2515,32136 +21335,8 @@ const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorLeftMe const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MIN; const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MAX; const int PokerTHMessage::PokerTHMessageType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -bool NetGameMode_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -bool NetGameState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -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; - } -} - -bool NetPlayerState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -bool NetPlayerInfoRights_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -bool NetAvatarType_IsValid(int value) { - switch (value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -void NetGameInfo::InitAsDefaultInstance() { -} -class NetGameInfo::HasBitSetters { - public: - static void set_has_gamename(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_netgametype(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000400u; - } - static void set_has_maxnumplayers(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_raiseintervalmode(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000800u; - } - static void set_has_raiseeveryhands(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_raiseeveryminutes(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_endraisemode(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00001000u; - } - static void set_has_endraisesmallblindvalue(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_proposedguispeed(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static void set_has_delaybetweenhands(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000040u; - } - static void set_has_playeractiontimeout(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000080u; - } - static void set_has_firstsmallblind(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000100u; - } - static void set_has_startmoney(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00000200u; - } - static void set_has_allowspectators(NetGameInfo* msg) { - msg->_has_bits_[0] |= 0x00002000u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NetGameInfo::NetGameInfo() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:NetGameInfo) -} -NetGameInfo::NetGameInfo(const NetGameInfo& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_), - manualblinds_(from.manualblinds_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - gamename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_gamename()) { - gamename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gamename_); - } - ::memcpy(&maxnumplayers_, &from.maxnumplayers_, - static_cast(reinterpret_cast(&allowspectators_) - - reinterpret_cast(&maxnumplayers_)) + sizeof(allowspectators_)); - // @@protoc_insertion_point(copy_constructor:NetGameInfo) -} - -void NetGameInfo::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NetGameInfo_pokerth_2eproto.base); - gamename_.UnsafeSetDefault(&::google::protobuf::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(); -} - -void NetGameInfo::SharedDtor() { - gamename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NetGameInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NetGameInfo& NetGameInfo::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NetGameInfo_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void NetGameInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:NetGameInfo) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - 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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NetGameInfo::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required string gameName = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_gamename(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required .NetGameInfo.NetGameType netGameType = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameInfo_NetGameType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_netgametype(static_cast<::NetGameInfo_NetGameType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 maxNumPlayers = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_maxnumplayers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameInfo_RaiseIntervalMode_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(4, val, msg->mutable_unknown_fields()); - break; - } - msg->set_raiseintervalmode(static_cast<::NetGameInfo_RaiseIntervalMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 raiseEveryHands = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_raiseeveryhands(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 raiseEveryMinutes = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_raiseeveryminutes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameInfo_EndRaiseMode_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(7, val, msg->mutable_unknown_fields()); - break; - } - msg->set_endraisemode(static_cast<::NetGameInfo_EndRaiseMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 endRaiseSmallBlindValue = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; - msg->set_endraisesmallblindvalue(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 proposedGuiSpeed = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 72) goto handle_unusual; - msg->set_proposedguispeed(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 delayBetweenHands = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; - msg->set_delaybetweenhands(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerActionTimeout = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 88) goto handle_unusual; - msg->set_playeractiontimeout(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 firstSmallBlind = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 96) goto handle_unusual; - msg->set_firstsmallblind(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 startMoney = 13; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 104) goto handle_unusual; - msg->set_startmoney(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated uint32 manualBlinds = 14 [packed = true]; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) == 114) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_manualblinds(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 112) goto handle_unusual; - do { - msg->add_manualblinds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 112 && (ptr += 1)); - break; - } - // optional bool allowSpectators = 15 [default = true]; - case 15: { - if (static_cast<::google::protobuf::uint8>(tag) != 120) goto handle_unusual; - msg->set_allowspectators(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NetGameInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:NetGameInfo) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string gameName = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_gamename())); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameInfo.NetGameType netGameType = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 maxNumPlayers = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_maxnumplayers(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &maxnumplayers_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(32u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 raiseEveryHands = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_raiseeveryhands(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &raiseeveryhands_))); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 raiseEveryMinutes = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - HasBitSetters::set_has_raiseeveryminutes(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &raiseeveryminutes_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(56u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 endRaiseSmallBlindValue = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { - HasBitSetters::set_has_endraisesmallblindvalue(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &endraisesmallblindvalue_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 proposedGuiSpeed = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (72 & 0xFF)) { - HasBitSetters::set_has_proposedguispeed(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &proposedguispeed_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 delayBetweenHands = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { - HasBitSetters::set_has_delaybetweenhands(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &delaybetweenhands_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerActionTimeout = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (88 & 0xFF)) { - HasBitSetters::set_has_playeractiontimeout(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeractiontimeout_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 firstSmallBlind = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (96 & 0xFF)) { - HasBitSetters::set_has_firstsmallblind(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &firstsmallblind_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 startMoney = 13; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (104 & 0xFF)) { - HasBitSetters::set_has_startmoney(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startmoney_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 manualBlinds = 14 [packed = true]; - case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_manualblinds()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (112 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 114u, input, this->mutable_manualblinds()))); - } else { - goto handle_unusual; - } - break; - } - - // optional bool allowSpectators = 15 [default = true]; - case 15: { - if (static_cast< ::google::protobuf::uint8>(tag) == (120 & 0xFF)) { - HasBitSetters::set_has_allowspectators(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allowspectators_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:NetGameInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:NetGameInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NetGameInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:NetGameInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required string gameName = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->gamename(), output); - } - - // required .NetGameInfo.NetGameType netGameType = 2; - if (cached_has_bits & 0x00000400u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->netgametype(), output); - } - - // required uint32 maxNumPlayers = 3; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->maxnumplayers(), output); - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - if (cached_has_bits & 0x00000800u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->raiseintervalmode(), output); - } - - // optional uint32 raiseEveryHands = 5; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->raiseeveryhands(), output); - } - - // optional uint32 raiseEveryMinutes = 6; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->raiseeveryminutes(), output); - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - if (cached_has_bits & 0x00001000u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 7, this->endraisemode(), output); - } - - // optional uint32 endRaiseSmallBlindValue = 8; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->endraisesmallblindvalue(), output); - } - - // required uint32 proposedGuiSpeed = 9; - if (cached_has_bits & 0x00000020u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->proposedguispeed(), output); - } - - // required uint32 delayBetweenHands = 10; - if (cached_has_bits & 0x00000040u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->delaybetweenhands(), output); - } - - // required uint32 playerActionTimeout = 11; - if (cached_has_bits & 0x00000080u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->playeractiontimeout(), output); - } - - // required uint32 firstSmallBlind = 12; - if (cached_has_bits & 0x00000100u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->firstsmallblind(), output); - } - - // required uint32 startMoney = 13; - if (cached_has_bits & 0x00000200u) { - ::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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->manualblinds_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->manualblinds(i), output); - } - - // optional bool allowSpectators = 15 [default = true]; - if (cached_has_bits & 0x00002000u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->allowspectators(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:NetGameInfo) -} - -size_t NetGameInfo::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:NetGameInfo) - size_t total_size = 0; - - if (has_gamename()) { - // required string gameName = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->gamename()); - } - - if (has_maxnumplayers()) { - // required uint32 maxNumPlayers = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->maxnumplayers()); - } - - if (has_proposedguispeed()) { - // required uint32 proposedGuiSpeed = 9; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposedguispeed()); - } - - if (has_delaybetweenhands()) { - // required uint32 delayBetweenHands = 10; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->delaybetweenhands()); - } - - if (has_playeractiontimeout()) { - // required uint32 playerActionTimeout = 11; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeractiontimeout()); - } - - if (has_firstsmallblind()) { - // required uint32 firstSmallBlind = 12; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->firstsmallblind()); - } - - if (has_startmoney()) { - // required uint32 startMoney = 13; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startmoney()); - } - - if (has_netgametype()) { - // required .NetGameInfo.NetGameType netGameType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->netgametype()); - } - - if (has_raiseintervalmode()) { - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->raiseintervalmode()); - } - - if (has_endraisemode()) { - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->endraisemode()); - } - - return total_size; -} -size_t NetGameInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:NetGameInfo) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00001fe3) ^ 0x00001fe3) == 0) { // All required fields are present. - // required string gameName = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->gamename()); - - // required uint32 maxNumPlayers = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->maxnumplayers()); - - // required uint32 proposedGuiSpeed = 9; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposedguispeed()); - - // required uint32 delayBetweenHands = 10; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->delaybetweenhands()); - - // required uint32 playerActionTimeout = 11; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeractiontimeout()); - - // required uint32 firstSmallBlind = 12; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->firstsmallblind()); - - // required uint32 startMoney = 13; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startmoney()); - - // required .NetGameInfo.NetGameType netGameType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->netgametype()); - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->raiseintervalmode()); - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->endraisemode()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->manualblinds_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->raiseeveryhands()); - } - - // optional uint32 raiseEveryMinutes = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->raiseeveryminutes()); - } - - // optional uint32 endRaiseSmallBlindValue = 8; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->endraisesmallblindvalue()); - } - - } - // optional bool allowSpectators = 15 [default = true]; - if (cached_has_bits & 0x00002000u) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NetGameInfo::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - gamename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00001fe3) != 0x00001fe3) return false; - return true; -} - -void NetGameInfo::Swap(NetGameInfo* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(maxnumplayers_, other->maxnumplayers_); - swap(raiseeveryhands_, other->raiseeveryhands_); - swap(raiseeveryminutes_, other->raiseeveryminutes_); - swap(endraisesmallblindvalue_, other->endraisesmallblindvalue_); - swap(proposedguispeed_, other->proposedguispeed_); - swap(delaybetweenhands_, other->delaybetweenhands_); - swap(playeractiontimeout_, other->playeractiontimeout_); - swap(firstsmallblind_, other->firstsmallblind_); - swap(startmoney_, other->startmoney_); - 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::HasBitSetters { - public: - static void set_has_playerid(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_resultcard1(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_resultcard2(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_moneywon(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_playermoney(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_cardsvalue(PlayerResult* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerResult::PlayerResult() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerResult) -} -PlayerResult::PlayerResult(const PlayerResult& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void PlayerResult::SharedDtor() { -} - -void PlayerResult::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerResult& PlayerResult::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayerResult_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayerResult::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayerResult) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerResult::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 playerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 resultCard1 = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_resultcard1(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 resultCard2 = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_resultcard2(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated uint32 bestHandPosition = 4 [packed = true]; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) == 34) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_besthandposition(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - do { - msg->add_besthandposition(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 32 && (ptr += 1)); - break; - } - // required uint32 moneyWon = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_moneywon(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerMoney = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_playermoney(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 cardsValue = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_cardsvalue(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerResult) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 resultCard1 = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_resultcard1(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultcard1_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 resultCard2 = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_resultcard2(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultcard2_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 bestHandPosition = 4 [packed = true]; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_besthandposition()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34u, input, this->mutable_besthandposition()))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 moneyWon = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_moneywon(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &moneywon_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - HasBitSetters::set_has_playermoney(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 cardsValue = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - HasBitSetters::set_has_cardsvalue(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &cardsvalue_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerResult) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerResult) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerResult) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 playerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 resultCard1 = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->resultcard1(), output); - } - - // required uint32 resultCard2 = 3; - if (cached_has_bits & 0x00000004u) { - ::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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->besthandposition_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->besthandposition(i), output); - } - - // required uint32 moneyWon = 5; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->moneywon(), output); - } - - // required uint32 playerMoney = 6; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); - } - - // optional uint32 cardsValue = 7; - if (cached_has_bits & 0x00000020u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->cardsvalue(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerResult) -} - -size_t PlayerResult::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerResult) - size_t total_size = 0; - - if (has_playerid()) { - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_resultcard1()) { - // required uint32 resultCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard1()); - } - - if (has_resultcard2()) { - // required uint32 resultCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard2()); - } - - if (has_moneywon()) { - // required uint32 moneyWon = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - } - - if (has_playermoney()) { - // required uint32 playerMoney = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - return total_size; -} -size_t PlayerResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerResult) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required uint32 resultCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard1()); - - // required uint32 resultCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard2()); - - // required uint32 moneyWon = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - - // required uint32 playerMoney = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->besthandposition_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cardsvalue()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayerResult::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - return true; -} - -void PlayerResult::Swap(PlayerResult* other) { - if (other == this) return; - InternalSwap(other); -} -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_); - swap(playerid_, other->playerid_); - swap(resultcard1_, other->resultcard1_); - swap(resultcard2_, other->resultcard2_); - swap(moneywon_, other->moneywon_); - swap(playermoney_, other->playermoney_); - swap(cardsvalue_, other->cardsvalue_); -} - -::std::string PlayerResult::GetTypeName() const { - return "PlayerResult"; -} - - -// =================================================================== - -void AnnounceMessage_Version::InitAsDefaultInstance() { -} -class AnnounceMessage_Version::HasBitSetters { - public: - static void set_has_majorversion(AnnounceMessage_Version* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_minorversion(AnnounceMessage_Version* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AnnounceMessage_Version::kMajorVersionFieldNumber; -const int AnnounceMessage_Version::kMinorVersionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AnnounceMessage_Version::AnnounceMessage_Version() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AnnounceMessage.Version) -} -AnnounceMessage_Version::AnnounceMessage_Version(const AnnounceMessage_Version& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AnnounceMessage_Version::SharedDtor() { -} - -void AnnounceMessage_Version::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AnnounceMessage_Version& AnnounceMessage_Version::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AnnounceMessage_Version::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 majorVersion = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_majorversion(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 minorVersion = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_minorversion(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AnnounceMessage_Version::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AnnounceMessage.Version) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 majorVersion = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_majorversion(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &majorversion_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 minorVersion = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_minorversion(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minorversion_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AnnounceMessage.Version) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AnnounceMessage.Version) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AnnounceMessage_Version::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AnnounceMessage.Version) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 majorVersion = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->majorversion(), output); - } - - // required uint32 minorVersion = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->minorversion(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AnnounceMessage.Version) -} - -size_t AnnounceMessage_Version::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AnnounceMessage.Version) - size_t total_size = 0; - - if (has_majorversion()) { - // required uint32 majorVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->majorversion()); - } - - if (has_minorversion()) { - // required uint32 minorVersion = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minorversion()); - } - - return total_size; -} -size_t AnnounceMessage_Version::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AnnounceMessage.Version) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 majorVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->majorversion()); - - // required uint32 minorVersion = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minorversion()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:AnnounceMessage.Version) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AnnounceMessage_Version::Swap(AnnounceMessage_Version* other) { - if (other == this) return; - InternalSwap(other); -} -void AnnounceMessage_Version::InternalSwap(AnnounceMessage_Version* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(majorversion_, other->majorversion_); - swap(minorversion_, other->minorversion_); -} - -::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::HasBitSetters { - public: - static const ::AnnounceMessage_Version& protocolversion(const AnnounceMessage* msg); - static void set_has_protocolversion(AnnounceMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static const ::AnnounceMessage_Version& latestgameversion(const AnnounceMessage* msg); - static void set_has_latestgameversion(AnnounceMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_latestbetarevision(AnnounceMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_servertype(AnnounceMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_numplayersonserver(AnnounceMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -const ::AnnounceMessage_Version& -AnnounceMessage::HasBitSetters::protocolversion(const AnnounceMessage* msg) { - return *msg->protocolversion_; -} -const ::AnnounceMessage_Version& -AnnounceMessage::HasBitSetters::latestgameversion(const AnnounceMessage* msg) { - return *msg->latestgameversion_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AnnounceMessage::kProtocolVersionFieldNumber; -const int AnnounceMessage::kLatestGameVersionFieldNumber; -const int AnnounceMessage::kLatestBetaRevisionFieldNumber; -const int AnnounceMessage::kServerTypeFieldNumber; -const int AnnounceMessage::kNumPlayersOnServerFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AnnounceMessage::AnnounceMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AnnounceMessage) -} -AnnounceMessage::AnnounceMessage(const AnnounceMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_protocolversion()) { - protocolversion_ = new ::AnnounceMessage_Version(*from.protocolversion_); - } else { - protocolversion_ = nullptr; - } - if (from.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() { - ::google::protobuf::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(); -} - -void AnnounceMessage::SharedDtor() { - if (this != internal_default_instance()) delete protocolversion_; - if (this != internal_default_instance()) delete latestgameversion_; -} - -void AnnounceMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AnnounceMessage& AnnounceMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AnnounceMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AnnounceMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AnnounceMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AnnounceMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .AnnounceMessage.Version protocolVersion = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AnnounceMessage_Version::_InternalParse; - object = msg->mutable_protocolversion(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // required .AnnounceMessage.Version latestGameVersion = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AnnounceMessage_Version::_InternalParse; - object = msg->mutable_latestgameversion(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // required uint32 latestBetaRevision = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_latestbetarevision(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .AnnounceMessage.ServerType serverType = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::AnnounceMessage_ServerType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(4, val, msg->mutable_unknown_fields()); - break; - } - msg->set_servertype(static_cast<::AnnounceMessage_ServerType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numPlayersOnServer = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_numplayersonserver(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AnnounceMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AnnounceMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version protocolVersion = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_protocolversion())); - } else { - goto handle_unusual; - } - break; - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_latestgameversion())); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 latestBetaRevision = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_latestbetarevision(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &latestbetarevision_))); - } else { - goto handle_unusual; - } - break; - } - - // required .AnnounceMessage.ServerType serverType = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(32u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numPlayersOnServer = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_numplayersonserver(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numplayersonserver_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AnnounceMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AnnounceMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AnnounceMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AnnounceMessage) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, HasBitSetters::protocolversion(this), output); - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, HasBitSetters::latestgameversion(this), output); - } - - // required uint32 latestBetaRevision = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->latestbetarevision(), output); - } - - // required .AnnounceMessage.ServerType serverType = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->servertype(), output); - } - - // required uint32 numPlayersOnServer = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numplayersonserver(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AnnounceMessage) -} - -size_t AnnounceMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AnnounceMessage) - size_t total_size = 0; - - if (has_protocolversion()) { - // required .AnnounceMessage.Version protocolVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *protocolversion_); - } - - if (has_latestgameversion()) { - // required .AnnounceMessage.Version latestGameVersion = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *latestgameversion_); - } - - if (has_latestbetarevision()) { - // required uint32 latestBetaRevision = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->latestbetarevision()); - } - - if (has_servertype()) { - // required .AnnounceMessage.ServerType serverType = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->servertype()); - } - - if (has_numplayersonserver()) { - // required uint32 numPlayersOnServer = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numplayersonserver()); - } - - return total_size; -} -size_t AnnounceMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AnnounceMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required .AnnounceMessage.Version protocolVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *protocolversion_); - - // required .AnnounceMessage.Version latestGameVersion = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *latestgameversion_); - - // required uint32 latestBetaRevision = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->latestbetarevision()); - - // required .AnnounceMessage.ServerType serverType = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->servertype()); - - // required uint32 numPlayersOnServer = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numplayersonserver()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AnnounceMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - mutable_protocolversion()->::AnnounceMessage_Version::MergeFrom(from.protocolversion()); - } - if (cached_has_bits & 0x00000002u) { - mutable_latestgameversion()->::AnnounceMessage_Version::MergeFrom(from.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 ((_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) return; - InternalSwap(other); -} -void AnnounceMessage::InternalSwap(AnnounceMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(protocolversion_, other->protocolversion_); - swap(latestgameversion_, other->latestgameversion_); - swap(latestbetarevision_, other->latestbetarevision_); - swap(servertype_, other->servertype_); - swap(numplayersonserver_, other->numplayersonserver_); -} - -::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::HasBitSetters { - public: - static const ::AnnounceMessage_Version& requestedversion(const InitMessage* msg); - static void set_has_requestedversion(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static void set_has_buildid(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000040u; - } - static void set_has_mylastsessionid(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_authserverpassword(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_login(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000080u; - } - static void set_has_nickname(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_clientuserdata(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_avatarhash(InitMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -const ::AnnounceMessage_Version& -InitMessage::HasBitSetters::requestedversion(const InitMessage* msg) { - return *msg->requestedversion_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InitMessage::InitMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:InitMessage) -} -InitMessage::InitMessage(const InitMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - mylastsessionid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_mylastsessionid()) { - mylastsessionid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mylastsessionid_); - } - authserverpassword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_authserverpassword()) { - authserverpassword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authserverpassword_); - } - nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_nickname()) { - nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_); - } - clientuserdata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_clientuserdata()) { - clientuserdata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clientuserdata_); - } - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_avatarhash()) { - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarhash_); - } - if (from.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() { - ::google::protobuf::internal::InitSCC( - &scc_info_InitMessage_pokerth_2eproto.base); - mylastsessionid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authserverpassword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clientuserdata_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&requestedversion_, 0, static_cast( - reinterpret_cast(&login_) - - reinterpret_cast(&requestedversion_)) + sizeof(login_)); -} - -InitMessage::~InitMessage() { - // @@protoc_insertion_point(destructor:InitMessage) - SharedDtor(); -} - -void InitMessage::SharedDtor() { - mylastsessionid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authserverpassword_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - nickname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clientuserdata_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - avatarhash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete requestedversion_; -} - -void InitMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InitMessage& InitMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InitMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void InitMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:InitMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000002u) { - authserverpassword_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000004u) { - nickname_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000008u) { - clientuserdata_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000010u) { - avatarhash_.ClearNonDefaultToEmptyNoArena(); - } - 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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InitMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .AnnounceMessage.Version requestedVersion = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AnnounceMessage_Version::_InternalParse; - object = msg->mutable_requestedversion(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // required uint32 buildId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_buildid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional bytes myLastSessionId = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_mylastsessionid(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional string authServerPassword = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_authserverpassword(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required .InitMessage.LoginType login = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::InitMessage_LoginType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(5, val, msg->mutable_unknown_fields()); - break; - } - msg->set_login(static_cast<::InitMessage_LoginType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional string nickName = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_nickname(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional bytes clientUserData = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_clientuserdata(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional bytes avatarHash = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_avatarhash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InitMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:InitMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version requestedVersion = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_requestedversion())); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 buildId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_buildid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &buildid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional bytes myLastSessionId = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_mylastsessionid())); - } else { - goto handle_unusual; - } - break; - } - - // optional string authServerPassword = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_authserverpassword())); - } else { - goto handle_unusual; - } - break; - } - - // required .InitMessage.LoginType login = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(40u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // optional string nickName = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_nickname())); - } else { - goto handle_unusual; - } - break; - } - - // optional bytes clientUserData = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientuserdata())); - } else { - goto handle_unusual; - } - break; - } - - // optional bytes avatarHash = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:InitMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:InitMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InitMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InitMessage) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, HasBitSetters::requestedversion(this), output); - } - - // required uint32 buildId = 2; - if (cached_has_bits & 0x00000040u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->buildid(), output); - } - - // optional bytes myLastSessionId = 3; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->mylastsessionid(), output); - } - - // optional string authServerPassword = 4; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->authserverpassword(), output); - } - - // required .InitMessage.LoginType login = 5; - if (cached_has_bits & 0x00000080u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->login(), output); - } - - // optional string nickName = 6; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->nickname(), output); - } - - // optional bytes clientUserData = 7; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 7, this->clientuserdata(), output); - } - - // optional bytes avatarHash = 8; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 8, this->avatarhash(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:InitMessage) -} - -size_t InitMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InitMessage) - size_t total_size = 0; - - if (has_requestedversion()) { - // required .AnnounceMessage.Version requestedVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *requestedversion_); - } - - if (has_buildid()) { - // required uint32 buildId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->buildid()); - } - - if (has_login()) { - // required .InitMessage.LoginType login = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->login()); - } - - return total_size; -} -size_t InitMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:InitMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x000000e0) ^ 0x000000e0) == 0) { // All required fields are present. - // required .AnnounceMessage.Version requestedVersion = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *requestedversion_); - - // required uint32 buildId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->buildid()); - - // required .InitMessage.LoginType login = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->login()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->mylastsessionid()); - } - - // optional string authServerPassword = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->authserverpassword()); - } - - // optional string nickName = 6; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->nickname()); - } - - // optional bytes clientUserData = 7; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->clientuserdata()); - } - - // optional bytes avatarHash = 8; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InitMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - mylastsessionid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mylastsessionid_); - } - if (cached_has_bits & 0x00000002u) { - _has_bits_[0] |= 0x00000002u; - authserverpassword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authserverpassword_); - } - if (cached_has_bits & 0x00000004u) { - _has_bits_[0] |= 0x00000004u; - nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_); - } - if (cached_has_bits & 0x00000008u) { - _has_bits_[0] |= 0x00000008u; - clientuserdata_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clientuserdata_); - } - if (cached_has_bits & 0x00000010u) { - _has_bits_[0] |= 0x00000010u; - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarhash_); - } - if (cached_has_bits & 0x00000020u) { - mutable_requestedversion()->::AnnounceMessage_Version::MergeFrom(from.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 ((_has_bits_[0] & 0x000000e0) != 0x000000e0) return false; - if (has_requestedversion()) { - if (!this->requestedversion_->IsInitialized()) return false; - } - return true; -} - -void InitMessage::Swap(InitMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - authserverpassword_.Swap(&other->authserverpassword_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - nickname_.Swap(&other->nickname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clientuserdata_.Swap(&other->clientuserdata_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - avatarhash_.Swap(&other->avatarhash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestedversion_, other->requestedversion_); - swap(buildid_, other->buildid_); - swap(login_, other->login_); -} - -::std::string InitMessage::GetTypeName() const { - return "InitMessage"; -} - - -// =================================================================== - -void AuthServerChallengeMessage::InitAsDefaultInstance() { -} -class AuthServerChallengeMessage::HasBitSetters { - public: - static void set_has_serverchallenge(AuthServerChallengeMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AuthServerChallengeMessage::kServerChallengeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AuthServerChallengeMessage::AuthServerChallengeMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AuthServerChallengeMessage) -} -AuthServerChallengeMessage::AuthServerChallengeMessage(const AuthServerChallengeMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - serverchallenge_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_serverchallenge()) { - serverchallenge_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serverchallenge_); - } - // @@protoc_insertion_point(copy_constructor:AuthServerChallengeMessage) -} - -void AuthServerChallengeMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AuthServerChallengeMessage_pokerth_2eproto.base); - serverchallenge_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AuthServerChallengeMessage::~AuthServerChallengeMessage() { - // @@protoc_insertion_point(destructor:AuthServerChallengeMessage) - SharedDtor(); -} - -void AuthServerChallengeMessage::SharedDtor() { - serverchallenge_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AuthServerChallengeMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AuthServerChallengeMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AuthServerChallengeMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AuthServerChallengeMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AuthServerChallengeMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required bytes serverChallenge = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_serverchallenge(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AuthServerChallengeMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AuthServerChallengeMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverChallenge = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serverchallenge())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AuthServerChallengeMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AuthServerChallengeMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AuthServerChallengeMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthServerChallengeMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required bytes serverChallenge = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->serverchallenge(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AuthServerChallengeMessage) -} - -size_t AuthServerChallengeMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AuthServerChallengeMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required bytes serverChallenge = 1; - if (has_serverchallenge()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->serverchallenge()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AuthServerChallengeMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_serverchallenge()) { - _has_bits_[0] |= 0x00000001u; - serverchallenge_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AuthServerChallengeMessage::Swap(AuthServerChallengeMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::std::string AuthServerChallengeMessage::GetTypeName() const { - return "AuthServerChallengeMessage"; -} - - -// =================================================================== - -void AuthClientResponseMessage::InitAsDefaultInstance() { -} -class AuthClientResponseMessage::HasBitSetters { - public: - static void set_has_clientresponse(AuthClientResponseMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AuthClientResponseMessage::kClientResponseFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AuthClientResponseMessage::AuthClientResponseMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AuthClientResponseMessage) -} -AuthClientResponseMessage::AuthClientResponseMessage(const AuthClientResponseMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clientresponse_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_clientresponse()) { - clientresponse_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.clientresponse_); - } - // @@protoc_insertion_point(copy_constructor:AuthClientResponseMessage) -} - -void AuthClientResponseMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AuthClientResponseMessage_pokerth_2eproto.base); - clientresponse_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AuthClientResponseMessage::~AuthClientResponseMessage() { - // @@protoc_insertion_point(destructor:AuthClientResponseMessage) - SharedDtor(); -} - -void AuthClientResponseMessage::SharedDtor() { - clientresponse_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AuthClientResponseMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AuthClientResponseMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AuthClientResponseMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AuthClientResponseMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AuthClientResponseMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required bytes clientResponse = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_clientresponse(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AuthClientResponseMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AuthClientResponseMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes clientResponse = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientresponse())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AuthClientResponseMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AuthClientResponseMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AuthClientResponseMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthClientResponseMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required bytes clientResponse = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->clientresponse(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AuthClientResponseMessage) -} - -size_t AuthClientResponseMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AuthClientResponseMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required bytes clientResponse = 1; - if (has_clientresponse()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->clientresponse()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AuthClientResponseMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_clientresponse()) { - _has_bits_[0] |= 0x00000001u; - clientresponse_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AuthClientResponseMessage::Swap(AuthClientResponseMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::std::string AuthClientResponseMessage::GetTypeName() const { - return "AuthClientResponseMessage"; -} - - -// =================================================================== - -void AuthServerVerificationMessage::InitAsDefaultInstance() { -} -class AuthServerVerificationMessage::HasBitSetters { - public: - static void set_has_serververification(AuthServerVerificationMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AuthServerVerificationMessage::kServerVerificationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AuthServerVerificationMessage::AuthServerVerificationMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AuthServerVerificationMessage) -} -AuthServerVerificationMessage::AuthServerVerificationMessage(const AuthServerVerificationMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - serververification_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_serververification()) { - serververification_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serververification_); - } - // @@protoc_insertion_point(copy_constructor:AuthServerVerificationMessage) -} - -void AuthServerVerificationMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AuthServerVerificationMessage_pokerth_2eproto.base); - serververification_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AuthServerVerificationMessage::~AuthServerVerificationMessage() { - // @@protoc_insertion_point(destructor:AuthServerVerificationMessage) - SharedDtor(); -} - -void AuthServerVerificationMessage::SharedDtor() { - serververification_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AuthServerVerificationMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AuthServerVerificationMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AuthServerVerificationMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AuthServerVerificationMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AuthServerVerificationMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required bytes serverVerification = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_serververification(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AuthServerVerificationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AuthServerVerificationMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverVerification = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serververification())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AuthServerVerificationMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AuthServerVerificationMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AuthServerVerificationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthServerVerificationMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required bytes serverVerification = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->serververification(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AuthServerVerificationMessage) -} - -size_t AuthServerVerificationMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AuthServerVerificationMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required bytes serverVerification = 1; - if (has_serververification()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->serververification()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AuthServerVerificationMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_serververification()) { - _has_bits_[0] |= 0x00000001u; - serververification_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AuthServerVerificationMessage::Swap(AuthServerVerificationMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::std::string AuthServerVerificationMessage::GetTypeName() const { - return "AuthServerVerificationMessage"; -} - - -// =================================================================== - -void InitAckMessage::InitAsDefaultInstance() { -} -class InitAckMessage::HasBitSetters { - public: - static void set_has_yoursessionid(InitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_yourplayerid(InitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_youravatarhash(InitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_rejoingameid(InitAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InitAckMessage::kYourSessionIdFieldNumber; -const int InitAckMessage::kYourPlayerIdFieldNumber; -const int InitAckMessage::kYourAvatarHashFieldNumber; -const int InitAckMessage::kRejoinGameIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InitAckMessage::InitAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:InitAckMessage) -} -InitAckMessage::InitAckMessage(const InitAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - yoursessionid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_yoursessionid()) { - yoursessionid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.yoursessionid_); - } - youravatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_youravatarhash()) { - youravatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.youravatarhash_); - } - ::memcpy(&yourplayerid_, &from.yourplayerid_, - static_cast(reinterpret_cast(&rejoingameid_) - - reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); - // @@protoc_insertion_point(copy_constructor:InitAckMessage) -} - -void InitAckMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_InitAckMessage_pokerth_2eproto.base); - yoursessionid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - youravatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&yourplayerid_, 0, static_cast( - reinterpret_cast(&rejoingameid_) - - reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); -} - -InitAckMessage::~InitAckMessage() { - // @@protoc_insertion_point(destructor:InitAckMessage) - SharedDtor(); -} - -void InitAckMessage::SharedDtor() { - yoursessionid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - youravatarhash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void InitAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InitAckMessage& InitAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InitAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void InitAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:InitAckMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000002u) { - youravatarhash_.ClearNonDefaultToEmptyNoArena(); - } - } - if (cached_has_bits & 0x0000000cu) { - ::memset(&yourplayerid_, 0, static_cast( - reinterpret_cast(&rejoingameid_) - - reinterpret_cast(&yourplayerid_)) + sizeof(rejoingameid_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InitAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required bytes yourSessionId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_yoursessionid(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required uint32 yourPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_yourplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional bytes yourAvatarHash = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_youravatarhash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional uint32 rejoinGameId = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_rejoingameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InitAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:InitAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes yourSessionId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_yoursessionid())); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 yourPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_yourplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &yourplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional bytes yourAvatarHash = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_youravatarhash())); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 rejoinGameId = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_rejoingameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rejoingameid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:InitAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:InitAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InitAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InitAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required bytes yourSessionId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->yoursessionid(), output); - } - - // required uint32 yourPlayerId = 2; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->yourplayerid(), output); - } - - // optional bytes yourAvatarHash = 3; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->youravatarhash(), output); - } - - // optional uint32 rejoinGameId = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->rejoingameid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:InitAckMessage) -} - -size_t InitAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InitAckMessage) - size_t total_size = 0; - - if (has_yoursessionid()) { - // required bytes yourSessionId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->yoursessionid()); - } - - if (has_yourplayerid()) { - // required uint32 yourPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourplayerid()); - } - - return total_size; -} -size_t InitAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:InitAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000005) ^ 0x00000005) == 0) { // All required fields are present. - // required bytes yourSessionId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->yoursessionid()); - - // required uint32 yourPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->youravatarhash()); - } - - // optional uint32 rejoinGameId = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rejoingameid()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InitAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - yoursessionid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.yoursessionid_); - } - if (cached_has_bits & 0x00000002u) { - _has_bits_[0] |= 0x00000002u; - youravatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000005) != 0x00000005) return false; - return true; -} - -void InitAckMessage::Swap(InitAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - youravatarhash_.Swap(&other->youravatarhash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(yourplayerid_, other->yourplayerid_); - swap(rejoingameid_, other->rejoingameid_); -} - -::std::string InitAckMessage::GetTypeName() const { - return "InitAckMessage"; -} - - -// =================================================================== - -void AvatarRequestMessage::InitAsDefaultInstance() { -} -class AvatarRequestMessage::HasBitSetters { - public: - static void set_has_requestid(AvatarRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_avatarhash(AvatarRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AvatarRequestMessage::kRequestIdFieldNumber; -const int AvatarRequestMessage::kAvatarHashFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AvatarRequestMessage::AvatarRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AvatarRequestMessage) -} -AvatarRequestMessage::AvatarRequestMessage(const AvatarRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_avatarhash()) { - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarhash_); - } - requestid_ = from.requestid_; - // @@protoc_insertion_point(copy_constructor:AvatarRequestMessage) -} - -void AvatarRequestMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AvatarRequestMessage_pokerth_2eproto.base); - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - requestid_ = 0u; -} - -AvatarRequestMessage::~AvatarRequestMessage() { - // @@protoc_insertion_point(destructor:AvatarRequestMessage) - SharedDtor(); -} - -void AvatarRequestMessage::SharedDtor() { - avatarhash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AvatarRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AvatarRequestMessage& AvatarRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AvatarRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AvatarRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AvatarRequestMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - requestid_ = 0u; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AvatarRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bytes avatarHash = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_avatarhash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AvatarRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AvatarRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AvatarRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AvatarRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AvatarRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 requestId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required bytes avatarHash = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->avatarhash(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AvatarRequestMessage) -} - -size_t AvatarRequestMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarRequestMessage) - size_t total_size = 0; - - if (has_avatarhash()) { - // required bytes avatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - if (has_requestid()) { - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - return total_size; -} -size_t AvatarRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AvatarRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes avatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AvatarRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AvatarRequestMessage::Swap(AvatarRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestid_, other->requestid_); -} - -::std::string AvatarRequestMessage::GetTypeName() const { - return "AvatarRequestMessage"; -} - - -// =================================================================== - -void AvatarHeaderMessage::InitAsDefaultInstance() { -} -class AvatarHeaderMessage::HasBitSetters { - public: - static void set_has_requestid(AvatarHeaderMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_avatartype(AvatarHeaderMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_avatarsize(AvatarHeaderMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AvatarHeaderMessage::kRequestIdFieldNumber; -const int AvatarHeaderMessage::kAvatarTypeFieldNumber; -const int AvatarHeaderMessage::kAvatarSizeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AvatarHeaderMessage::AvatarHeaderMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AvatarHeaderMessage) -} -AvatarHeaderMessage::AvatarHeaderMessage(const AvatarHeaderMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AvatarHeaderMessage::SharedDtor() { -} - -void AvatarHeaderMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AvatarHeaderMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AvatarHeaderMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AvatarHeaderMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AvatarHeaderMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetAvatarType avatarType = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetAvatarType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_avatartype(static_cast<::NetAvatarType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 avatarSize = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_avatarsize(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AvatarHeaderMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AvatarHeaderMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetAvatarType avatarType = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 avatarSize = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_avatarsize(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &avatarsize_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AvatarHeaderMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AvatarHeaderMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AvatarHeaderMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarHeaderMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 requestId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required .NetAvatarType avatarType = 2; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->avatartype(), output); - } - - // required uint32 avatarSize = 3; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->avatarsize(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AvatarHeaderMessage) -} - -size_t AvatarHeaderMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarHeaderMessage) - size_t total_size = 0; - - if (has_requestid()) { - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - if (has_avatarsize()) { - // required uint32 avatarSize = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->avatarsize()); - } - - if (has_avatartype()) { - // required .NetAvatarType avatarType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); - } - - return total_size; -} -size_t AvatarHeaderMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AvatarHeaderMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - - // required uint32 avatarSize = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->avatarsize()); - - // required .NetAvatarType avatarType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AvatarHeaderMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void AvatarHeaderMessage::Swap(AvatarHeaderMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AvatarHeaderMessage::InternalSwap(AvatarHeaderMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(requestid_, other->requestid_); - swap(avatarsize_, other->avatarsize_); - swap(avatartype_, other->avatartype_); -} - -::std::string AvatarHeaderMessage::GetTypeName() const { - return "AvatarHeaderMessage"; -} - - -// =================================================================== - -void AvatarDataMessage::InitAsDefaultInstance() { -} -class AvatarDataMessage::HasBitSetters { - public: - static void set_has_requestid(AvatarDataMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_avatarblock(AvatarDataMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AvatarDataMessage::kRequestIdFieldNumber; -const int AvatarDataMessage::kAvatarBlockFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AvatarDataMessage::AvatarDataMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AvatarDataMessage) -} -AvatarDataMessage::AvatarDataMessage(const AvatarDataMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - avatarblock_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_avatarblock()) { - avatarblock_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarblock_); - } - requestid_ = from.requestid_; - // @@protoc_insertion_point(copy_constructor:AvatarDataMessage) -} - -void AvatarDataMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AvatarDataMessage_pokerth_2eproto.base); - avatarblock_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - requestid_ = 0u; -} - -AvatarDataMessage::~AvatarDataMessage() { - // @@protoc_insertion_point(destructor:AvatarDataMessage) - SharedDtor(); -} - -void AvatarDataMessage::SharedDtor() { - avatarblock_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AvatarDataMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AvatarDataMessage& AvatarDataMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AvatarDataMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AvatarDataMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AvatarDataMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - requestid_ = 0u; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AvatarDataMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bytes avatarBlock = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_avatarblock(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AvatarDataMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AvatarDataMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bytes avatarBlock = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarblock())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AvatarDataMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AvatarDataMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AvatarDataMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarDataMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 requestId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - // required bytes avatarBlock = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->avatarblock(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AvatarDataMessage) -} - -size_t AvatarDataMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AvatarDataMessage) - size_t total_size = 0; - - if (has_avatarblock()) { - // required bytes avatarBlock = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarblock()); - } - - if (has_requestid()) { - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - return total_size; -} -size_t AvatarDataMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AvatarDataMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes avatarBlock = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarblock()); - - // required uint32 requestId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AvatarDataMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - avatarblock_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AvatarDataMessage::Swap(AvatarDataMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(requestid_, other->requestid_); -} - -::std::string AvatarDataMessage::GetTypeName() const { - return "AvatarDataMessage"; -} - - -// =================================================================== - -void AvatarEndMessage::InitAsDefaultInstance() { -} -class AvatarEndMessage::HasBitSetters { - public: - static void set_has_requestid(AvatarEndMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AvatarEndMessage::kRequestIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AvatarEndMessage::AvatarEndMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AvatarEndMessage) -} -AvatarEndMessage::AvatarEndMessage(const AvatarEndMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AvatarEndMessage::SharedDtor() { -} - -void AvatarEndMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AvatarEndMessage& AvatarEndMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AvatarEndMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AvatarEndMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AvatarEndMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AvatarEndMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AvatarEndMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AvatarEndMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AvatarEndMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AvatarEndMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AvatarEndMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarEndMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 requestId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AvatarEndMessage) -} - -size_t AvatarEndMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AvatarEndMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AvatarEndMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_requestid()) { - set_requestid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AvatarEndMessage::Swap(AvatarEndMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_requestid(UnknownAvatarMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UnknownAvatarMessage::kRequestIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UnknownAvatarMessage::UnknownAvatarMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:UnknownAvatarMessage) -} -UnknownAvatarMessage::UnknownAvatarMessage(const UnknownAvatarMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void UnknownAvatarMessage::SharedDtor() { -} - -void UnknownAvatarMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UnknownAvatarMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void UnknownAvatarMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:UnknownAvatarMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UnknownAvatarMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 requestId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_requestid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UnknownAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:UnknownAvatarMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_requestid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:UnknownAvatarMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:UnknownAvatarMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UnknownAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:UnknownAvatarMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 requestId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:UnknownAvatarMessage) -} - -size_t UnknownAvatarMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:UnknownAvatarMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UnknownAvatarMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_requestid()) { - set_requestid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void UnknownAvatarMessage::Swap(UnknownAvatarMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_playerid(PlayerListMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerlistnotification(PlayerListMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayerListMessage::kPlayerIdFieldNumber; -const int PlayerListMessage::kPlayerListNotificationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerListMessage::PlayerListMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerListMessage) -} -PlayerListMessage::PlayerListMessage(const PlayerListMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void PlayerListMessage::SharedDtor() { -} - -void PlayerListMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerListMessage& PlayerListMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayerListMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayerListMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayerListMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerListMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 playerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::PlayerListMessage_PlayerListNotification_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_playerlistnotification(static_cast<::PlayerListMessage_PlayerListNotification>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerListMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerListMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerListMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerListMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerListMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerListMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 playerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->playerlistnotification(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerListMessage) -} - -size_t PlayerListMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerListMessage) - size_t total_size = 0; - - if (has_playerid()) { - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_playerlistnotification()) { - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerlistnotification()); - } - - return total_size; -} -size_t PlayerListMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerListMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerlistnotification()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayerListMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void PlayerListMessage::Swap(PlayerListMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayerListMessage::InternalSwap(PlayerListMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(playerid_, other->playerid_); - swap(playerlistnotification_, other->playerlistnotification_); -} - -::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::HasBitSetters { - public: - static void set_has_gameid(GameListNewMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gamemode(GameListNewMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_isprivate(GameListNewMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_adminplayerid(GameListNewMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static const ::NetGameInfo& gameinfo(const GameListNewMessage* msg); - static void set_has_gameinfo(GameListNewMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -const ::NetGameInfo& -GameListNewMessage::HasBitSetters::gameinfo(const GameListNewMessage* msg) { - return *msg->gameinfo_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListNewMessage::GameListNewMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListNewMessage) -} -GameListNewMessage::GameListNewMessage(const GameListNewMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_), - playerids_(from.playerids_), - spectatorids_(from.spectatorids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.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() { - ::google::protobuf::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(); -} - -void GameListNewMessage::SharedDtor() { - if (this != internal_default_instance()) delete gameinfo_; -} - -void GameListNewMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListNewMessage& GameListNewMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListNewMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListNewMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListNewMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListNewMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameMode gameMode = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameMode_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamemode(static_cast<::NetGameMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bool isPrivate = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_isprivate(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated uint32 playerIds = 4 [packed = true]; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) == 34) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_playerids(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - do { - msg->add_playerids(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 32 && (ptr += 1)); - break; - } - // required uint32 adminPlayerId = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_adminplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameInfo gameInfo = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::NetGameInfo::_InternalParse; - object = msg->mutable_gameinfo(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // repeated uint32 spectatorIds = 7 [packed = true]; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) == 58) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_spectatorids(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - do { - msg->add_spectatorids(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 56 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListNewMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListNewMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required bool isPrivate = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_isprivate(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isprivate_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 playerIds = 4 [packed = true]; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerids()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34u, input, this->mutable_playerids()))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 adminPlayerId = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_adminplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &adminplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameInfo gameInfo = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_spectatorids()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 58u, input, this->mutable_spectatorids()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListNewMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListNewMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListNewMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListNewMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameMode gameMode = 2; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamemode(), output); - } - - // required bool isPrivate = 3; - if (cached_has_bits & 0x00000004u) { - ::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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->playerids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerids(i), output); - } - - // required uint32 adminPlayerId = 5; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->adminplayerid(), output); - } - - // required .NetGameInfo gameInfo = 6; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, HasBitSetters::gameinfo(this), 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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->spectatorids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->spectatorids(i), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListNewMessage) -} - -size_t GameListNewMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListNewMessage) - size_t total_size = 0; - - if (has_gameinfo()) { - // required .NetGameInfo gameInfo = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameinfo_); - } - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_isprivate()) { - // required bool isPrivate = 3; - total_size += 1 + 1; - } - - if (has_adminplayerid()) { - // required uint32 adminPlayerId = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->adminplayerid()); - } - - if (has_gamemode()) { - // required .NetGameMode gameMode = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - } - - return total_size; -} -size_t GameListNewMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListNewMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required .NetGameInfo gameInfo = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameinfo_); - - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required bool isPrivate = 3; - total_size += 1 + 1; - - // required uint32 adminPlayerId = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->adminplayerid()); - - // required .NetGameMode gameMode = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerids_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->spectatorids_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - _spectatorids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListNewMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.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 ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - if (has_gameinfo()) { - if (!this->gameinfo_->IsInitialized()) return false; - } - return true; -} - -void GameListNewMessage::Swap(GameListNewMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_); - swap(gameinfo_, other->gameinfo_); - swap(gameid_, other->gameid_); - swap(isprivate_, other->isprivate_); - swap(adminplayerid_, other->adminplayerid_); - swap(gamemode_, other->gamemode_); -} - -::std::string GameListNewMessage::GetTypeName() const { - return "GameListNewMessage"; -} - - -// =================================================================== - -void GameListUpdateMessage::InitAsDefaultInstance() { -} -class GameListUpdateMessage::HasBitSetters { - public: - static void set_has_gameid(GameListUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_gamemode(GameListUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListUpdateMessage::kGameIdFieldNumber; -const int GameListUpdateMessage::kGameModeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListUpdateMessage::GameListUpdateMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListUpdateMessage) -} -GameListUpdateMessage::GameListUpdateMessage(const GameListUpdateMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListUpdateMessage::SharedDtor() { -} - -void GameListUpdateMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListUpdateMessage& GameListUpdateMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListUpdateMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListUpdateMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListUpdateMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListUpdateMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameMode gameMode = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameMode_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamemode(static_cast<::NetGameMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListUpdateMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListUpdateMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListUpdateMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListUpdateMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameMode gameMode = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamemode(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListUpdateMessage) -} - -size_t GameListUpdateMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListUpdateMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_gamemode()) { - // required .NetGameMode gameMode = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - } - - return total_size; -} -size_t GameListUpdateMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListUpdateMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .NetGameMode gameMode = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListUpdateMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListUpdateMessage::Swap(GameListUpdateMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(GameListPlayerJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameListPlayerJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListPlayerJoinedMessage::kGameIdFieldNumber; -const int GameListPlayerJoinedMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListPlayerJoinedMessage::GameListPlayerJoinedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListPlayerJoinedMessage) -} -GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListPlayerJoinedMessage::SharedDtor() { -} - -void GameListPlayerJoinedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListPlayerJoinedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListPlayerJoinedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListPlayerJoinedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListPlayerJoinedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListPlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListPlayerJoinedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListPlayerJoinedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListPlayerJoinedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListPlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListPlayerJoinedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListPlayerJoinedMessage) -} - -size_t GameListPlayerJoinedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListPlayerJoinedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t GameListPlayerJoinedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListPlayerJoinedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListPlayerJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListPlayerJoinedMessage::Swap(GameListPlayerJoinedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameListPlayerJoinedMessage::InternalSwap(GameListPlayerJoinedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string GameListPlayerJoinedMessage::GetTypeName() const { - return "GameListPlayerJoinedMessage"; -} - - -// =================================================================== - -void GameListPlayerLeftMessage::InitAsDefaultInstance() { -} -class GameListPlayerLeftMessage::HasBitSetters { - public: - static void set_has_gameid(GameListPlayerLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameListPlayerLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListPlayerLeftMessage::kGameIdFieldNumber; -const int GameListPlayerLeftMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListPlayerLeftMessage::GameListPlayerLeftMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListPlayerLeftMessage) -} -GameListPlayerLeftMessage::GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListPlayerLeftMessage::SharedDtor() { -} - -void GameListPlayerLeftMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListPlayerLeftMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListPlayerLeftMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListPlayerLeftMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListPlayerLeftMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListPlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListPlayerLeftMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListPlayerLeftMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListPlayerLeftMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListPlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListPlayerLeftMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListPlayerLeftMessage) -} - -size_t GameListPlayerLeftMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListPlayerLeftMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t GameListPlayerLeftMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListPlayerLeftMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListPlayerLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListPlayerLeftMessage::Swap(GameListPlayerLeftMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameListPlayerLeftMessage::InternalSwap(GameListPlayerLeftMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string GameListPlayerLeftMessage::GetTypeName() const { - return "GameListPlayerLeftMessage"; -} - - -// =================================================================== - -void GameListSpectatorJoinedMessage::InitAsDefaultInstance() { -} -class GameListSpectatorJoinedMessage::HasBitSetters { - public: - static void set_has_gameid(GameListSpectatorJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameListSpectatorJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListSpectatorJoinedMessage::kGameIdFieldNumber; -const int GameListSpectatorJoinedMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListSpectatorJoinedMessage) -} -GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListSpectatorJoinedMessage::SharedDtor() { -} - -void GameListSpectatorJoinedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListSpectatorJoinedMessage& GameListSpectatorJoinedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListSpectatorJoinedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListSpectatorJoinedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListSpectatorJoinedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListSpectatorJoinedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListSpectatorJoinedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListSpectatorJoinedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListSpectatorJoinedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListSpectatorJoinedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListSpectatorJoinedMessage) -} - -size_t GameListSpectatorJoinedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListSpectatorJoinedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t GameListSpectatorJoinedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListSpectatorJoinedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListSpectatorJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListSpectatorJoinedMessage::Swap(GameListSpectatorJoinedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameListSpectatorJoinedMessage::InternalSwap(GameListSpectatorJoinedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string GameListSpectatorJoinedMessage::GetTypeName() const { - return "GameListSpectatorJoinedMessage"; -} - - -// =================================================================== - -void GameListSpectatorLeftMessage::InitAsDefaultInstance() { -} -class GameListSpectatorLeftMessage::HasBitSetters { - public: - static void set_has_gameid(GameListSpectatorLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameListSpectatorLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListSpectatorLeftMessage::kGameIdFieldNumber; -const int GameListSpectatorLeftMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListSpectatorLeftMessage::GameListSpectatorLeftMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListSpectatorLeftMessage) -} -GameListSpectatorLeftMessage::GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListSpectatorLeftMessage::SharedDtor() { -} - -void GameListSpectatorLeftMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListSpectatorLeftMessage& GameListSpectatorLeftMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListSpectatorLeftMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListSpectatorLeftMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListSpectatorLeftMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListSpectatorLeftMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListSpectatorLeftMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListSpectatorLeftMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListSpectatorLeftMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListSpectatorLeftMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListSpectatorLeftMessage) -} - -size_t GameListSpectatorLeftMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListSpectatorLeftMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t GameListSpectatorLeftMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListSpectatorLeftMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListSpectatorLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListSpectatorLeftMessage::Swap(GameListSpectatorLeftMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameListSpectatorLeftMessage::InternalSwap(GameListSpectatorLeftMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string GameListSpectatorLeftMessage::GetTypeName() const { - return "GameListSpectatorLeftMessage"; -} - - -// =================================================================== - -void GameListAdminChangedMessage::InitAsDefaultInstance() { -} -class GameListAdminChangedMessage::HasBitSetters { - public: - static void set_has_gameid(GameListAdminChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_newadminplayerid(GameListAdminChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameListAdminChangedMessage::kGameIdFieldNumber; -const int GameListAdminChangedMessage::kNewAdminPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameListAdminChangedMessage::GameListAdminChangedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameListAdminChangedMessage) -} -GameListAdminChangedMessage::GameListAdminChangedMessage(const GameListAdminChangedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameListAdminChangedMessage::SharedDtor() { -} - -void GameListAdminChangedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameListAdminChangedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameListAdminChangedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameListAdminChangedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameListAdminChangedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 newAdminPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_newadminplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameListAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameListAdminChangedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_newadminplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newadminplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameListAdminChangedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameListAdminChangedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameListAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListAdminChangedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 newAdminPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameListAdminChangedMessage) -} - -size_t GameListAdminChangedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameListAdminChangedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_newadminplayerid()) { - // required uint32 newAdminPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - } - - return total_size; -} -size_t GameListAdminChangedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameListAdminChangedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 newAdminPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameListAdminChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameListAdminChangedMessage::Swap(GameListAdminChangedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameListAdminChangedMessage::InternalSwap(GameListAdminChangedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(newadminplayerid_, other->newadminplayerid_); -} - -::std::string GameListAdminChangedMessage::GetTypeName() const { - return "GameListAdminChangedMessage"; -} - - -// =================================================================== - -void PlayerInfoRequestMessage::InitAsDefaultInstance() { -} -class PlayerInfoRequestMessage::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayerInfoRequestMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerInfoRequestMessage::PlayerInfoRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerInfoRequestMessage) -} -PlayerInfoRequestMessage::PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_), - 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(); -} - -void PlayerInfoRequestMessage::SharedDtor() { -} - -void PlayerInfoRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayerInfoRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayerInfoRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayerInfoRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - playerid_.Clear(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerInfoRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated uint32 playerId = 1 [packed = true]; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) == 10) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_playerid(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - do { - msg->add_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 8 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerInfoRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerInfoRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated uint32 playerId = 1 [packed = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerid()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 10u, input, this->mutable_playerid()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerInfoRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerInfoRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerInfoRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // 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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->playerid_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerid(i), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerInfoRequestMessage) -} - -size_t PlayerInfoRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerInfoRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerid_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - _playerid_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayerInfoRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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::Swap(PlayerInfoRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayerInfoRequestMessage::InternalSwap(PlayerInfoRequestMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - playerid_.InternalSwap(&other->playerid_); -} - -::std::string PlayerInfoRequestMessage::GetTypeName() const { - return "PlayerInfoRequestMessage"; -} - - -// =================================================================== - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance() { -} -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData::HasBitSetters { - public: - static void set_has_avatartype(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_avatarhash(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarTypeFieldNumber; -const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarHashFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_avatarhash()) { - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.avatarhash_); - } - avatartype_ = from.avatartype_; - // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_pokerth_2eproto.base); - avatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - avatartype_ = 1; -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::~PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { - // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - SharedDtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedDtor() { - avatarhash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - avatartype_ = 1; - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .NetAvatarType avatarType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetAvatarType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_avatartype(static_cast<::NetAvatarType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bytes avatarHash = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_avatarhash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetAvatarType avatarType = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required .NetAvatarType avatarType = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->avatartype(), output); - } - - // required bytes avatarHash = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->avatarhash(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} - -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 (has_avatarhash()) { - // required bytes avatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - } - - if (has_avatartype()) { - // required .NetAvatarType avatarType = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->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; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes avatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->avatarhash()); - - // required .NetAvatarType avatarType = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - 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::HasBitSetters { - public: - static void set_has_playername(PlayerInfoReplyMessage_PlayerInfoData* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_ishuman(PlayerInfoReplyMessage_PlayerInfoData* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_playerrights(PlayerInfoReplyMessage_PlayerInfoData* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_countrycode(PlayerInfoReplyMessage_PlayerInfoData* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata(const PlayerInfoReplyMessage_PlayerInfoData* msg); - static void set_has_avatardata(PlayerInfoReplyMessage_PlayerInfoData* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& -PlayerInfoReplyMessage_PlayerInfoData::HasBitSetters::avatardata(const PlayerInfoReplyMessage_PlayerInfoData* msg) { - return *msg->avatardata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage.PlayerInfoData) -} -PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_playername()) { - playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_); - } - countrycode_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_countrycode()) { - countrycode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.countrycode_); - } - if (from.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() { - ::google::protobuf::internal::InitSCC( - &scc_info_PlayerInfoReplyMessage_PlayerInfoData_pokerth_2eproto.base); - playername_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - countrycode_.UnsafeSetDefault(&::google::protobuf::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(); -} - -void PlayerInfoReplyMessage_PlayerInfoData::SharedDtor() { - playername_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - countrycode_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete avatardata_; -} - -void PlayerInfoReplyMessage_PlayerInfoData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage_PlayerInfoData::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000002u) { - countrycode_.ClearNonDefaultToEmptyNoArena(); - } - 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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerInfoReplyMessage_PlayerInfoData::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required string playerName = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_playername(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required bool isHuman = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_ishuman(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetPlayerInfoRights playerRights = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetPlayerInfoRights_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_playerrights(static_cast<::NetPlayerInfoRights>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional string countryCode = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_countrycode(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::_InternalParse; - object = msg->mutable_avatardata(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage.PlayerInfoData) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string playerName = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_playername())); - } else { - goto handle_unusual; - } - break; - } - - // required bool isHuman = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_ishuman(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &ishuman_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetPlayerInfoRights playerRights = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // optional string countryCode = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_countrycode())); - } else { - goto handle_unusual; - } - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_avatardata())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerInfoReplyMessage.PlayerInfoData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerInfoReplyMessage.PlayerInfoData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage.PlayerInfoData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required string playerName = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->playername(), output); - } - - // required bool isHuman = 2; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output); - } - - // required .NetPlayerInfoRights playerRights = 3; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->playerrights(), output); - } - - // optional string countryCode = 4; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->countrycode(), output); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, HasBitSetters::avatardata(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage.PlayerInfoData) -} - -size_t PlayerInfoReplyMessage_PlayerInfoData::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerInfoReplyMessage.PlayerInfoData) - size_t total_size = 0; - - if (has_playername()) { - // required string playerName = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - } - - if (has_ishuman()) { - // required bool isHuman = 2; - total_size += 1 + 1; - } - - if (has_playerrights()) { - // required .NetPlayerInfoRights playerRights = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); - } - - return total_size; -} -size_t PlayerInfoReplyMessage_PlayerInfoData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerInfoReplyMessage.PlayerInfoData) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000019) ^ 0x00000019) == 0) { // All required fields are present. - // required string playerName = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - - // required bool isHuman = 2; - total_size += 1 + 1; - - // required .NetPlayerInfoRights playerRights = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->countrycode()); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *avatardata_); - } - - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:PlayerInfoReplyMessage.PlayerInfoData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - playername_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playername_); - } - if (cached_has_bits & 0x00000002u) { - _has_bits_[0] |= 0x00000002u; - countrycode_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.countrycode_); - } - if (cached_has_bits & 0x00000004u) { - mutable_avatardata()->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(from.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 ((_has_bits_[0] & 0x00000019) != 0x00000019) return false; - if (has_avatardata()) { - if (!this->avatardata_->IsInitialized()) return false; - } - return true; -} - -void PlayerInfoReplyMessage_PlayerInfoData::Swap(PlayerInfoReplyMessage_PlayerInfoData* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - countrycode_.Swap(&other->countrycode_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(avatardata_, other->avatardata_); - swap(ishuman_, other->ishuman_); - 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::HasBitSetters { - public: - static void set_has_playerid(PlayerInfoReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata(const PlayerInfoReplyMessage* msg); - static void set_has_playerinfodata(PlayerInfoReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -const ::PlayerInfoReplyMessage_PlayerInfoData& -PlayerInfoReplyMessage::HasBitSetters::playerinfodata(const PlayerInfoReplyMessage* msg) { - return *msg->playerinfodata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayerInfoReplyMessage::kPlayerIdFieldNumber; -const int PlayerInfoReplyMessage::kPlayerInfoDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerInfoReplyMessage::PlayerInfoReplyMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage) -} -PlayerInfoReplyMessage::PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_playerinfodata()) { - playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData(*from.playerinfodata_); - } else { - playerinfodata_ = nullptr; - } - playerid_ = from.playerid_; - // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage) -} - -void PlayerInfoReplyMessage::SharedCtor() { - ::google::protobuf::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(); -} - -void PlayerInfoReplyMessage::SharedDtor() { - if (this != internal_default_instance()) delete playerinfodata_; -} - -void PlayerInfoReplyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerInfoReplyMessage& PlayerInfoReplyMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayerInfoReplyMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayerInfoReplyMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayerInfoReplyMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerInfoReplyMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 playerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerInfoReplyMessage_PlayerInfoData::_InternalParse; - object = msg->mutable_playerinfodata(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerInfoReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_playerinfodata())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerInfoReplyMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerInfoReplyMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerInfoReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 playerId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, HasBitSetters::playerinfodata(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage) -} - -size_t PlayerInfoReplyMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerInfoReplyMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playerinfodata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayerInfoReplyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - mutable_playerinfodata()->::PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(from.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 ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_playerinfodata()) { - if (!this->playerinfodata_->IsInitialized()) return false; - } - return true; -} - -void PlayerInfoReplyMessage::Swap(PlayerInfoReplyMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayerInfoReplyMessage::InternalSwap(PlayerInfoReplyMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(playerinfodata_, other->playerinfodata_); - swap(playerid_, other->playerid_); -} - -::std::string PlayerInfoReplyMessage::GetTypeName() const { - return "PlayerInfoReplyMessage"; -} - - -// =================================================================== - -void SubscriptionRequestMessage::InitAsDefaultInstance() { -} -class SubscriptionRequestMessage::HasBitSetters { - public: - static void set_has_subscriptionaction(SubscriptionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SubscriptionRequestMessage::kSubscriptionActionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SubscriptionRequestMessage::SubscriptionRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:SubscriptionRequestMessage) -} -SubscriptionRequestMessage::SubscriptionRequestMessage(const SubscriptionRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void SubscriptionRequestMessage::SharedDtor() { -} - -void SubscriptionRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SubscriptionRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void SubscriptionRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:SubscriptionRequestMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SubscriptionRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::SubscriptionRequestMessage_SubscriptionAction_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_subscriptionaction(static_cast<::SubscriptionRequestMessage_SubscriptionAction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SubscriptionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:SubscriptionRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:SubscriptionRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:SubscriptionRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SubscriptionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:SubscriptionRequestMessage) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->subscriptionaction(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:SubscriptionRequestMessage) -} - -size_t SubscriptionRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:SubscriptionRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - if (has_subscriptionaction()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->subscriptionaction()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SubscriptionRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_subscriptionaction()) { - set_subscriptionaction(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void SubscriptionRequestMessage::Swap(SubscriptionRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(JoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_password(JoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_autoleave(JoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_spectateonly(JoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int JoinExistingGameMessage::kGameIdFieldNumber; -const int JoinExistingGameMessage::kPasswordFieldNumber; -const int JoinExistingGameMessage::kAutoLeaveFieldNumber; -const int JoinExistingGameMessage::kSpectateOnlyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -JoinExistingGameMessage::JoinExistingGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:JoinExistingGameMessage) -} -JoinExistingGameMessage::JoinExistingGameMessage(const JoinExistingGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_password()) { - password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); - } - ::memcpy(&gameid_, &from.gameid_, - static_cast(reinterpret_cast(&spectateonly_) - - reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); - // @@protoc_insertion_point(copy_constructor:JoinExistingGameMessage) -} - -void JoinExistingGameMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_JoinExistingGameMessage_pokerth_2eproto.base); - password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&gameid_, 0, static_cast( - reinterpret_cast(&spectateonly_) - - reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); -} - -JoinExistingGameMessage::~JoinExistingGameMessage() { - // @@protoc_insertion_point(destructor:JoinExistingGameMessage) - SharedDtor(); -} - -void JoinExistingGameMessage::SharedDtor() { - password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void JoinExistingGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_JoinExistingGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void JoinExistingGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:JoinExistingGameMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x0000000eu) { - ::memset(&gameid_, 0, static_cast( - reinterpret_cast(&spectateonly_) - - reinterpret_cast(&gameid_)) + sizeof(spectateonly_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* JoinExistingGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional string password = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_password(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional bool autoLeave = 3 [default = false]; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_autoleave(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional bool spectateOnly = 4 [default = false]; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_spectateonly(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool JoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:JoinExistingGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional string password = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_unusual; - } - break; - } - - // optional bool autoLeave = 3 [default = false]; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_autoleave(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - } else { - goto handle_unusual; - } - break; - } - - // optional bool spectateOnly = 4 [default = false]; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_spectateonly(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:JoinExistingGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:JoinExistingGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void JoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinExistingGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->password(), output); - } - - // optional bool autoLeave = 3 [default = false]; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); - } - - // optional bool spectateOnly = 4 [default = false]; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->spectateonly(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:JoinExistingGameMessage) -} - -size_t JoinExistingGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:JoinExistingGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->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; - } - - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void JoinExistingGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - return true; -} - -void JoinExistingGameMessage::Swap(JoinExistingGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(gameid_, other->gameid_); - swap(autoleave_, other->autoleave_); - swap(spectateonly_, other->spectateonly_); -} - -::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::HasBitSetters { - public: - static const ::NetGameInfo& gameinfo(const JoinNewGameMessage* msg); - static void set_has_gameinfo(JoinNewGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_password(JoinNewGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_autoleave(JoinNewGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -const ::NetGameInfo& -JoinNewGameMessage::HasBitSetters::gameinfo(const JoinNewGameMessage* msg) { - return *msg->gameinfo_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int JoinNewGameMessage::kGameInfoFieldNumber; -const int JoinNewGameMessage::kPasswordFieldNumber; -const int JoinNewGameMessage::kAutoLeaveFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -JoinNewGameMessage::JoinNewGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:JoinNewGameMessage) -} -JoinNewGameMessage::JoinNewGameMessage(const JoinNewGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_password()) { - password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); - } - if (from.has_gameinfo()) { - gameinfo_ = new ::NetGameInfo(*from.gameinfo_); - } else { - gameinfo_ = nullptr; - } - autoleave_ = from.autoleave_; - // @@protoc_insertion_point(copy_constructor:JoinNewGameMessage) -} - -void JoinNewGameMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_JoinNewGameMessage_pokerth_2eproto.base); - password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&gameinfo_, 0, static_cast( - reinterpret_cast(&autoleave_) - - reinterpret_cast(&gameinfo_)) + sizeof(autoleave_)); -} - -JoinNewGameMessage::~JoinNewGameMessage() { - // @@protoc_insertion_point(destructor:JoinNewGameMessage) - SharedDtor(); -} - -void JoinNewGameMessage::SharedDtor() { - password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete gameinfo_; -} - -void JoinNewGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const JoinNewGameMessage& JoinNewGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_JoinNewGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void JoinNewGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:JoinNewGameMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(gameinfo_ != nullptr); - gameinfo_->Clear(); - } - } - autoleave_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* JoinNewGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .NetGameInfo gameInfo = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::NetGameInfo::_InternalParse; - object = msg->mutable_gameinfo(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional string password = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_password(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // optional bool autoLeave = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_autoleave(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool JoinNewGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:JoinNewGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetGameInfo gameInfo = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - break; - } - - // optional string password = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_unusual; - } - break; - } - - // optional bool autoLeave = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_autoleave(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:JoinNewGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:JoinNewGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void JoinNewGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinNewGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required .NetGameInfo gameInfo = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, HasBitSetters::gameinfo(this), output); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->password(), output); - } - - // optional bool autoLeave = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:JoinNewGameMessage) -} - -size_t JoinNewGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:JoinNewGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .NetGameInfo gameInfo = 1; - if (has_gameinfo()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameinfo_); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->password()); - } - - // optional bool autoLeave = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void JoinNewGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); - } - if (cached_has_bits & 0x00000002u) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.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 ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - if (has_gameinfo()) { - if (!this->gameinfo_->IsInitialized()) return false; - } - return true; -} - -void JoinNewGameMessage::Swap(JoinNewGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(gameinfo_, other->gameinfo_); - swap(autoleave_, other->autoleave_); -} - -::std::string JoinNewGameMessage::GetTypeName() const { - return "JoinNewGameMessage"; -} - - -// =================================================================== - -void RejoinExistingGameMessage::InitAsDefaultInstance() { -} -class RejoinExistingGameMessage::HasBitSetters { - public: - static void set_has_gameid(RejoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_autoleave(RejoinExistingGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RejoinExistingGameMessage::kGameIdFieldNumber; -const int RejoinExistingGameMessage::kAutoLeaveFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RejoinExistingGameMessage::RejoinExistingGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:RejoinExistingGameMessage) -} -RejoinExistingGameMessage::RejoinExistingGameMessage(const RejoinExistingGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void RejoinExistingGameMessage::SharedDtor() { -} - -void RejoinExistingGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RejoinExistingGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void RejoinExistingGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:RejoinExistingGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RejoinExistingGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional bool autoLeave = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_autoleave(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RejoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:RejoinExistingGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional bool autoLeave = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_autoleave(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:RejoinExistingGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:RejoinExistingGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RejoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejoinExistingGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional bool autoLeave = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->autoleave(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:RejoinExistingGameMessage) -} - -size_t RejoinExistingGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:RejoinExistingGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::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; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RejoinExistingGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void RejoinExistingGameMessage::Swap(RejoinExistingGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void RejoinExistingGameMessage::InternalSwap(RejoinExistingGameMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(autoleave_, other->autoleave_); -} - -::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::HasBitSetters { - public: - static void set_has_gameid(JoinGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_areyougameadmin(JoinGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static const ::NetGameInfo& gameinfo(const JoinGameAckMessage* msg); - static void set_has_gameinfo(JoinGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_spectateonly(JoinGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; - -const ::NetGameInfo& -JoinGameAckMessage::HasBitSetters::gameinfo(const JoinGameAckMessage* msg) { - return *msg->gameinfo_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int JoinGameAckMessage::kGameIdFieldNumber; -const int JoinGameAckMessage::kAreYouGameAdminFieldNumber; -const int JoinGameAckMessage::kGameInfoFieldNumber; -const int JoinGameAckMessage::kSpectateOnlyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -JoinGameAckMessage::JoinGameAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:JoinGameAckMessage) -} -JoinGameAckMessage::JoinGameAckMessage(const JoinGameAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.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() { - ::google::protobuf::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(); -} - -void JoinGameAckMessage::SharedDtor() { - if (this != internal_default_instance()) delete gameinfo_; -} - -void JoinGameAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const JoinGameAckMessage& JoinGameAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_JoinGameAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void JoinGameAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:JoinGameAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* JoinGameAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bool areYouGameAdmin = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_areyougameadmin(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameInfo gameInfo = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::NetGameInfo::_InternalParse; - object = msg->mutable_gameinfo(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional bool spectateOnly = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_spectateonly(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool JoinGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:JoinGameAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bool areYouGameAdmin = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_areyougameadmin(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &areyougameadmin_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameInfo gameInfo = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - break; - } - - // optional bool spectateOnly = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_spectateonly(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:JoinGameAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:JoinGameAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void JoinGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinGameAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required bool areYouGameAdmin = 2; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->areyougameadmin(), output); - } - - // required .NetGameInfo gameInfo = 3; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, HasBitSetters::gameinfo(this), output); - } - - // optional bool spectateOnly = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->spectateonly(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:JoinGameAckMessage) -} - -size_t JoinGameAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JoinGameAckMessage) - size_t total_size = 0; - - if (has_gameinfo()) { - // required .NetGameInfo gameInfo = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameinfo_); - } - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (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; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required .NetGameInfo gameInfo = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameinfo_); - - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required bool areYouGameAdmin = 2; - total_size += 1 + 1; - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void JoinGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - mutable_gameinfo()->::NetGameInfo::MergeFrom(from.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 ((_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) return; - InternalSwap(other); -} -void JoinGameAckMessage::InternalSwap(JoinGameAckMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameinfo_, other->gameinfo_); - swap(gameid_, other->gameid_); - swap(areyougameadmin_, other->areyougameadmin_); - swap(spectateonly_, other->spectateonly_); -} - -::std::string JoinGameAckMessage::GetTypeName() const { - return "JoinGameAckMessage"; -} - - -// =================================================================== - -void JoinGameFailedMessage::InitAsDefaultInstance() { -} -class JoinGameFailedMessage::HasBitSetters { - public: - static void set_has_gameid(JoinGameFailedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_joingamefailurereason(JoinGameFailedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int JoinGameFailedMessage::kGameIdFieldNumber; -const int JoinGameFailedMessage::kJoinGameFailureReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -JoinGameFailedMessage::JoinGameFailedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:JoinGameFailedMessage) -} -JoinGameFailedMessage::JoinGameFailedMessage(const JoinGameFailedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void JoinGameFailedMessage::SharedDtor() { -} - -void JoinGameFailedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_JoinGameFailedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void JoinGameFailedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:JoinGameFailedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* JoinGameFailedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::JoinGameFailedMessage_JoinGameFailureReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_joingamefailurereason(static_cast<::JoinGameFailedMessage_JoinGameFailureReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool JoinGameFailedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:JoinGameFailedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:JoinGameFailedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:JoinGameFailedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void JoinGameFailedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinGameFailedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->joingamefailurereason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:JoinGameFailedMessage) -} - -size_t JoinGameFailedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:JoinGameFailedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_joingamefailurereason()) { - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->joingamefailurereason()); - } - - return total_size; -} -size_t JoinGameFailedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:JoinGameFailedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->joingamefailurereason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void JoinGameFailedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void JoinGameFailedMessage::Swap(JoinGameFailedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(GamePlayerJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GamePlayerJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_isgameadmin(GamePlayerJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GamePlayerJoinedMessage::kGameIdFieldNumber; -const int GamePlayerJoinedMessage::kPlayerIdFieldNumber; -const int GamePlayerJoinedMessage::kIsGameAdminFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GamePlayerJoinedMessage::GamePlayerJoinedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GamePlayerJoinedMessage) -} -GamePlayerJoinedMessage::GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GamePlayerJoinedMessage::SharedDtor() { -} - -void GamePlayerJoinedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GamePlayerJoinedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GamePlayerJoinedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GamePlayerJoinedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GamePlayerJoinedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bool isGameAdmin = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_isgameadmin(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GamePlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GamePlayerJoinedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bool isGameAdmin = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_isgameadmin(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isgameadmin_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GamePlayerJoinedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GamePlayerJoinedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GamePlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GamePlayerJoinedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required bool isGameAdmin = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isgameadmin(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GamePlayerJoinedMessage) -} - -size_t GamePlayerJoinedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GamePlayerJoinedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (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; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required bool isGameAdmin = 3; - total_size += 1 + 1; - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GamePlayerJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void GamePlayerJoinedMessage::Swap(GamePlayerJoinedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GamePlayerJoinedMessage::InternalSwap(GamePlayerJoinedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(isgameadmin_, other->isgameadmin_); -} - -::std::string GamePlayerJoinedMessage::GetTypeName() const { - return "GamePlayerJoinedMessage"; -} - - -// =================================================================== - -void GamePlayerLeftMessage::InitAsDefaultInstance() { -} -class GamePlayerLeftMessage::HasBitSetters { - public: - static void set_has_gameid(GamePlayerLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GamePlayerLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gameplayerleftreason(GamePlayerLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GamePlayerLeftMessage::kGameIdFieldNumber; -const int GamePlayerLeftMessage::kPlayerIdFieldNumber; -const int GamePlayerLeftMessage::kGamePlayerLeftReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GamePlayerLeftMessage::GamePlayerLeftMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GamePlayerLeftMessage) -} -GamePlayerLeftMessage::GamePlayerLeftMessage(const GamePlayerLeftMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GamePlayerLeftMessage::SharedDtor() { -} - -void GamePlayerLeftMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GamePlayerLeftMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GamePlayerLeftMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GamePlayerLeftMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GamePlayerLeftMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gameplayerleftreason(static_cast<::GamePlayerLeftMessage_GamePlayerLeftReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GamePlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GamePlayerLeftMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GamePlayerLeftMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GamePlayerLeftMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GamePlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GamePlayerLeftMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gameplayerleftreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GamePlayerLeftMessage) -} - -size_t GamePlayerLeftMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GamePlayerLeftMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_gameplayerleftreason()) { - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gameplayerleftreason()); - } - - return total_size; -} -size_t GamePlayerLeftMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GamePlayerLeftMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gameplayerleftreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GamePlayerLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void GamePlayerLeftMessage::Swap(GamePlayerLeftMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GamePlayerLeftMessage::InternalSwap(GamePlayerLeftMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(gameplayerleftreason_, other->gameplayerleftreason_); -} - -::std::string GamePlayerLeftMessage::GetTypeName() const { - return "GamePlayerLeftMessage"; -} - - -// =================================================================== - -void GameSpectatorJoinedMessage::InitAsDefaultInstance() { -} -class GameSpectatorJoinedMessage::HasBitSetters { - public: - static void set_has_gameid(GameSpectatorJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameSpectatorJoinedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameSpectatorJoinedMessage::kGameIdFieldNumber; -const int GameSpectatorJoinedMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameSpectatorJoinedMessage::GameSpectatorJoinedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameSpectatorJoinedMessage) -} -GameSpectatorJoinedMessage::GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameSpectatorJoinedMessage::SharedDtor() { -} - -void GameSpectatorJoinedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameSpectatorJoinedMessage& GameSpectatorJoinedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameSpectatorJoinedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameSpectatorJoinedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameSpectatorJoinedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameSpectatorJoinedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameSpectatorJoinedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameSpectatorJoinedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameSpectatorJoinedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameSpectatorJoinedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameSpectatorJoinedMessage) -} - -size_t GameSpectatorJoinedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameSpectatorJoinedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t GameSpectatorJoinedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameSpectatorJoinedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameSpectatorJoinedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameSpectatorJoinedMessage::Swap(GameSpectatorJoinedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameSpectatorJoinedMessage::InternalSwap(GameSpectatorJoinedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string GameSpectatorJoinedMessage::GetTypeName() const { - return "GameSpectatorJoinedMessage"; -} - - -// =================================================================== - -void GameSpectatorLeftMessage::InitAsDefaultInstance() { -} -class GameSpectatorLeftMessage::HasBitSetters { - public: - static void set_has_gameid(GameSpectatorLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(GameSpectatorLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gamespectatorleftreason(GameSpectatorLeftMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameSpectatorLeftMessage::kGameIdFieldNumber; -const int GameSpectatorLeftMessage::kPlayerIdFieldNumber; -const int GameSpectatorLeftMessage::kGameSpectatorLeftReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameSpectatorLeftMessage::GameSpectatorLeftMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameSpectatorLeftMessage) -} -GameSpectatorLeftMessage::GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameSpectatorLeftMessage::SharedDtor() { -} - -void GameSpectatorLeftMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameSpectatorLeftMessage& GameSpectatorLeftMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameSpectatorLeftMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameSpectatorLeftMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameSpectatorLeftMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameSpectatorLeftMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamespectatorleftreason(static_cast<::GamePlayerLeftMessage_GamePlayerLeftReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameSpectatorLeftMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameSpectatorLeftMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameSpectatorLeftMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameSpectatorLeftMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamespectatorleftreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameSpectatorLeftMessage) -} - -size_t GameSpectatorLeftMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameSpectatorLeftMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_gamespectatorleftreason()) { - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamespectatorleftreason()); - } - - return total_size; -} -size_t GameSpectatorLeftMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameSpectatorLeftMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamespectatorleftreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameSpectatorLeftMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void GameSpectatorLeftMessage::Swap(GameSpectatorLeftMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameSpectatorLeftMessage::InternalSwap(GameSpectatorLeftMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(gamespectatorleftreason_, other->gamespectatorleftreason_); -} - -::std::string GameSpectatorLeftMessage::GetTypeName() const { - return "GameSpectatorLeftMessage"; -} - - -// =================================================================== - -void GameAdminChangedMessage::InitAsDefaultInstance() { -} -class GameAdminChangedMessage::HasBitSetters { - public: - static void set_has_gameid(GameAdminChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_newadminplayerid(GameAdminChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameAdminChangedMessage::kGameIdFieldNumber; -const int GameAdminChangedMessage::kNewAdminPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameAdminChangedMessage::GameAdminChangedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameAdminChangedMessage) -} -GameAdminChangedMessage::GameAdminChangedMessage(const GameAdminChangedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameAdminChangedMessage::SharedDtor() { -} - -void GameAdminChangedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameAdminChangedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameAdminChangedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameAdminChangedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameAdminChangedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 newAdminPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_newadminplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameAdminChangedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_newadminplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newadminplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameAdminChangedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameAdminChangedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameAdminChangedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 newAdminPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameAdminChangedMessage) -} - -size_t GameAdminChangedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameAdminChangedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_newadminplayerid()) { - // required uint32 newAdminPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - } - - return total_size; -} -size_t GameAdminChangedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameAdminChangedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 newAdminPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newadminplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameAdminChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameAdminChangedMessage::Swap(GameAdminChangedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameAdminChangedMessage::InternalSwap(GameAdminChangedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(newadminplayerid_, other->newadminplayerid_); -} - -::std::string GameAdminChangedMessage::GetTypeName() const { - return "GameAdminChangedMessage"; -} - - -// =================================================================== - -void RemovedFromGameMessage::InitAsDefaultInstance() { -} -class RemovedFromGameMessage::HasBitSetters { - public: - static void set_has_gameid(RemovedFromGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_removedfromgamereason(RemovedFromGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RemovedFromGameMessage::kGameIdFieldNumber; -const int RemovedFromGameMessage::kRemovedFromGameReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RemovedFromGameMessage::RemovedFromGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:RemovedFromGameMessage) -} -RemovedFromGameMessage::RemovedFromGameMessage(const RemovedFromGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void RemovedFromGameMessage::SharedDtor() { -} - -void RemovedFromGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RemovedFromGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void RemovedFromGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:RemovedFromGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RemovedFromGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::RemovedFromGameMessage_RemovedFromGameReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_removedfromgamereason(static_cast<::RemovedFromGameMessage_RemovedFromGameReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RemovedFromGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:RemovedFromGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:RemovedFromGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:RemovedFromGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RemovedFromGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RemovedFromGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->removedfromgamereason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:RemovedFromGameMessage) -} - -size_t RemovedFromGameMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RemovedFromGameMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_removedfromgamereason()) { - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removedfromgamereason()); - } - - return total_size; -} -size_t RemovedFromGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:RemovedFromGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removedfromgamereason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RemovedFromGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void RemovedFromGameMessage::Swap(RemovedFromGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void RemovedFromGameMessage::InternalSwap(RemovedFromGameMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(removedfromgamereason_, other->removedfromgamereason_); -} - -::std::string RemovedFromGameMessage::GetTypeName() const { - return "RemovedFromGameMessage"; -} - - -// =================================================================== - -void KickPlayerRequestMessage::InitAsDefaultInstance() { -} -class KickPlayerRequestMessage::HasBitSetters { - public: - static void set_has_gameid(KickPlayerRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(KickPlayerRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KickPlayerRequestMessage::kGameIdFieldNumber; -const int KickPlayerRequestMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -KickPlayerRequestMessage::KickPlayerRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:KickPlayerRequestMessage) -} -KickPlayerRequestMessage::KickPlayerRequestMessage(const KickPlayerRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void KickPlayerRequestMessage::SharedDtor() { -} - -void KickPlayerRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_KickPlayerRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void KickPlayerRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:KickPlayerRequestMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* KickPlayerRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool KickPlayerRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:KickPlayerRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:KickPlayerRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:KickPlayerRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void KickPlayerRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:KickPlayerRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:KickPlayerRequestMessage) -} - -size_t KickPlayerRequestMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:KickPlayerRequestMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t KickPlayerRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:KickPlayerRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KickPlayerRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void KickPlayerRequestMessage::Swap(KickPlayerRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void KickPlayerRequestMessage::InternalSwap(KickPlayerRequestMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string KickPlayerRequestMessage::GetTypeName() const { - return "KickPlayerRequestMessage"; -} - - -// =================================================================== - -void LeaveGameRequestMessage::InitAsDefaultInstance() { -} -class LeaveGameRequestMessage::HasBitSetters { - public: - static void set_has_gameid(LeaveGameRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LeaveGameRequestMessage::kGameIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LeaveGameRequestMessage::LeaveGameRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:LeaveGameRequestMessage) -} -LeaveGameRequestMessage::LeaveGameRequestMessage(const LeaveGameRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void LeaveGameRequestMessage::SharedDtor() { -} - -void LeaveGameRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LeaveGameRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void LeaveGameRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:LeaveGameRequestMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LeaveGameRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LeaveGameRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:LeaveGameRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:LeaveGameRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:LeaveGameRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LeaveGameRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:LeaveGameRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:LeaveGameRequestMessage) -} - -size_t LeaveGameRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:LeaveGameRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LeaveGameRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_gameid()) { - set_gameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void LeaveGameRequestMessage::Swap(LeaveGameRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(InvitePlayerToGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(InvitePlayerToGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InvitePlayerToGameMessage::kGameIdFieldNumber; -const int InvitePlayerToGameMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InvitePlayerToGameMessage::InvitePlayerToGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:InvitePlayerToGameMessage) -} -InvitePlayerToGameMessage::InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void InvitePlayerToGameMessage::SharedDtor() { -} - -void InvitePlayerToGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InvitePlayerToGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void InvitePlayerToGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:InvitePlayerToGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InvitePlayerToGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InvitePlayerToGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:InvitePlayerToGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:InvitePlayerToGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:InvitePlayerToGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InvitePlayerToGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InvitePlayerToGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:InvitePlayerToGameMessage) -} - -size_t InvitePlayerToGameMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InvitePlayerToGameMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t InvitePlayerToGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:InvitePlayerToGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InvitePlayerToGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void InvitePlayerToGameMessage::Swap(InvitePlayerToGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void InvitePlayerToGameMessage::InternalSwap(InvitePlayerToGameMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string InvitePlayerToGameMessage::GetTypeName() const { - return "InvitePlayerToGameMessage"; -} - - -// =================================================================== - -void InviteNotifyMessage::InitAsDefaultInstance() { -} -class InviteNotifyMessage::HasBitSetters { - public: - static void set_has_gameid(InviteNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playeridwho(InviteNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_playeridbywhom(InviteNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InviteNotifyMessage::kGameIdFieldNumber; -const int InviteNotifyMessage::kPlayerIdWhoFieldNumber; -const int InviteNotifyMessage::kPlayerIdByWhomFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InviteNotifyMessage::InviteNotifyMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:InviteNotifyMessage) -} -InviteNotifyMessage::InviteNotifyMessage(const InviteNotifyMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void InviteNotifyMessage::SharedDtor() { -} - -void InviteNotifyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InviteNotifyMessage& InviteNotifyMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InviteNotifyMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void InviteNotifyMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:InviteNotifyMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InviteNotifyMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerIdWho = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playeridwho(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerIdByWhom = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_playeridbywhom(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InviteNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:InviteNotifyMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerIdWho = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playeridwho(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeridwho_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerIdByWhom = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_playeridbywhom(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playeridbywhom_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:InviteNotifyMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:InviteNotifyMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InviteNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InviteNotifyMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerIdWho = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playeridwho(), output); - } - - // required uint32 playerIdByWhom = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->playeridbywhom(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:InviteNotifyMessage) -} - -size_t InviteNotifyMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:InviteNotifyMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playeridwho()) { - // required uint32 playerIdWho = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridwho()); - } - - if (has_playeridbywhom()) { - // required uint32 playerIdByWhom = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridbywhom()); - } - - return total_size; -} -size_t InviteNotifyMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:InviteNotifyMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerIdWho = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridwho()); - - // required uint32 playerIdByWhom = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playeridbywhom()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InviteNotifyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void InviteNotifyMessage::Swap(InviteNotifyMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void InviteNotifyMessage::InternalSwap(InviteNotifyMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playeridwho_, other->playeridwho_); - swap(playeridbywhom_, other->playeridbywhom_); -} - -::std::string InviteNotifyMessage::GetTypeName() const { - return "InviteNotifyMessage"; -} - - -// =================================================================== - -void RejectGameInvitationMessage::InitAsDefaultInstance() { -} -class RejectGameInvitationMessage::HasBitSetters { - public: - static void set_has_gameid(RejectGameInvitationMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_myrejectreason(RejectGameInvitationMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RejectGameInvitationMessage::kGameIdFieldNumber; -const int RejectGameInvitationMessage::kMyRejectReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RejectGameInvitationMessage::RejectGameInvitationMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:RejectGameInvitationMessage) -} -RejectGameInvitationMessage::RejectGameInvitationMessage(const RejectGameInvitationMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void RejectGameInvitationMessage::SharedDtor() { -} - -void RejectGameInvitationMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RejectGameInvitationMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void RejectGameInvitationMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:RejectGameInvitationMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RejectGameInvitationMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::RejectGameInvitationMessage_RejectGameInvReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_myrejectreason(static_cast<::RejectGameInvitationMessage_RejectGameInvReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RejectGameInvitationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:RejectGameInvitationMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:RejectGameInvitationMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:RejectGameInvitationMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RejectGameInvitationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejectGameInvitationMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->myrejectreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:RejectGameInvitationMessage) -} - -size_t RejectGameInvitationMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RejectGameInvitationMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_myrejectreason()) { - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myrejectreason()); - } - - return total_size; -} -size_t RejectGameInvitationMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:RejectGameInvitationMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myrejectreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RejectGameInvitationMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void RejectGameInvitationMessage::Swap(RejectGameInvitationMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void RejectGameInvitationMessage::InternalSwap(RejectGameInvitationMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(myrejectreason_, other->myrejectreason_); -} - -::std::string RejectGameInvitationMessage::GetTypeName() const { - return "RejectGameInvitationMessage"; -} - - -// =================================================================== - -void RejectInvNotifyMessage::InitAsDefaultInstance() { -} -class RejectInvNotifyMessage::HasBitSetters { - public: - static void set_has_gameid(RejectInvNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(RejectInvNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_playerrejectreason(RejectInvNotifyMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RejectInvNotifyMessage::kGameIdFieldNumber; -const int RejectInvNotifyMessage::kPlayerIdFieldNumber; -const int RejectInvNotifyMessage::kPlayerRejectReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RejectInvNotifyMessage::RejectInvNotifyMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:RejectInvNotifyMessage) -} -RejectInvNotifyMessage::RejectInvNotifyMessage(const RejectInvNotifyMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void RejectInvNotifyMessage::SharedDtor() { -} - -void RejectInvNotifyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RejectInvNotifyMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void RejectInvNotifyMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:RejectInvNotifyMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RejectInvNotifyMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::RejectGameInvitationMessage_RejectGameInvReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_playerrejectreason(static_cast<::RejectGameInvitationMessage_RejectGameInvReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RejectInvNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:RejectInvNotifyMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:RejectInvNotifyMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:RejectInvNotifyMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RejectInvNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejectInvNotifyMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->playerrejectreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:RejectInvNotifyMessage) -} - -size_t RejectInvNotifyMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:RejectInvNotifyMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_playerrejectreason()) { - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrejectreason()); - } - - return total_size; -} -size_t RejectInvNotifyMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:RejectInvNotifyMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrejectreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RejectInvNotifyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void RejectInvNotifyMessage::Swap(RejectInvNotifyMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void RejectInvNotifyMessage::InternalSwap(RejectInvNotifyMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(playerrejectreason_, other->playerrejectreason_); -} - -::std::string RejectInvNotifyMessage::GetTypeName() const { - return "RejectInvNotifyMessage"; -} - - -// =================================================================== - -void StartEventMessage::InitAsDefaultInstance() { -} -class StartEventMessage::HasBitSetters { - public: - static void set_has_gameid(StartEventMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_starteventtype(StartEventMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_fillwithcomputerplayers(StartEventMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StartEventMessage::kGameIdFieldNumber; -const int StartEventMessage::kStartEventTypeFieldNumber; -const int StartEventMessage::kFillWithComputerPlayersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StartEventMessage::StartEventMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:StartEventMessage) -} -StartEventMessage::StartEventMessage(const StartEventMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void StartEventMessage::SharedDtor() { -} - -void StartEventMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StartEventMessage& StartEventMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StartEventMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void StartEventMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:StartEventMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StartEventMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .StartEventMessage.StartEventType startEventType = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::StartEventMessage_StartEventType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_starteventtype(static_cast<::StartEventMessage_StartEventType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional bool fillWithComputerPlayers = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_fillwithcomputerplayers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StartEventMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:StartEventMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .StartEventMessage.StartEventType startEventType = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // optional bool fillWithComputerPlayers = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_fillwithcomputerplayers(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fillwithcomputerplayers_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:StartEventMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:StartEventMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StartEventMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartEventMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .StartEventMessage.StartEventType startEventType = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->starteventtype(), output); - } - - // optional bool fillWithComputerPlayers = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fillwithcomputerplayers(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:StartEventMessage) -} - -size_t StartEventMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StartEventMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_starteventtype()) { - // required .StartEventMessage.StartEventType startEventType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->starteventtype()); - } - - return total_size; -} -size_t StartEventMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:StartEventMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .StartEventMessage.StartEventType startEventType = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->starteventtype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StartEventMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void StartEventMessage::Swap(StartEventMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void StartEventMessage::InternalSwap(StartEventMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(starteventtype_, other->starteventtype_); - swap(fillwithcomputerplayers_, other->fillwithcomputerplayers_); -} - -::std::string StartEventMessage::GetTypeName() const { - return "StartEventMessage"; -} - - -// =================================================================== - -void StartEventAckMessage::InitAsDefaultInstance() { -} -class StartEventAckMessage::HasBitSetters { - public: - static void set_has_gameid(StartEventAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StartEventAckMessage::kGameIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StartEventAckMessage::StartEventAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:StartEventAckMessage) -} -StartEventAckMessage::StartEventAckMessage(const StartEventAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void StartEventAckMessage::SharedDtor() { -} - -void StartEventAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StartEventAckMessage& StartEventAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StartEventAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void StartEventAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:StartEventAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StartEventAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StartEventAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:StartEventAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:StartEventAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:StartEventAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StartEventAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartEventAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:StartEventAckMessage) -} - -size_t StartEventAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:StartEventAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StartEventAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_gameid()) { - set_gameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void StartEventAckMessage::Swap(StartEventAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(GameStartInitialMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_startdealerplayerid(GameStartInitialMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameStartInitialMessage::kGameIdFieldNumber; -const int GameStartInitialMessage::kStartDealerPlayerIdFieldNumber; -const int GameStartInitialMessage::kPlayerSeatsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameStartInitialMessage::GameStartInitialMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameStartInitialMessage) -} -GameStartInitialMessage::GameStartInitialMessage(const GameStartInitialMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameStartInitialMessage::SharedDtor() { -} - -void GameStartInitialMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameStartInitialMessage& GameStartInitialMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameStartInitialMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameStartInitialMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameStartInitialMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameStartInitialMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 startDealerPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_startdealerplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated uint32 playerSeats = 3 [packed = true]; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) == 26) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; - object = msg->mutable_playerseats(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - do { - msg->add_playerseats(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 24 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameStartInitialMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameStartInitialMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_startdealerplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startdealerplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint32 playerSeats = 3 [packed = true]; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerseats()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 26u, input, this->mutable_playerseats()))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameStartInitialMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameStartInitialMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameStartInitialMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartInitialMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 startDealerPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::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_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->playerseats_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( - this->playerseats(i), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameStartInitialMessage) -} - -size_t GameStartInitialMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartInitialMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_startdealerplayerid()) { - // required uint32 startDealerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - return total_size; -} -size_t GameStartInitialMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameStartInitialMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 startDealerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 = ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerseats_); - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - _playerseats_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameStartInitialMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameStartInitialMessage::Swap(GameStartInitialMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_); - swap(gameid_, other->gameid_); - swap(startdealerplayerid_, other->startdealerplayerid_); -} - -::std::string GameStartInitialMessage::GetTypeName() const { - return "GameStartInitialMessage"; -} - - -// =================================================================== - -void GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance() { -} -class GameStartRejoinMessage_RejoinPlayerData::HasBitSetters { - public: - static void set_has_playerid(GameStartRejoinMessage_RejoinPlayerData* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playermoney(GameStartRejoinMessage_RejoinPlayerData* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameStartRejoinMessage_RejoinPlayerData::kPlayerIdFieldNumber; -const int GameStartRejoinMessage_RejoinPlayerData::kPlayerMoneyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameStartRejoinMessage.RejoinPlayerData) -} -GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void GameStartRejoinMessage_RejoinPlayerData::SharedDtor() { -} - -void GameStartRejoinMessage_RejoinPlayerData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage_RejoinPlayerData::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameStartRejoinMessage_RejoinPlayerData::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 playerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerMoney = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playermoney(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameStartRejoinMessage_RejoinPlayerData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameStartRejoinMessage.RejoinPlayerData) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerMoney = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playermoney(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameStartRejoinMessage.RejoinPlayerData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameStartRejoinMessage.RejoinPlayerData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameStartRejoinMessage_RejoinPlayerData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartRejoinMessage.RejoinPlayerData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 playerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 playerMoney = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playermoney(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameStartRejoinMessage.RejoinPlayerData) -} - -size_t GameStartRejoinMessage_RejoinPlayerData::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartRejoinMessage.RejoinPlayerData) - size_t total_size = 0; - - if (has_playerid()) { - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_playermoney()) { - // required uint32 playerMoney = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - return total_size; -} -size_t GameStartRejoinMessage_RejoinPlayerData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameStartRejoinMessage.RejoinPlayerData) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required uint32 playerMoney = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:GameStartRejoinMessage.RejoinPlayerData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void GameStartRejoinMessage_RejoinPlayerData::Swap(GameStartRejoinMessage_RejoinPlayerData* other) { - if (other == this) return; - InternalSwap(other); -} -void GameStartRejoinMessage_RejoinPlayerData::InternalSwap(GameStartRejoinMessage_RejoinPlayerData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(playerid_, other->playerid_); - swap(playermoney_, other->playermoney_); -} - -::std::string GameStartRejoinMessage_RejoinPlayerData::GetTypeName() const { - return "GameStartRejoinMessage.RejoinPlayerData"; -} - - -// =================================================================== - -void GameStartRejoinMessage::InitAsDefaultInstance() { -} -class GameStartRejoinMessage::HasBitSetters { - public: - static void set_has_gameid(GameStartRejoinMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_startdealerplayerid(GameStartRejoinMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_handnum(GameStartRejoinMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GameStartRejoinMessage::kGameIdFieldNumber; -const int GameStartRejoinMessage::kStartDealerPlayerIdFieldNumber; -const int GameStartRejoinMessage::kHandNumFieldNumber; -const int GameStartRejoinMessage::kRejoinPlayerDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GameStartRejoinMessage::GameStartRejoinMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:GameStartRejoinMessage) -} -GameStartRejoinMessage::GameStartRejoinMessage(const GameStartRejoinMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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() { - ::google::protobuf::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(); -} - -void GameStartRejoinMessage::SharedDtor() { -} - -void GameStartRejoinMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GameStartRejoinMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void GameStartRejoinMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:GameStartRejoinMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GameStartRejoinMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 startDealerPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_startdealerplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 handNum = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_handnum(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameStartRejoinMessage_RejoinPlayerData::_InternalParse; - object = msg->add_rejoinplayerdata(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GameStartRejoinMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:GameStartRejoinMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_startdealerplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &startdealerplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 handNum = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_handnum(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handnum_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_rejoinplayerdata())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:GameStartRejoinMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:GameStartRejoinMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GameStartRejoinMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartRejoinMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 startDealerPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); - } - - // required uint32 handNum = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->handnum(), output); - } - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - for (unsigned int i = 0, - n = static_cast(this->rejoinplayerdata_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, - this->rejoinplayerdata(static_cast(i)), - output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:GameStartRejoinMessage) -} - -size_t GameStartRejoinMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:GameStartRejoinMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_startdealerplayerid()) { - // required uint32 startDealerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - if (has_handnum()) { - // required uint32 handNum = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - } - - return total_size; -} -size_t GameStartRejoinMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:GameStartRejoinMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 startDealerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - - // required uint32 handNum = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - { - unsigned int count = static_cast(this->rejoinplayerdata_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->rejoinplayerdata(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GameStartRejoinMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->rejoinplayerdata())) return false; - return true; -} - -void GameStartRejoinMessage::Swap(GameStartRejoinMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void GameStartRejoinMessage::InternalSwap(GameStartRejoinMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - CastToBase(&rejoinplayerdata_)->InternalSwap(CastToBase(&other->rejoinplayerdata_)); - swap(gameid_, other->gameid_); - swap(startdealerplayerid_, other->startdealerplayerid_); - swap(handnum_, other->handnum_); -} - -::std::string GameStartRejoinMessage::GetTypeName() const { - return "GameStartRejoinMessage"; -} - - -// =================================================================== - -void HandStartMessage_PlainCards::InitAsDefaultInstance() { -} -class HandStartMessage_PlainCards::HasBitSetters { - public: - static void set_has_plaincard1(HandStartMessage_PlainCards* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_plaincard2(HandStartMessage_PlainCards* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HandStartMessage_PlainCards::kPlainCard1FieldNumber; -const int HandStartMessage_PlainCards::kPlainCard2FieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HandStartMessage_PlainCards::HandStartMessage_PlainCards() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:HandStartMessage.PlainCards) -} -HandStartMessage_PlainCards::HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void HandStartMessage_PlainCards::SharedDtor() { -} - -void HandStartMessage_PlainCards::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HandStartMessage_PlainCards& HandStartMessage_PlainCards::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HandStartMessage_PlainCards::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 plainCard1 = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_plaincard1(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 plainCard2 = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_plaincard2(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HandStartMessage_PlainCards::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:HandStartMessage.PlainCards) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 plainCard1 = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_plaincard1(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &plaincard1_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 plainCard2 = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_plaincard2(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &plaincard2_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:HandStartMessage.PlainCards) - return true; -failure: - // @@protoc_insertion_point(parse_failure:HandStartMessage.PlainCards) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HandStartMessage_PlainCards::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:HandStartMessage.PlainCards) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 plainCard1 = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->plaincard1(), output); - } - - // required uint32 plainCard2 = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->plaincard2(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:HandStartMessage.PlainCards) -} - -size_t HandStartMessage_PlainCards::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:HandStartMessage.PlainCards) - size_t total_size = 0; - - if (has_plaincard1()) { - // required uint32 plainCard1 = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard1()); - } - - if (has_plaincard2()) { - // required uint32 plainCard2 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard2()); - } - - return total_size; -} -size_t HandStartMessage_PlainCards::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:HandStartMessage.PlainCards) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 plainCard1 = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard1()); - - // required uint32 plainCard2 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->plaincard2()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:HandStartMessage.PlainCards) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void HandStartMessage_PlainCards::Swap(HandStartMessage_PlainCards* other) { - if (other == this) return; - InternalSwap(other); -} -void HandStartMessage_PlainCards::InternalSwap(HandStartMessage_PlainCards* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(plaincard1_, other->plaincard1_); - swap(plaincard2_, other->plaincard2_); -} - -::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::HasBitSetters { - public: - static void set_has_gameid(HandStartMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static const ::HandStartMessage_PlainCards& plaincards(const HandStartMessage* msg); - static void set_has_plaincards(HandStartMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_encryptedcards(HandStartMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_smallblind(HandStartMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_dealerplayerid(HandStartMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -const ::HandStartMessage_PlainCards& -HandStartMessage::HasBitSetters::plaincards(const HandStartMessage* msg) { - return *msg->plaincards_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HandStartMessage::HandStartMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:HandStartMessage) -} -HandStartMessage::HandStartMessage(const HandStartMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_), - seatstates_(from.seatstates_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - encryptedcards_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_encryptedcards()) { - encryptedcards_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptedcards_); - } - if (from.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() { - ::google::protobuf::internal::InitSCC( - &scc_info_HandStartMessage_pokerth_2eproto.base); - encryptedcards_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&plaincards_, 0, static_cast( - reinterpret_cast(&dealerplayerid_) - - reinterpret_cast(&plaincards_)) + sizeof(dealerplayerid_)); -} - -HandStartMessage::~HandStartMessage() { - // @@protoc_insertion_point(destructor:HandStartMessage) - SharedDtor(); -} - -void HandStartMessage::SharedDtor() { - encryptedcards_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete plaincards_; -} - -void HandStartMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HandStartMessage& HandStartMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HandStartMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void HandStartMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:HandStartMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - 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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HandStartMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional .HandStartMessage.PlainCards plainCards = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::HandStartMessage_PlainCards::_InternalParse; - object = msg->mutable_plaincards(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional bytes encryptedCards = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_encryptedcards(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // required uint32 smallBlind = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_smallblind(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .NetPlayerState seatStates = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) == 40) { - do { - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetPlayerState_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(5, val, msg->mutable_unknown_fields()); - break; - } - msg->add_seatstates(static_cast<::NetPlayerState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 40 && (ptr += 1)); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetEnumValidator(::NetPlayerState_IsValid, msg->mutable_unknown_fields(), 5); - parser_till_end = ::google::protobuf::internal::PackedValidEnumParserLite; - object = msg->mutable_seatstates(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } - // optional uint32 dealerPlayerId = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_dealerplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HandStartMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:HandStartMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_plaincards())); - } else { - goto handle_unusual; - } - break; - } - - // optional bytes encryptedCards = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_encryptedcards())); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 smallBlind = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_smallblind(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &smallblind_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .NetPlayerState seatStates = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumPreserveUnknowns( - input, - 5, - ::NetPlayerState_IsValid, - &unknown_fields_stream, - this->mutable_seatstates()))); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 dealerPlayerId = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - HasBitSetters::set_has_dealerplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &dealerplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:HandStartMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:HandStartMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HandStartMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:HandStartMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, HasBitSetters::plaincards(this), output); - } - - // optional bytes encryptedCards = 3; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 3, this->encryptedcards(), output); - } - - // required uint32 smallBlind = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->smallblind(), output); - } - - // repeated .NetPlayerState seatStates = 5; - for (int i = 0, n = this->seatstates_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->seatstates(i), output); - } - - // optional uint32 dealerPlayerId = 6; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->dealerplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:HandStartMessage) -} - -size_t HandStartMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:HandStartMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_smallblind()) { - // required uint32 smallBlind = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->smallblind()); - } - - return total_size; -} -size_t HandStartMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:HandStartMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000000c) ^ 0x0000000c) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 smallBlind = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->smallblind()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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->seatstates_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->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 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->encryptedcards()); - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *plaincards_); - } - - } - // optional uint32 dealerPlayerId = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->dealerplayerid()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HandStartMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - encryptedcards_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryptedcards_); - } - if (cached_has_bits & 0x00000002u) { - mutable_plaincards()->::HandStartMessage_PlainCards::MergeFrom(from.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 ((_has_bits_[0] & 0x0000000c) != 0x0000000c) return false; - if (has_plaincards()) { - if (!this->plaincards_->IsInitialized()) return false; - } - return true; -} - -void HandStartMessage::Swap(HandStartMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(plaincards_, other->plaincards_); - swap(gameid_, other->gameid_); - swap(smallblind_, other->smallblind_); - swap(dealerplayerid_, other->dealerplayerid_); -} - -::std::string HandStartMessage::GetTypeName() const { - return "HandStartMessage"; -} - - -// =================================================================== - -void PlayersTurnMessage::InitAsDefaultInstance() { -} -class PlayersTurnMessage::HasBitSetters { - public: - static void set_has_gameid(PlayersTurnMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(PlayersTurnMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gamestate(PlayersTurnMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayersTurnMessage::kGameIdFieldNumber; -const int PlayersTurnMessage::kPlayerIdFieldNumber; -const int PlayersTurnMessage::kGameStateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayersTurnMessage::PlayersTurnMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayersTurnMessage) -} -PlayersTurnMessage::PlayersTurnMessage(const PlayersTurnMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void PlayersTurnMessage::SharedDtor() { -} - -void PlayersTurnMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayersTurnMessage& PlayersTurnMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayersTurnMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayersTurnMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayersTurnMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayersTurnMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameState gameState = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameState_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamestate(static_cast<::NetGameState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayersTurnMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayersTurnMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayersTurnMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayersTurnMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayersTurnMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayersTurnMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .NetGameState gameState = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayersTurnMessage) -} - -size_t PlayersTurnMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayersTurnMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_gamestate()) { - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - return total_size; -} -size_t PlayersTurnMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayersTurnMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayersTurnMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void PlayersTurnMessage::Swap(PlayersTurnMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayersTurnMessage::InternalSwap(PlayersTurnMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(gamestate_, other->gamestate_); -} - -::std::string PlayersTurnMessage::GetTypeName() const { - return "PlayersTurnMessage"; -} - - -// =================================================================== - -void MyActionRequestMessage::InitAsDefaultInstance() { -} -class MyActionRequestMessage::HasBitSetters { - public: - static void set_has_gameid(MyActionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_handnum(MyActionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gamestate(MyActionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_myaction(MyActionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_myrelativebet(MyActionRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MyActionRequestMessage::kGameIdFieldNumber; -const int MyActionRequestMessage::kHandNumFieldNumber; -const int MyActionRequestMessage::kGameStateFieldNumber; -const int MyActionRequestMessage::kMyActionFieldNumber; -const int MyActionRequestMessage::kMyRelativeBetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MyActionRequestMessage::MyActionRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:MyActionRequestMessage) -} -MyActionRequestMessage::MyActionRequestMessage(const MyActionRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void MyActionRequestMessage::SharedDtor() { -} - -void MyActionRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MyActionRequestMessage& MyActionRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_MyActionRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void MyActionRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:MyActionRequestMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* MyActionRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 handNum = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_handnum(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameState gameState = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameState_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamestate(static_cast<::NetGameState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetPlayerAction myAction = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetPlayerAction_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(4, val, msg->mutable_unknown_fields()); - break; - } - msg->set_myaction(static_cast<::NetPlayerAction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 myRelativeBet = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_myrelativebet(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool MyActionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:MyActionRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 handNum = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_handnum(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handnum_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required .NetPlayerAction myAction = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(32u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 myRelativeBet = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_myrelativebet(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &myrelativebet_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:MyActionRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:MyActionRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void MyActionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:MyActionRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 handNum = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->handnum(), output); - } - - // required .NetGameState gameState = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - - // required .NetPlayerAction myAction = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->myaction(), output); - } - - // required uint32 myRelativeBet = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->myrelativebet(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:MyActionRequestMessage) -} - -size_t MyActionRequestMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:MyActionRequestMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_handnum()) { - // required uint32 handNum = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - } - - if (has_gamestate()) { - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - if (has_myaction()) { - // required .NetPlayerAction myAction = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myaction()); - } - - if (has_myrelativebet()) { - // required uint32 myRelativeBet = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->myrelativebet()); - } - - return total_size; -} -size_t MyActionRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:MyActionRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 handNum = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handnum()); - - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - - // required .NetPlayerAction myAction = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->myaction()); - - // required uint32 myRelativeBet = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->myrelativebet()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MyActionRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - return true; -} - -void MyActionRequestMessage::Swap(MyActionRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void MyActionRequestMessage::InternalSwap(MyActionRequestMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(handnum_, other->handnum_); - swap(gamestate_, other->gamestate_); - swap(myaction_, other->myaction_); - swap(myrelativebet_, other->myrelativebet_); -} - -::std::string MyActionRequestMessage::GetTypeName() const { - return "MyActionRequestMessage"; -} - - -// =================================================================== - -void YourActionRejectedMessage::InitAsDefaultInstance() { -} -class YourActionRejectedMessage::HasBitSetters { - public: - static void set_has_gameid(YourActionRejectedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_gamestate(YourActionRejectedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_youraction(YourActionRejectedMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_yourrelativebet(YourActionRejectedMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_rejectionreason(YourActionRejectedMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int YourActionRejectedMessage::kGameIdFieldNumber; -const int YourActionRejectedMessage::kGameStateFieldNumber; -const int YourActionRejectedMessage::kYourActionFieldNumber; -const int YourActionRejectedMessage::kYourRelativeBetFieldNumber; -const int YourActionRejectedMessage::kRejectionReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -YourActionRejectedMessage::YourActionRejectedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:YourActionRejectedMessage) -} -YourActionRejectedMessage::YourActionRejectedMessage(const YourActionRejectedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void YourActionRejectedMessage::SharedDtor() { -} - -void YourActionRejectedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_YourActionRejectedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void YourActionRejectedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:YourActionRejectedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* YourActionRejectedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameState gameState = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameState_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamestate(static_cast<::NetGameState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetPlayerAction yourAction = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetPlayerAction_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_youraction(static_cast<::NetPlayerAction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 yourRelativeBet = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_yourrelativebet(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::YourActionRejectedMessage_RejectionReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(5, val, msg->mutable_unknown_fields()); - break; - } - msg->set_rejectionreason(static_cast<::YourActionRejectedMessage_RejectionReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool YourActionRejectedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:YourActionRejectedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameState gameState = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required .NetPlayerAction yourAction = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 yourRelativeBet = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_yourrelativebet(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &yourrelativebet_))); - } else { - goto handle_unusual; - } - break; - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(40u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:YourActionRejectedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:YourActionRejectedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void YourActionRejectedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:YourActionRejectedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required .NetGameState gameState = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->gamestate(), output); - } - - // required .NetPlayerAction yourAction = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->youraction(), output); - } - - // required uint32 yourRelativeBet = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->yourrelativebet(), output); - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->rejectionreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:YourActionRejectedMessage) -} - -size_t YourActionRejectedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:YourActionRejectedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_gamestate()) { - // required .NetGameState gameState = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - if (has_youraction()) { - // required .NetPlayerAction yourAction = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->youraction()); - } - - if (has_yourrelativebet()) { - // required uint32 yourRelativeBet = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourrelativebet()); - } - - if (has_rejectionreason()) { - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->rejectionreason()); - } - - return total_size; -} -size_t YourActionRejectedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:YourActionRejectedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required .NetGameState gameState = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - - // required .NetPlayerAction yourAction = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->youraction()); - - // required uint32 yourRelativeBet = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->yourrelativebet()); - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->rejectionreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void YourActionRejectedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - return true; -} - -void YourActionRejectedMessage::Swap(YourActionRejectedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void YourActionRejectedMessage::InternalSwap(YourActionRejectedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(gamestate_, other->gamestate_); - swap(youraction_, other->youraction_); - swap(yourrelativebet_, other->yourrelativebet_); - swap(rejectionreason_, other->rejectionreason_); -} - -::std::string YourActionRejectedMessage::GetTypeName() const { - return "YourActionRejectedMessage"; -} - - -// =================================================================== - -void PlayersActionDoneMessage::InitAsDefaultInstance() { -} -class PlayersActionDoneMessage::HasBitSetters { - public: - static void set_has_gameid(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_gamestate(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_playeraction(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_totalplayerbet(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_playermoney(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static void set_has_highestset(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000040u; - } - static void set_has_minimumraise(PlayersActionDoneMessage* msg) { - msg->_has_bits_[0] |= 0x00000080u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayersActionDoneMessage::PlayersActionDoneMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayersActionDoneMessage) -} -PlayersActionDoneMessage::PlayersActionDoneMessage(const PlayersActionDoneMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void PlayersActionDoneMessage::SharedDtor() { -} - -void PlayersActionDoneMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayersActionDoneMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayersActionDoneMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayersActionDoneMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayersActionDoneMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetGameState gameState = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetGameState_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_gamestate(static_cast<::NetGameState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .NetPlayerAction playerAction = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::NetPlayerAction_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(4, val, msg->mutable_unknown_fields()); - break; - } - msg->set_playeraction(static_cast<::NetPlayerAction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 totalPlayerBet = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_totalplayerbet(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerMoney = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_playermoney(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 highestSet = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_highestset(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 minimumRaise = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; - msg->set_minimumraise(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayersActionDoneMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayersActionDoneMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required .NetPlayerAction playerAction = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(32u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 totalPlayerBet = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_totalplayerbet(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &totalplayerbet_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - HasBitSetters::set_has_playermoney(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 highestSet = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - HasBitSetters::set_has_highestset(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &highestset_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 minimumRaise = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { - HasBitSetters::set_has_minimumraise(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &minimumraise_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayersActionDoneMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayersActionDoneMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayersActionDoneMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayersActionDoneMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .NetGameState gameState = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->gamestate(), output); - } - - // required .NetPlayerAction playerAction = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->playeraction(), output); - } - - // required uint32 totalPlayerBet = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->totalplayerbet(), output); - } - - // required uint32 playerMoney = 6; - if (cached_has_bits & 0x00000020u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); - } - - // required uint32 highestSet = 7; - if (cached_has_bits & 0x00000040u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->highestset(), output); - } - - // required uint32 minimumRaise = 8; - if (cached_has_bits & 0x00000080u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->minimumraise(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayersActionDoneMessage) -} - -size_t PlayersActionDoneMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayersActionDoneMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_gamestate()) { - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - } - - if (has_playeraction()) { - // required .NetPlayerAction playerAction = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playeraction()); - } - - if (has_totalplayerbet()) { - // required uint32 totalPlayerBet = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->totalplayerbet()); - } - - if (has_playermoney()) { - // required uint32 playerMoney = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - if (has_highestset()) { - // required uint32 highestSet = 7; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->highestset()); - } - - if (has_minimumraise()) { - // required uint32 minimumRaise = 8; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minimumraise()); - } - - return total_size; -} -size_t PlayersActionDoneMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayersActionDoneMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x000000ff) ^ 0x000000ff) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .NetGameState gameState = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); - - // required .NetPlayerAction playerAction = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->playeraction()); - - // required uint32 totalPlayerBet = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->totalplayerbet()); - - // required uint32 playerMoney = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - - // required uint32 highestSet = 7; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->highestset()); - - // required uint32 minimumRaise = 8; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->minimumraise()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayersActionDoneMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x000000ff) != 0x000000ff) return false; - return true; -} - -void PlayersActionDoneMessage::Swap(PlayersActionDoneMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayersActionDoneMessage::InternalSwap(PlayersActionDoneMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(gamestate_, other->gamestate_); - swap(playeraction_, other->playeraction_); - swap(totalplayerbet_, other->totalplayerbet_); - swap(playermoney_, other->playermoney_); - swap(highestset_, other->highestset_); - swap(minimumraise_, other->minimumraise_); -} - -::std::string PlayersActionDoneMessage::GetTypeName() const { - return "PlayersActionDoneMessage"; -} - - -// =================================================================== - -void DealFlopCardsMessage::InitAsDefaultInstance() { -} -class DealFlopCardsMessage::HasBitSetters { - public: - static void set_has_gameid(DealFlopCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_flopcard1(DealFlopCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_flopcard2(DealFlopCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_flopcard3(DealFlopCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DealFlopCardsMessage::kGameIdFieldNumber; -const int DealFlopCardsMessage::kFlopCard1FieldNumber; -const int DealFlopCardsMessage::kFlopCard2FieldNumber; -const int DealFlopCardsMessage::kFlopCard3FieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DealFlopCardsMessage::DealFlopCardsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DealFlopCardsMessage) -} -DealFlopCardsMessage::DealFlopCardsMessage(const DealFlopCardsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void DealFlopCardsMessage::SharedDtor() { -} - -void DealFlopCardsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DealFlopCardsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void DealFlopCardsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:DealFlopCardsMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DealFlopCardsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 flopCard1 = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_flopcard1(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 flopCard2 = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_flopcard2(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 flopCard3 = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_flopcard3(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DealFlopCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:DealFlopCardsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 flopCard1 = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_flopcard1(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard1_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 flopCard2 = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_flopcard2(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard2_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 flopCard3 = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_flopcard3(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &flopcard3_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DealFlopCardsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DealFlopCardsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DealFlopCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealFlopCardsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 flopCard1 = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->flopcard1(), output); - } - - // required uint32 flopCard2 = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->flopcard2(), output); - } - - // required uint32 flopCard3 = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flopcard3(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DealFlopCardsMessage) -} - -size_t DealFlopCardsMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealFlopCardsMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_flopcard1()) { - // required uint32 flopCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard1()); - } - - if (has_flopcard2()) { - // required uint32 flopCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard2()); - } - - if (has_flopcard3()) { - // required uint32 flopCard3 = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard3()); - } - - return total_size; -} -size_t DealFlopCardsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DealFlopCardsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 flopCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard1()); - - // required uint32 flopCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard2()); - - // required uint32 flopCard3 = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->flopcard3()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DealFlopCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - return true; -} - -void DealFlopCardsMessage::Swap(DealFlopCardsMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void DealFlopCardsMessage::InternalSwap(DealFlopCardsMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(flopcard1_, other->flopcard1_); - swap(flopcard2_, other->flopcard2_); - swap(flopcard3_, other->flopcard3_); -} - -::std::string DealFlopCardsMessage::GetTypeName() const { - return "DealFlopCardsMessage"; -} - - -// =================================================================== - -void DealTurnCardMessage::InitAsDefaultInstance() { -} -class DealTurnCardMessage::HasBitSetters { - public: - static void set_has_gameid(DealTurnCardMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_turncard(DealTurnCardMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DealTurnCardMessage::kGameIdFieldNumber; -const int DealTurnCardMessage::kTurnCardFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DealTurnCardMessage::DealTurnCardMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DealTurnCardMessage) -} -DealTurnCardMessage::DealTurnCardMessage(const DealTurnCardMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void DealTurnCardMessage::SharedDtor() { -} - -void DealTurnCardMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DealTurnCardMessage& DealTurnCardMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DealTurnCardMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void DealTurnCardMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:DealTurnCardMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DealTurnCardMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 turnCard = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_turncard(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DealTurnCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:DealTurnCardMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 turnCard = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_turncard(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &turncard_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DealTurnCardMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DealTurnCardMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DealTurnCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealTurnCardMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 turnCard = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->turncard(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DealTurnCardMessage) -} - -size_t DealTurnCardMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealTurnCardMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_turncard()) { - // required uint32 turnCard = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->turncard()); - } - - return total_size; -} -size_t DealTurnCardMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DealTurnCardMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 turnCard = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->turncard()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DealTurnCardMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void DealTurnCardMessage::Swap(DealTurnCardMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void DealTurnCardMessage::InternalSwap(DealTurnCardMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(turncard_, other->turncard_); -} - -::std::string DealTurnCardMessage::GetTypeName() const { - return "DealTurnCardMessage"; -} - - -// =================================================================== - -void DealRiverCardMessage::InitAsDefaultInstance() { -} -class DealRiverCardMessage::HasBitSetters { - public: - static void set_has_gameid(DealRiverCardMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_rivercard(DealRiverCardMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DealRiverCardMessage::kGameIdFieldNumber; -const int DealRiverCardMessage::kRiverCardFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DealRiverCardMessage::DealRiverCardMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DealRiverCardMessage) -} -DealRiverCardMessage::DealRiverCardMessage(const DealRiverCardMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void DealRiverCardMessage::SharedDtor() { -} - -void DealRiverCardMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DealRiverCardMessage& DealRiverCardMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DealRiverCardMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void DealRiverCardMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:DealRiverCardMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DealRiverCardMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 riverCard = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_rivercard(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DealRiverCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:DealRiverCardMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 riverCard = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_rivercard(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &rivercard_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DealRiverCardMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DealRiverCardMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DealRiverCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealRiverCardMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 riverCard = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rivercard(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DealRiverCardMessage) -} - -size_t DealRiverCardMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:DealRiverCardMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_rivercard()) { - // required uint32 riverCard = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rivercard()); - } - - return total_size; -} -size_t DealRiverCardMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DealRiverCardMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 riverCard = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->rivercard()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DealRiverCardMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void DealRiverCardMessage::Swap(DealRiverCardMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void DealRiverCardMessage::InternalSwap(DealRiverCardMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(rivercard_, other->rivercard_); -} - -::std::string DealRiverCardMessage::GetTypeName() const { - return "DealRiverCardMessage"; -} - - -// =================================================================== - -void AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance() { -} -class AllInShowCardsMessage_PlayerAllIn::HasBitSetters { - public: - static void set_has_playerid(AllInShowCardsMessage_PlayerAllIn* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_allincard1(AllInShowCardsMessage_PlayerAllIn* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_allincard2(AllInShowCardsMessage_PlayerAllIn* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AllInShowCardsMessage_PlayerAllIn::kPlayerIdFieldNumber; -const int AllInShowCardsMessage_PlayerAllIn::kAllInCard1FieldNumber; -const int AllInShowCardsMessage_PlayerAllIn::kAllInCard2FieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AllInShowCardsMessage.PlayerAllIn) -} -AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AllInShowCardsMessage_PlayerAllIn::SharedDtor() { -} - -void AllInShowCardsMessage_PlayerAllIn::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage_PlayerAllIn::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AllInShowCardsMessage_PlayerAllIn::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 playerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 allInCard1 = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_allincard1(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 allInCard2 = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_allincard2(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AllInShowCardsMessage_PlayerAllIn::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AllInShowCardsMessage.PlayerAllIn) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 allInCard1 = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_allincard1(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allincard1_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 allInCard2 = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_allincard2(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &allincard2_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AllInShowCardsMessage.PlayerAllIn) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AllInShowCardsMessage.PlayerAllIn) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AllInShowCardsMessage_PlayerAllIn::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AllInShowCardsMessage.PlayerAllIn) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 playerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); - } - - // required uint32 allInCard1 = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->allincard1(), output); - } - - // required uint32 allInCard2 = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->allincard2(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AllInShowCardsMessage.PlayerAllIn) -} - -size_t AllInShowCardsMessage_PlayerAllIn::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AllInShowCardsMessage.PlayerAllIn) - size_t total_size = 0; - - if (has_playerid()) { - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_allincard1()) { - // required uint32 allInCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard1()); - } - - if (has_allincard2()) { - // required uint32 allInCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard2()); - } - - return total_size; -} -size_t AllInShowCardsMessage_PlayerAllIn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AllInShowCardsMessage.PlayerAllIn) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 playerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required uint32 allInCard1 = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard1()); - - // required uint32 allInCard2 = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->allincard2()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:AllInShowCardsMessage.PlayerAllIn) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void AllInShowCardsMessage_PlayerAllIn::Swap(AllInShowCardsMessage_PlayerAllIn* other) { - if (other == this) return; - InternalSwap(other); -} -void AllInShowCardsMessage_PlayerAllIn::InternalSwap(AllInShowCardsMessage_PlayerAllIn* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(playerid_, other->playerid_); - swap(allincard1_, other->allincard1_); - swap(allincard2_, other->allincard2_); -} - -::std::string AllInShowCardsMessage_PlayerAllIn::GetTypeName() const { - return "AllInShowCardsMessage.PlayerAllIn"; -} - - -// =================================================================== - -void AllInShowCardsMessage::InitAsDefaultInstance() { -} -class AllInShowCardsMessage::HasBitSetters { - public: - static void set_has_gameid(AllInShowCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AllInShowCardsMessage::kGameIdFieldNumber; -const int AllInShowCardsMessage::kPlayersAllInFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AllInShowCardsMessage::AllInShowCardsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AllInShowCardsMessage) -} -AllInShowCardsMessage::AllInShowCardsMessage(const AllInShowCardsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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() { - ::google::protobuf::internal::InitSCC( - &scc_info_AllInShowCardsMessage_pokerth_2eproto.base); - gameid_ = 0u; -} - -AllInShowCardsMessage::~AllInShowCardsMessage() { - // @@protoc_insertion_point(destructor:AllInShowCardsMessage) - SharedDtor(); -} - -void AllInShowCardsMessage::SharedDtor() { -} - -void AllInShowCardsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AllInShowCardsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AllInShowCardsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AllInShowCardsMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AllInShowCardsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AllInShowCardsMessage_PlayerAllIn::_InternalParse; - object = msg->add_playersallin(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AllInShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AllInShowCardsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_playersallin())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AllInShowCardsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AllInShowCardsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AllInShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AllInShowCardsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - for (unsigned int i = 0, - n = static_cast(this->playersallin_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, - this->playersallin(static_cast(i)), - output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AllInShowCardsMessage) -} - -size_t AllInShowCardsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AllInShowCardsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - { - unsigned int count = static_cast(this->playersallin_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->playersallin(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AllInShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - playersallin_.MergeFrom(from.playersallin_); - if (from.has_gameid()) { - set_gameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->playersallin())) return false; - return true; -} - -void AllInShowCardsMessage::Swap(AllInShowCardsMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AllInShowCardsMessage::InternalSwap(AllInShowCardsMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - CastToBase(&playersallin_)->InternalSwap(CastToBase(&other->playersallin_)); - swap(gameid_, other->gameid_); -} - -::std::string AllInShowCardsMessage::GetTypeName() const { - return "AllInShowCardsMessage"; -} - - -// =================================================================== - -void EndOfHandShowCardsMessage::InitAsDefaultInstance() { -} -class EndOfHandShowCardsMessage::HasBitSetters { - public: - static void set_has_gameid(EndOfHandShowCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EndOfHandShowCardsMessage::kGameIdFieldNumber; -const int EndOfHandShowCardsMessage::kPlayerResultsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EndOfHandShowCardsMessage::EndOfHandShowCardsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:EndOfHandShowCardsMessage) -} -EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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() { - ::google::protobuf::internal::InitSCC( - &scc_info_EndOfHandShowCardsMessage_pokerth_2eproto.base); - gameid_ = 0u; -} - -EndOfHandShowCardsMessage::~EndOfHandShowCardsMessage() { - // @@protoc_insertion_point(destructor:EndOfHandShowCardsMessage) - SharedDtor(); -} - -void EndOfHandShowCardsMessage::SharedDtor() { -} - -void EndOfHandShowCardsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EndOfHandShowCardsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void EndOfHandShowCardsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:EndOfHandShowCardsMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EndOfHandShowCardsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .PlayerResult playerResults = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerResult::_InternalParse; - object = msg->add_playerresults(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EndOfHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:EndOfHandShowCardsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .PlayerResult playerResults = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_playerresults())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:EndOfHandShowCardsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:EndOfHandShowCardsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EndOfHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfHandShowCardsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // repeated .PlayerResult playerResults = 2; - for (unsigned int i = 0, - n = static_cast(this->playerresults_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, - this->playerresults(static_cast(i)), - output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:EndOfHandShowCardsMessage) -} - -size_t EndOfHandShowCardsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:EndOfHandShowCardsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .PlayerResult playerResults = 2; - { - unsigned int count = static_cast(this->playerresults_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->playerresults(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EndOfHandShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - playerresults_.MergeFrom(from.playerresults_); - if (from.has_gameid()) { - set_gameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - if (!::google::protobuf::internal::AllAreInitialized(this->playerresults())) return false; - return true; -} - -void EndOfHandShowCardsMessage::Swap(EndOfHandShowCardsMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void EndOfHandShowCardsMessage::InternalSwap(EndOfHandShowCardsMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - CastToBase(&playerresults_)->InternalSwap(CastToBase(&other->playerresults_)); - swap(gameid_, other->gameid_); -} - -::std::string EndOfHandShowCardsMessage::GetTypeName() const { - return "EndOfHandShowCardsMessage"; -} - - -// =================================================================== - -void EndOfHandHideCardsMessage::InitAsDefaultInstance() { -} -class EndOfHandHideCardsMessage::HasBitSetters { - public: - static void set_has_gameid(EndOfHandHideCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(EndOfHandHideCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_moneywon(EndOfHandHideCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_playermoney(EndOfHandHideCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EndOfHandHideCardsMessage::kGameIdFieldNumber; -const int EndOfHandHideCardsMessage::kPlayerIdFieldNumber; -const int EndOfHandHideCardsMessage::kMoneyWonFieldNumber; -const int EndOfHandHideCardsMessage::kPlayerMoneyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EndOfHandHideCardsMessage::EndOfHandHideCardsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:EndOfHandHideCardsMessage) -} -EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void EndOfHandHideCardsMessage::SharedDtor() { -} - -void EndOfHandHideCardsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EndOfHandHideCardsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void EndOfHandHideCardsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:EndOfHandHideCardsMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EndOfHandHideCardsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 moneyWon = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_moneywon(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerMoney = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_playermoney(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EndOfHandHideCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:EndOfHandHideCardsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 moneyWon = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_moneywon(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &moneywon_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerMoney = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_playermoney(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playermoney_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:EndOfHandHideCardsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:EndOfHandHideCardsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EndOfHandHideCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfHandHideCardsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required uint32 moneyWon = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->moneywon(), output); - } - - // required uint32 playerMoney = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playermoney(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:EndOfHandHideCardsMessage) -} - -size_t EndOfHandHideCardsMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndOfHandHideCardsMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_moneywon()) { - // required uint32 moneyWon = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - } - - if (has_playermoney()) { - // required uint32 playerMoney = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - return total_size; -} -size_t EndOfHandHideCardsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:EndOfHandHideCardsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required uint32 moneyWon = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - - // required uint32 playerMoney = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EndOfHandHideCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - return true; -} - -void EndOfHandHideCardsMessage::Swap(EndOfHandHideCardsMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void EndOfHandHideCardsMessage::InternalSwap(EndOfHandHideCardsMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(moneywon_, other->moneywon_); - swap(playermoney_, other->playermoney_); -} - -::std::string EndOfHandHideCardsMessage::GetTypeName() const { - return "EndOfHandHideCardsMessage"; -} - - -// =================================================================== - -void ShowMyCardsRequestMessage::InitAsDefaultInstance() { -} -class ShowMyCardsRequestMessage::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ShowMyCardsRequestMessage::ShowMyCardsRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ShowMyCardsRequestMessage) -} -ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:ShowMyCardsRequestMessage) -} - -void ShowMyCardsRequestMessage::SharedCtor() { -} - -ShowMyCardsRequestMessage::~ShowMyCardsRequestMessage() { - // @@protoc_insertion_point(destructor:ShowMyCardsRequestMessage) - SharedDtor(); -} - -void ShowMyCardsRequestMessage::SharedDtor() { -} - -void ShowMyCardsRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ShowMyCardsRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ShowMyCardsRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ShowMyCardsRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ShowMyCardsRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - default: { - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ShowMyCardsRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ShowMyCardsRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - } -success: - // @@protoc_insertion_point(parse_success:ShowMyCardsRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ShowMyCardsRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ShowMyCardsRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ShowMyCardsRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ShowMyCardsRequestMessage) -} - -size_t ShowMyCardsRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ShowMyCardsRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ShowMyCardsRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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::Swap(ShowMyCardsRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void ShowMyCardsRequestMessage::InternalSwap(ShowMyCardsRequestMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); -} - -::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::HasBitSetters { - public: - static const ::PlayerResult& playerresult(const AfterHandShowCardsMessage* msg); - static void set_has_playerresult(AfterHandShowCardsMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -const ::PlayerResult& -AfterHandShowCardsMessage::HasBitSetters::playerresult(const AfterHandShowCardsMessage* msg) { - return *msg->playerresult_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AfterHandShowCardsMessage::kPlayerResultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AfterHandShowCardsMessage::AfterHandShowCardsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AfterHandShowCardsMessage) -} -AfterHandShowCardsMessage::AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_playerresult()) { - playerresult_ = new ::PlayerResult(*from.playerresult_); - } else { - playerresult_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:AfterHandShowCardsMessage) -} - -void AfterHandShowCardsMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AfterHandShowCardsMessage_pokerth_2eproto.base); - playerresult_ = nullptr; -} - -AfterHandShowCardsMessage::~AfterHandShowCardsMessage() { - // @@protoc_insertion_point(destructor:AfterHandShowCardsMessage) - SharedDtor(); -} - -void AfterHandShowCardsMessage::SharedDtor() { - if (this != internal_default_instance()) delete playerresult_; -} - -void AfterHandShowCardsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AfterHandShowCardsMessage& AfterHandShowCardsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AfterHandShowCardsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AfterHandShowCardsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AfterHandShowCardsMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AfterHandShowCardsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .PlayerResult playerResult = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerResult::_InternalParse; - object = msg->mutable_playerresult(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AfterHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AfterHandShowCardsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .PlayerResult playerResult = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_playerresult())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AfterHandShowCardsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AfterHandShowCardsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AfterHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AfterHandShowCardsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required .PlayerResult playerResult = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, HasBitSetters::playerresult(this), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AfterHandShowCardsMessage) -} - -size_t AfterHandShowCardsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AfterHandShowCardsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .PlayerResult playerResult = 1; - if (has_playerresult()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playerresult_); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AfterHandShowCardsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_playerresult()) { - mutable_playerresult()->::PlayerResult::MergeFrom(from.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 ((_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) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_gameid(EndOfGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_winnerplayerid(EndOfGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EndOfGameMessage::kGameIdFieldNumber; -const int EndOfGameMessage::kWinnerPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EndOfGameMessage::EndOfGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:EndOfGameMessage) -} -EndOfGameMessage::EndOfGameMessage(const EndOfGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void EndOfGameMessage::SharedDtor() { -} - -void EndOfGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EndOfGameMessage& EndOfGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EndOfGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void EndOfGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:EndOfGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EndOfGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 winnerPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_winnerplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EndOfGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:EndOfGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 winnerPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_winnerplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &winnerplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:EndOfGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:EndOfGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EndOfGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 winnerPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->winnerplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:EndOfGameMessage) -} - -size_t EndOfGameMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndOfGameMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_winnerplayerid()) { - // required uint32 winnerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->winnerplayerid()); - } - - return total_size; -} -size_t EndOfGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:EndOfGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 winnerPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->winnerplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EndOfGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void EndOfGameMessage::Swap(EndOfGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void EndOfGameMessage::InternalSwap(EndOfGameMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(winnerplayerid_, other->winnerplayerid_); -} - -::std::string EndOfGameMessage::GetTypeName() const { - return "EndOfGameMessage"; -} - - -// =================================================================== - -void PlayerIdChangedMessage::InitAsDefaultInstance() { -} -class PlayerIdChangedMessage::HasBitSetters { - public: - static void set_has_oldplayerid(PlayerIdChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_newplayerid(PlayerIdChangedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PlayerIdChangedMessage::kOldPlayerIdFieldNumber; -const int PlayerIdChangedMessage::kNewPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PlayerIdChangedMessage::PlayerIdChangedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerIdChangedMessage) -} -PlayerIdChangedMessage::PlayerIdChangedMessage(const PlayerIdChangedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void PlayerIdChangedMessage::SharedDtor() { -} - -void PlayerIdChangedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PlayerIdChangedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void PlayerIdChangedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PlayerIdChangedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PlayerIdChangedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 oldPlayerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_oldplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 newPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_newplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PlayerIdChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PlayerIdChangedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 oldPlayerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_oldplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &oldplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 newPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_newplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &newplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:PlayerIdChangedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:PlayerIdChangedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PlayerIdChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerIdChangedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 oldPlayerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->oldplayerid(), output); - } - - // required uint32 newPlayerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PlayerIdChangedMessage) -} - -size_t PlayerIdChangedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:PlayerIdChangedMessage) - size_t total_size = 0; - - if (has_oldplayerid()) { - // required uint32 oldPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->oldplayerid()); - } - - if (has_newplayerid()) { - // required uint32 newPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newplayerid()); - } - - return total_size; -} -size_t PlayerIdChangedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PlayerIdChangedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 oldPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->oldplayerid()); - - // required uint32 newPlayerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->newplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PlayerIdChangedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void PlayerIdChangedMessage::Swap(PlayerIdChangedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void PlayerIdChangedMessage::InternalSwap(PlayerIdChangedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(oldplayerid_, other->oldplayerid_); - swap(newplayerid_, other->newplayerid_); -} - -::std::string PlayerIdChangedMessage::GetTypeName() const { - return "PlayerIdChangedMessage"; -} - - -// =================================================================== - -void AskKickPlayerMessage::InitAsDefaultInstance() { -} -class AskKickPlayerMessage::HasBitSetters { - public: - static void set_has_gameid(AskKickPlayerMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(AskKickPlayerMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AskKickPlayerMessage::kGameIdFieldNumber; -const int AskKickPlayerMessage::kPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AskKickPlayerMessage::AskKickPlayerMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AskKickPlayerMessage) -} -AskKickPlayerMessage::AskKickPlayerMessage(const AskKickPlayerMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AskKickPlayerMessage::SharedDtor() { -} - -void AskKickPlayerMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AskKickPlayerMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AskKickPlayerMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AskKickPlayerMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AskKickPlayerMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AskKickPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AskKickPlayerMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AskKickPlayerMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AskKickPlayerMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AskKickPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AskKickPlayerMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AskKickPlayerMessage) -} - -size_t AskKickPlayerMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AskKickPlayerMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - return total_size; -} -size_t AskKickPlayerMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AskKickPlayerMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AskKickPlayerMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AskKickPlayerMessage::Swap(AskKickPlayerMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AskKickPlayerMessage::InternalSwap(AskKickPlayerMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); -} - -::std::string AskKickPlayerMessage::GetTypeName() const { - return "AskKickPlayerMessage"; -} - - -// =================================================================== - -void AskKickDeniedMessage::InitAsDefaultInstance() { -} -class AskKickDeniedMessage::HasBitSetters { - public: - static void set_has_gameid(AskKickDeniedMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_playerid(AskKickDeniedMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_kickdeniedreason(AskKickDeniedMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AskKickDeniedMessage::kGameIdFieldNumber; -const int AskKickDeniedMessage::kPlayerIdFieldNumber; -const int AskKickDeniedMessage::kKickDeniedReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AskKickDeniedMessage::AskKickDeniedMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AskKickDeniedMessage) -} -AskKickDeniedMessage::AskKickDeniedMessage(const AskKickDeniedMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AskKickDeniedMessage::SharedDtor() { -} - -void AskKickDeniedMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AskKickDeniedMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AskKickDeniedMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AskKickDeniedMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AskKickDeniedMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::AskKickDeniedMessage_KickDeniedReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_kickdeniedreason(static_cast<::AskKickDeniedMessage_KickDeniedReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AskKickDeniedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AskKickDeniedMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AskKickDeniedMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AskKickDeniedMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AskKickDeniedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AskKickDeniedMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 playerId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->kickdeniedreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AskKickDeniedMessage) -} - -size_t AskKickDeniedMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AskKickDeniedMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_playerid()) { - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - if (has_kickdeniedreason()) { - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kickdeniedreason()); - } - - return total_size; -} -size_t AskKickDeniedMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AskKickDeniedMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 playerId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kickdeniedreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AskKickDeniedMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void AskKickDeniedMessage::Swap(AskKickDeniedMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AskKickDeniedMessage::InternalSwap(AskKickDeniedMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(kickdeniedreason_, other->kickdeniedreason_); -} - -::std::string AskKickDeniedMessage::GetTypeName() const { - return "AskKickDeniedMessage"; -} - - -// =================================================================== - -void StartKickPetitionMessage::InitAsDefaultInstance() { -} -class StartKickPetitionMessage::HasBitSetters { - public: - static void set_has_gameid(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_petitionid(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_proposingplayerid(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_kickplayerid(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_kicktimeoutsec(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_numvotesneededtokick(StartKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StartKickPetitionMessage::StartKickPetitionMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:StartKickPetitionMessage) -} -StartKickPetitionMessage::StartKickPetitionMessage(const StartKickPetitionMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void StartKickPetitionMessage::SharedDtor() { -} - -void StartKickPetitionMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StartKickPetitionMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void StartKickPetitionMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:StartKickPetitionMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StartKickPetitionMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 petitionId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_petitionid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 proposingPlayerId = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_proposingplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 kickPlayerId = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_kickplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 kickTimeoutSec = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_kicktimeoutsec(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesNeededToKick = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_numvotesneededtokick(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StartKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:StartKickPetitionMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_petitionid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 proposingPlayerId = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_proposingplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &proposingplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 kickPlayerId = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_kickplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kickplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 kickTimeoutSec = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_kicktimeoutsec(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &kicktimeoutsec_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesNeededToKick = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - HasBitSetters::set_has_numvotesneededtokick(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesneededtokick_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:StartKickPetitionMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:StartKickPetitionMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StartKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartKickPetitionMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 proposingPlayerId = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->proposingplayerid(), output); - } - - // required uint32 kickPlayerId = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->kickplayerid(), output); - } - - // required uint32 kickTimeoutSec = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kicktimeoutsec(), output); - } - - // required uint32 numVotesNeededToKick = 6; - if (cached_has_bits & 0x00000020u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->numvotesneededtokick(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:StartKickPetitionMessage) -} - -size_t StartKickPetitionMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StartKickPetitionMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_petitionid()) { - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - if (has_proposingplayerid()) { - // required uint32 proposingPlayerId = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposingplayerid()); - } - - if (has_kickplayerid()) { - // required uint32 kickPlayerId = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kickplayerid()); - } - - if (has_kicktimeoutsec()) { - // required uint32 kickTimeoutSec = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kicktimeoutsec()); - } - - if (has_numvotesneededtokick()) { - // required uint32 numVotesNeededToKick = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - } - - return total_size; -} -size_t StartKickPetitionMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:StartKickPetitionMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - - // required uint32 proposingPlayerId = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->proposingplayerid()); - - // required uint32 kickPlayerId = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kickplayerid()); - - // required uint32 kickTimeoutSec = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->kicktimeoutsec()); - - // required uint32 numVotesNeededToKick = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StartKickPetitionMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; - return true; -} - -void StartKickPetitionMessage::Swap(StartKickPetitionMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void StartKickPetitionMessage::InternalSwap(StartKickPetitionMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(petitionid_, other->petitionid_); - swap(proposingplayerid_, other->proposingplayerid_); - swap(kickplayerid_, other->kickplayerid_); - swap(kicktimeoutsec_, other->kicktimeoutsec_); - swap(numvotesneededtokick_, other->numvotesneededtokick_); -} - -::std::string StartKickPetitionMessage::GetTypeName() const { - return "StartKickPetitionMessage"; -} - - -// =================================================================== - -void VoteKickRequestMessage::InitAsDefaultInstance() { -} -class VoteKickRequestMessage::HasBitSetters { - public: - static void set_has_gameid(VoteKickRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_petitionid(VoteKickRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_votekick(VoteKickRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VoteKickRequestMessage::kGameIdFieldNumber; -const int VoteKickRequestMessage::kPetitionIdFieldNumber; -const int VoteKickRequestMessage::kVoteKickFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VoteKickRequestMessage::VoteKickRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:VoteKickRequestMessage) -} -VoteKickRequestMessage::VoteKickRequestMessage(const VoteKickRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void VoteKickRequestMessage::SharedDtor() { -} - -void VoteKickRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VoteKickRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void VoteKickRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:VoteKickRequestMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VoteKickRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 petitionId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_petitionid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bool voteKick = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_votekick(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VoteKickRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:VoteKickRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_petitionid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bool voteKick = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_votekick(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &votekick_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VoteKickRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VoteKickRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VoteKickRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VoteKickRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required bool voteKick = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->votekick(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:VoteKickRequestMessage) -} - -size_t VoteKickRequestMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:VoteKickRequestMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_petitionid()) { - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - if (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; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - - // required bool voteKick = 3; - total_size += 1 + 1; - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VoteKickRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void VoteKickRequestMessage::Swap(VoteKickRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void VoteKickRequestMessage::InternalSwap(VoteKickRequestMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(petitionid_, other->petitionid_); - swap(votekick_, other->votekick_); -} - -::std::string VoteKickRequestMessage::GetTypeName() const { - return "VoteKickRequestMessage"; -} - - -// =================================================================== - -void VoteKickReplyMessage::InitAsDefaultInstance() { -} -class VoteKickReplyMessage::HasBitSetters { - public: - static void set_has_gameid(VoteKickReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_petitionid(VoteKickReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_votekickreplytype(VoteKickReplyMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VoteKickReplyMessage::kGameIdFieldNumber; -const int VoteKickReplyMessage::kPetitionIdFieldNumber; -const int VoteKickReplyMessage::kVoteKickReplyTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VoteKickReplyMessage::VoteKickReplyMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:VoteKickReplyMessage) -} -VoteKickReplyMessage::VoteKickReplyMessage(const VoteKickReplyMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void VoteKickReplyMessage::SharedDtor() { -} - -void VoteKickReplyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VoteKickReplyMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void VoteKickReplyMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:VoteKickReplyMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VoteKickReplyMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 petitionId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_petitionid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::VoteKickReplyMessage_VoteKickReplyType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_votekickreplytype(static_cast<::VoteKickReplyMessage_VoteKickReplyType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VoteKickReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:VoteKickReplyMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_petitionid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:VoteKickReplyMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:VoteKickReplyMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VoteKickReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VoteKickReplyMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->votekickreplytype(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:VoteKickReplyMessage) -} - -size_t VoteKickReplyMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:VoteKickReplyMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_petitionid()) { - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - if (has_votekickreplytype()) { - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->votekickreplytype()); - } - - return total_size; -} -size_t VoteKickReplyMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:VoteKickReplyMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->votekickreplytype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VoteKickReplyMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - return true; -} - -void VoteKickReplyMessage::Swap(VoteKickReplyMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void VoteKickReplyMessage::InternalSwap(VoteKickReplyMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(petitionid_, other->petitionid_); - swap(votekickreplytype_, other->votekickreplytype_); -} - -::std::string VoteKickReplyMessage::GetTypeName() const { - return "VoteKickReplyMessage"; -} - - -// =================================================================== - -void KickPetitionUpdateMessage::InitAsDefaultInstance() { -} -class KickPetitionUpdateMessage::HasBitSetters { - public: - static void set_has_gameid(KickPetitionUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_petitionid(KickPetitionUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_numvotesagainstkicking(KickPetitionUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_numvotesinfavourofkicking(KickPetitionUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_numvotesneededtokick(KickPetitionUpdateMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KickPetitionUpdateMessage::kGameIdFieldNumber; -const int KickPetitionUpdateMessage::kPetitionIdFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesAgainstKickingFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesInFavourOfKickingFieldNumber; -const int KickPetitionUpdateMessage::kNumVotesNeededToKickFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -KickPetitionUpdateMessage::KickPetitionUpdateMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:KickPetitionUpdateMessage) -} -KickPetitionUpdateMessage::KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void KickPetitionUpdateMessage::SharedDtor() { -} - -void KickPetitionUpdateMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_KickPetitionUpdateMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void KickPetitionUpdateMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:KickPetitionUpdateMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* KickPetitionUpdateMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 petitionId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_petitionid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_numvotesagainstkicking(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_numvotesinfavourofkicking(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesNeededToKick = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_numvotesneededtokick(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool KickPetitionUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:KickPetitionUpdateMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_petitionid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_numvotesagainstkicking(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesagainstkicking_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_numvotesinfavourofkicking(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesinfavourofkicking_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesNeededToKick = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_numvotesneededtokick(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesneededtokick_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:KickPetitionUpdateMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:KickPetitionUpdateMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void KickPetitionUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:KickPetitionUpdateMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 numVotesAgainstKicking = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); - } - - // required uint32 numVotesNeededToKick = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numvotesneededtokick(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:KickPetitionUpdateMessage) -} - -size_t KickPetitionUpdateMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:KickPetitionUpdateMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_petitionid()) { - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - if (has_numvotesagainstkicking()) { - // required uint32 numVotesAgainstKicking = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - } - - if (has_numvotesinfavourofkicking()) { - // required uint32 numVotesInFavourOfKicking = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - } - - if (has_numvotesneededtokick()) { - // required uint32 numVotesNeededToKick = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - } - - return total_size; -} -size_t KickPetitionUpdateMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:KickPetitionUpdateMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000001f) ^ 0x0000001f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - - // required uint32 numVotesAgainstKicking = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - - // required uint32 numVotesInFavourOfKicking = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - - // required uint32 numVotesNeededToKick = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesneededtokick()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KickPetitionUpdateMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; - return true; -} - -void KickPetitionUpdateMessage::Swap(KickPetitionUpdateMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void KickPetitionUpdateMessage::InternalSwap(KickPetitionUpdateMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(petitionid_, other->petitionid_); - swap(numvotesagainstkicking_, other->numvotesagainstkicking_); - swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); - swap(numvotesneededtokick_, other->numvotesneededtokick_); -} - -::std::string KickPetitionUpdateMessage::GetTypeName() const { - return "KickPetitionUpdateMessage"; -} - - -// =================================================================== - -void EndKickPetitionMessage::InitAsDefaultInstance() { -} -class EndKickPetitionMessage::HasBitSetters { - public: - static void set_has_gameid(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_petitionid(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_numvotesagainstkicking(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_numvotesinfavourofkicking(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_resultplayerkicked(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static void set_has_petitionendreason(EndKickPetitionMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -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 // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EndKickPetitionMessage::EndKickPetitionMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:EndKickPetitionMessage) -} -EndKickPetitionMessage::EndKickPetitionMessage(const EndKickPetitionMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void EndKickPetitionMessage::SharedDtor() { -} - -void EndKickPetitionMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EndKickPetitionMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void EndKickPetitionMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:EndKickPetitionMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EndKickPetitionMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 petitionId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_petitionid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_numvotesagainstkicking(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_numvotesinfavourofkicking(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 resultPlayerKicked = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_resultplayerkicked(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::EndKickPetitionMessage_PetitionEndReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(6, val, msg->mutable_unknown_fields()); - break; - } - msg->set_petitionendreason(static_cast<::EndKickPetitionMessage_PetitionEndReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EndKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:EndKickPetitionMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_petitionid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &petitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - HasBitSetters::set_has_numvotesagainstkicking(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesagainstkicking_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - HasBitSetters::set_has_numvotesinfavourofkicking(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &numvotesinfavourofkicking_))); - } else { - goto handle_unusual; - } - break; - } - - // required uint32 resultPlayerKicked = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - HasBitSetters::set_has_resultplayerkicked(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &resultplayerkicked_))); - } else { - goto handle_unusual; - } - break; - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(48u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:EndKickPetitionMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:EndKickPetitionMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EndKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndKickPetitionMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 gameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // required uint32 petitionId = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); - } - - // required uint32 numVotesAgainstKicking = 3; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); - } - - // required uint32 numVotesInFavourOfKicking = 4; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); - } - - // required uint32 resultPlayerKicked = 5; - if (cached_has_bits & 0x00000010u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->resultplayerkicked(), output); - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - if (cached_has_bits & 0x00000020u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->petitionendreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:EndKickPetitionMessage) -} - -size_t EndKickPetitionMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:EndKickPetitionMessage) - size_t total_size = 0; - - if (has_gameid()) { - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - if (has_petitionid()) { - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - } - - if (has_numvotesagainstkicking()) { - // required uint32 numVotesAgainstKicking = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - } - - if (has_numvotesinfavourofkicking()) { - // required uint32 numVotesInFavourOfKicking = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - } - - if (has_resultplayerkicked()) { - // required uint32 resultPlayerKicked = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultplayerkicked()); - } - - if (has_petitionendreason()) { - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->petitionendreason()); - } - - return total_size; -} -size_t EndKickPetitionMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:EndKickPetitionMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x0000003f) ^ 0x0000003f) == 0) { // All required fields are present. - // required uint32 gameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - - // required uint32 petitionId = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->petitionid()); - - // required uint32 numVotesAgainstKicking = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesagainstkicking()); - - // required uint32 numVotesInFavourOfKicking = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->numvotesinfavourofkicking()); - - // required uint32 resultPlayerKicked = 5; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultplayerkicked()); - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->petitionendreason()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EndKickPetitionMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; - return true; -} - -void EndKickPetitionMessage::Swap(EndKickPetitionMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void EndKickPetitionMessage::InternalSwap(EndKickPetitionMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(gameid_, other->gameid_); - swap(petitionid_, other->petitionid_); - swap(numvotesagainstkicking_, other->numvotesagainstkicking_); - swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); - swap(resultplayerkicked_, other->resultplayerkicked_); - swap(petitionendreason_, other->petitionendreason_); -} - -::std::string EndKickPetitionMessage::GetTypeName() const { - return "EndKickPetitionMessage"; -} - - -// =================================================================== - -void StatisticsMessage_StatisticsData::InitAsDefaultInstance() { -} -class StatisticsMessage_StatisticsData::HasBitSetters { - public: - static void set_has_statisticstype(StatisticsMessage_StatisticsData* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_statisticsvalue(StatisticsMessage_StatisticsData* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StatisticsMessage_StatisticsData::kStatisticsTypeFieldNumber; -const int StatisticsMessage_StatisticsData::kStatisticsValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:StatisticsMessage.StatisticsData) -} -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void StatisticsMessage_StatisticsData::SharedDtor() { -} - -void StatisticsMessage_StatisticsData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StatisticsMessage_StatisticsData& StatisticsMessage_StatisticsData::default_instance() { - ::google::protobuf::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) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StatisticsMessage_StatisticsData::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::StatisticsMessage_StatisticsData_StatisticsType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_statisticstype(static_cast<::StatisticsMessage_StatisticsData_StatisticsType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 statisticsValue = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_statisticsvalue(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StatisticsMessage_StatisticsData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:StatisticsMessage.StatisticsData) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 statisticsValue = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_statisticsvalue(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &statisticsvalue_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:StatisticsMessage.StatisticsData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:StatisticsMessage.StatisticsData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StatisticsMessage_StatisticsData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StatisticsMessage.StatisticsData) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->statisticstype(), output); - } - - // required uint32 statisticsValue = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->statisticsvalue(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:StatisticsMessage.StatisticsData) -} - -size_t StatisticsMessage_StatisticsData::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:StatisticsMessage.StatisticsData) - size_t total_size = 0; - - if (has_statisticsvalue()) { - // required uint32 statisticsValue = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->statisticsvalue()); - } - - if (has_statisticstype()) { - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->statisticstype()); - } - - return total_size; -} -size_t StatisticsMessage_StatisticsData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:StatisticsMessage.StatisticsData) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 statisticsValue = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->statisticsvalue()); - - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->statisticstype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - 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) { -// @@protoc_insertion_point(class_specific_merge_from_start:StatisticsMessage.StatisticsData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void StatisticsMessage_StatisticsData::Swap(StatisticsMessage_StatisticsData* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StatisticsMessage::kStatisticsDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StatisticsMessage::StatisticsMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:StatisticsMessage) -} -StatisticsMessage::StatisticsMessage(const StatisticsMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_), - statisticsdata_(from.statisticsdata_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:StatisticsMessage) -} - -void StatisticsMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StatisticsMessage_pokerth_2eproto.base); -} - -StatisticsMessage::~StatisticsMessage() { - // @@protoc_insertion_point(destructor:StatisticsMessage) - SharedDtor(); -} - -void StatisticsMessage::SharedDtor() { -} - -void StatisticsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StatisticsMessage& StatisticsMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StatisticsMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void StatisticsMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:StatisticsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - statisticsdata_.Clear(); - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StatisticsMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::StatisticsMessage_StatisticsData::_InternalParse; - object = msg->add_statisticsdata(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StatisticsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:StatisticsMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_statisticsdata())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:StatisticsMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:StatisticsMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StatisticsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StatisticsMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - for (unsigned int i = 0, - n = static_cast(this->statisticsdata_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, - this->statisticsdata(static_cast(i)), - output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:StatisticsMessage) -} - -size_t StatisticsMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:StatisticsMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - { - unsigned int count = static_cast(this->statisticsdata_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->statisticsdata(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StatisticsMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 (!::google::protobuf::internal::AllAreInitialized(this->statisticsdata())) return false; - return true; -} - -void StatisticsMessage::Swap(StatisticsMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void StatisticsMessage::InternalSwap(StatisticsMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - CastToBase(&statisticsdata_)->InternalSwap(CastToBase(&other->statisticsdata_)); -} - -::std::string StatisticsMessage::GetTypeName() const { - return "StatisticsMessage"; -} - - -// =================================================================== - -void ChatRequestMessage::InitAsDefaultInstance() { -} -class ChatRequestMessage::HasBitSetters { - public: - static void set_has_targetgameid(ChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_targetplayerid(ChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_chattext(ChatRequestMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ChatRequestMessage::kTargetGameIdFieldNumber; -const int ChatRequestMessage::kTargetPlayerIdFieldNumber; -const int ChatRequestMessage::kChatTextFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ChatRequestMessage::ChatRequestMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ChatRequestMessage) -} -ChatRequestMessage::ChatRequestMessage(const ChatRequestMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_chattext()) { - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chattext_); - } - ::memcpy(&targetgameid_, &from.targetgameid_, - static_cast(reinterpret_cast(&targetplayerid_) - - reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); - // @@protoc_insertion_point(copy_constructor:ChatRequestMessage) -} - -void ChatRequestMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ChatRequestMessage_pokerth_2eproto.base); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&targetgameid_, 0, static_cast( - reinterpret_cast(&targetplayerid_) - - reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); -} - -ChatRequestMessage::~ChatRequestMessage() { - // @@protoc_insertion_point(destructor:ChatRequestMessage) - SharedDtor(); -} - -void ChatRequestMessage::SharedDtor() { - chattext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ChatRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ChatRequestMessage& ChatRequestMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ChatRequestMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ChatRequestMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ChatRequestMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&targetgameid_, 0, static_cast( - reinterpret_cast(&targetplayerid_) - - reinterpret_cast(&targetgameid_)) + sizeof(targetplayerid_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ChatRequestMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // optional uint32 targetGameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_targetgameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 targetPlayerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_targetplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required string chatText = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_chattext(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ChatRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ChatRequestMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 targetGameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_targetgameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &targetgameid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 targetPlayerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_targetplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &targetplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required string chatText = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ChatRequestMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ChatRequestMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ChatRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatRequestMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional uint32 targetGameId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->targetgameid(), output); - } - - // optional uint32 targetPlayerId = 2; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->targetplayerid(), output); - } - - // required string chatText = 3; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->chattext(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ChatRequestMessage) -} - -size_t ChatRequestMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ChatRequestMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required string chatText = 3; - if (has_chattext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->targetgameid()); - } - - // optional uint32 targetPlayerId = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->targetplayerid()); - } - - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ChatRequestMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void ChatRequestMessage::Swap(ChatRequestMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(targetgameid_, other->targetgameid_); - swap(targetplayerid_, other->targetplayerid_); -} - -::std::string ChatRequestMessage::GetTypeName() const { - return "ChatRequestMessage"; -} - - -// =================================================================== - -void ChatMessage::InitAsDefaultInstance() { -} -class ChatMessage::HasBitSetters { - public: - static void set_has_gameid(ChatMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_playerid(ChatMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static void set_has_chattype(ChatMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static void set_has_chattext(ChatMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ChatMessage::kGameIdFieldNumber; -const int ChatMessage::kPlayerIdFieldNumber; -const int ChatMessage::kChatTypeFieldNumber; -const int ChatMessage::kChatTextFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ChatMessage::ChatMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ChatMessage) -} -ChatMessage::ChatMessage(const ChatMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_chattext()) { - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chattext_); - } - ::memcpy(&gameid_, &from.gameid_, - static_cast(reinterpret_cast(&chattype_) - - reinterpret_cast(&gameid_)) + sizeof(chattype_)); - // @@protoc_insertion_point(copy_constructor:ChatMessage) -} - -void ChatMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ChatMessage_pokerth_2eproto.base); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&gameid_, 0, static_cast( - reinterpret_cast(&chattype_) - - reinterpret_cast(&gameid_)) + sizeof(chattype_)); -} - -ChatMessage::~ChatMessage() { - // @@protoc_insertion_point(destructor:ChatMessage) - SharedDtor(); -} - -void ChatMessage::SharedDtor() { - chattext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ChatMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ChatMessage& ChatMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ChatMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ChatMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ChatMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - if (cached_has_bits & 0x0000000eu) { - ::memset(&gameid_, 0, static_cast( - reinterpret_cast(&chattype_) - - reinterpret_cast(&gameid_)) + sizeof(chattype_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ChatMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // optional uint32 gameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_gameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional uint32 playerId = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_playerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .ChatMessage.ChatType chatType = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::ChatMessage_ChatType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(3, val, msg->mutable_unknown_fields()); - break; - } - msg->set_chattype(static_cast<::ChatMessage_ChatType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required string chatText = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_chattext(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ChatMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ChatMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 gameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_gameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - } else { - goto handle_unusual; - } - break; - } - - // optional uint32 playerId = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_playerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .ChatMessage.ChatType chatType = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(24u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required string chatText = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ChatMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ChatMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ChatMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional uint32 gameId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - // optional uint32 playerId = 2; - if (cached_has_bits & 0x00000004u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); - } - - // required .ChatMessage.ChatType chatType = 3; - if (cached_has_bits & 0x00000008u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->chattype(), output); - } - - // required string chatText = 4; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->chattext(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ChatMessage) -} - -size_t ChatMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ChatMessage) - size_t total_size = 0; - - if (has_chattext()) { - // required string chatText = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - - if (has_chattype()) { - // required .ChatMessage.ChatType chatType = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->chattype()); - } - - return total_size; -} -size_t ChatMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ChatMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000009) ^ 0x00000009) == 0) { // All required fields are present. - // required string chatText = 4; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - - // required .ChatMessage.ChatType chatType = 3; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->chattype()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::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 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // optional uint32 playerId = 2; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ChatMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000009) != 0x00000009) return false; - return true; -} - -void ChatMessage::Swap(ChatMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(gameid_, other->gameid_); - swap(playerid_, other->playerid_); - swap(chattype_, other->chattype_); -} - -::std::string ChatMessage::GetTypeName() const { - return "ChatMessage"; -} - - -// =================================================================== - -void ChatRejectMessage::InitAsDefaultInstance() { -} -class ChatRejectMessage::HasBitSetters { - public: - static void set_has_chattext(ChatRejectMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ChatRejectMessage::kChatTextFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ChatRejectMessage::ChatRejectMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ChatRejectMessage) -} -ChatRejectMessage::ChatRejectMessage(const ChatRejectMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_chattext()) { - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chattext_); - } - // @@protoc_insertion_point(copy_constructor:ChatRejectMessage) -} - -void ChatRejectMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ChatRejectMessage_pokerth_2eproto.base); - chattext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ChatRejectMessage::~ChatRejectMessage() { - // @@protoc_insertion_point(destructor:ChatRejectMessage) - SharedDtor(); -} - -void ChatRejectMessage::SharedDtor() { - chattext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ChatRejectMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ChatRejectMessage& ChatRejectMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ChatRejectMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ChatRejectMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ChatRejectMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ChatRejectMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required string chatText = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_chattext(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ChatRejectMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ChatRejectMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string chatText = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ChatRejectMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ChatRejectMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ChatRejectMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatRejectMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required string chatText = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->chattext(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ChatRejectMessage) -} - -size_t ChatRejectMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ChatRejectMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required string chatText = 1; - if (has_chattext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chattext()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ChatRejectMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_chattext()) { - _has_bits_[0] |= 0x00000001u; - chattext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void ChatRejectMessage::Swap(ChatRejectMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::std::string ChatRejectMessage::GetTypeName() const { - return "ChatRejectMessage"; -} - - -// =================================================================== - -void DialogMessage::InitAsDefaultInstance() { -} -class DialogMessage::HasBitSetters { - public: - static void set_has_notificationtext(DialogMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DialogMessage::kNotificationTextFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DialogMessage::DialogMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:DialogMessage) -} -DialogMessage::DialogMessage(const DialogMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - notificationtext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_notificationtext()) { - notificationtext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.notificationtext_); - } - // @@protoc_insertion_point(copy_constructor:DialogMessage) -} - -void DialogMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DialogMessage_pokerth_2eproto.base); - notificationtext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -DialogMessage::~DialogMessage() { - // @@protoc_insertion_point(destructor:DialogMessage) - SharedDtor(); -} - -void DialogMessage::SharedDtor() { - notificationtext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void DialogMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DialogMessage& DialogMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DialogMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void DialogMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:DialogMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DialogMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required string notificationText = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_notificationtext(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DialogMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:DialogMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string notificationText = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_notificationtext())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:DialogMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:DialogMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DialogMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DialogMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required string notificationText = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->notificationtext(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:DialogMessage) -} - -size_t DialogMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:DialogMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required string notificationText = 1; - if (has_notificationtext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->notificationtext()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DialogMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_notificationtext()) { - _has_bits_[0] |= 0x00000001u; - notificationtext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void DialogMessage::Swap(DialogMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::std::string DialogMessage::GetTypeName() const { - return "DialogMessage"; -} - - -// =================================================================== - -void TimeoutWarningMessage::InitAsDefaultInstance() { -} -class TimeoutWarningMessage::HasBitSetters { - public: - static void set_has_timeoutreason(TimeoutWarningMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_remainingseconds(TimeoutWarningMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TimeoutWarningMessage::kTimeoutReasonFieldNumber; -const int TimeoutWarningMessage::kRemainingSecondsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TimeoutWarningMessage::TimeoutWarningMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:TimeoutWarningMessage) -} -TimeoutWarningMessage::TimeoutWarningMessage(const TimeoutWarningMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void TimeoutWarningMessage::SharedDtor() { -} - -void TimeoutWarningMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TimeoutWarningMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void TimeoutWarningMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:TimeoutWarningMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TimeoutWarningMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::TimeoutWarningMessage_TimeoutReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_timeoutreason(static_cast<::TimeoutWarningMessage_TimeoutReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required uint32 remainingSeconds = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_remainingseconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TimeoutWarningMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:TimeoutWarningMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - // required uint32 remainingSeconds = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - HasBitSetters::set_has_remainingseconds(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &remainingseconds_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:TimeoutWarningMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:TimeoutWarningMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TimeoutWarningMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:TimeoutWarningMessage) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->timeoutreason(), output); - } - - // required uint32 remainingSeconds = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->remainingseconds(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:TimeoutWarningMessage) -} - -size_t TimeoutWarningMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:TimeoutWarningMessage) - size_t total_size = 0; - - if (has_timeoutreason()) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->timeoutreason()); - } - - if (has_remainingseconds()) { - // required uint32 remainingSeconds = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->remainingseconds()); - } - - return total_size; -} -size_t TimeoutWarningMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:TimeoutWarningMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->timeoutreason()); - - // required uint32 remainingSeconds = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->remainingseconds()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TimeoutWarningMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void TimeoutWarningMessage::Swap(TimeoutWarningMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void TimeoutWarningMessage::InternalSwap(TimeoutWarningMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(timeoutreason_, other->timeoutreason_); - swap(remainingseconds_, other->remainingseconds_); -} - -::std::string TimeoutWarningMessage::GetTypeName() const { - return "TimeoutWarningMessage"; -} - - -// =================================================================== - -void ResetTimeoutMessage::InitAsDefaultInstance() { -} -class ResetTimeoutMessage::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ResetTimeoutMessage::ResetTimeoutMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ResetTimeoutMessage) -} -ResetTimeoutMessage::ResetTimeoutMessage(const ResetTimeoutMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:ResetTimeoutMessage) -} - -void ResetTimeoutMessage::SharedCtor() { -} - -ResetTimeoutMessage::~ResetTimeoutMessage() { - // @@protoc_insertion_point(destructor:ResetTimeoutMessage) - SharedDtor(); -} - -void ResetTimeoutMessage::SharedDtor() { -} - -void ResetTimeoutMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResetTimeoutMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ResetTimeoutMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ResetTimeoutMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ResetTimeoutMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - default: { - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ResetTimeoutMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ResetTimeoutMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - } -success: - // @@protoc_insertion_point(parse_success:ResetTimeoutMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ResetTimeoutMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ResetTimeoutMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ResetTimeoutMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ResetTimeoutMessage) -} - -size_t ResetTimeoutMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ResetTimeoutMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ResetTimeoutMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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::Swap(ResetTimeoutMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void ResetTimeoutMessage::InternalSwap(ResetTimeoutMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); -} - -::std::string ResetTimeoutMessage::GetTypeName() const { - return "ResetTimeoutMessage"; -} - - -// =================================================================== - -void ReportAvatarMessage::InitAsDefaultInstance() { -} -class ReportAvatarMessage::HasBitSetters { - public: - static void set_has_reportedplayerid(ReportAvatarMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static void set_has_reportedavatarhash(ReportAvatarMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReportAvatarMessage::kReportedPlayerIdFieldNumber; -const int ReportAvatarMessage::kReportedAvatarHashFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReportAvatarMessage::ReportAvatarMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportAvatarMessage) -} -ReportAvatarMessage::ReportAvatarMessage(const ReportAvatarMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reportedavatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.has_reportedavatarhash()) { - reportedavatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reportedavatarhash_); - } - reportedplayerid_ = from.reportedplayerid_; - // @@protoc_insertion_point(copy_constructor:ReportAvatarMessage) -} - -void ReportAvatarMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ReportAvatarMessage_pokerth_2eproto.base); - reportedavatarhash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reportedplayerid_ = 0u; -} - -ReportAvatarMessage::~ReportAvatarMessage() { - // @@protoc_insertion_point(destructor:ReportAvatarMessage) - SharedDtor(); -} - -void ReportAvatarMessage::SharedDtor() { - reportedavatarhash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ReportAvatarMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReportAvatarMessage& ReportAvatarMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReportAvatarMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ReportAvatarMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ReportAvatarMessage) - ::google::protobuf::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_.ClearNonDefaultToEmptyNoArena(); - } - reportedplayerid_ = 0u; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReportAvatarMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_reportedplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required bytes reportedAvatarHash = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_reportedavatarhash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReportAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ReportAvatarMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_reportedplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required bytes reportedAvatarHash = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_reportedavatarhash())); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ReportAvatarMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ReportAvatarMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReportAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportAvatarMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 reportedPlayerId = 1; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); - } - - // required bytes reportedAvatarHash = 2; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->reportedavatarhash(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ReportAvatarMessage) -} - -size_t ReportAvatarMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportAvatarMessage) - size_t total_size = 0; - - if (has_reportedavatarhash()) { - // required bytes reportedAvatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->reportedavatarhash()); - } - - if (has_reportedplayerid()) { - // required uint32 reportedPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - } - - return total_size; -} -size_t ReportAvatarMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ReportAvatarMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required bytes reportedAvatarHash = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->reportedavatarhash()); - - // required uint32 reportedPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReportAvatarMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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) { - _has_bits_[0] |= 0x00000001u; - reportedavatarhash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void ReportAvatarMessage::Swap(ReportAvatarMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(reportedplayerid_, other->reportedplayerid_); -} - -::std::string ReportAvatarMessage::GetTypeName() const { - return "ReportAvatarMessage"; -} - - -// =================================================================== - -void ReportAvatarAckMessage::InitAsDefaultInstance() { -} -class ReportAvatarAckMessage::HasBitSetters { - public: - static void set_has_reportedplayerid(ReportAvatarAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_reportavatarresult(ReportAvatarAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReportAvatarAckMessage::kReportedPlayerIdFieldNumber; -const int ReportAvatarAckMessage::kReportAvatarResultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReportAvatarAckMessage::ReportAvatarAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportAvatarAckMessage) -} -ReportAvatarAckMessage::ReportAvatarAckMessage(const ReportAvatarAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void ReportAvatarAckMessage::SharedDtor() { -} - -void ReportAvatarAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReportAvatarAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ReportAvatarAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ReportAvatarAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReportAvatarAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_reportedplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::ReportAvatarAckMessage_ReportAvatarResult_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_reportavatarresult(static_cast<::ReportAvatarAckMessage_ReportAvatarResult>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReportAvatarAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ReportAvatarAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_reportedplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ReportAvatarAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ReportAvatarAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReportAvatarAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportAvatarAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 reportedPlayerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reportavatarresult(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ReportAvatarAckMessage) -} - -size_t ReportAvatarAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportAvatarAckMessage) - size_t total_size = 0; - - if (has_reportedplayerid()) { - // required uint32 reportedPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - } - - if (has_reportavatarresult()) { - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportavatarresult()); - } - - return total_size; -} -size_t ReportAvatarAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ReportAvatarAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 reportedPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedplayerid()); - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportavatarresult()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReportAvatarAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void ReportAvatarAckMessage::Swap(ReportAvatarAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void ReportAvatarAckMessage::InternalSwap(ReportAvatarAckMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(reportedplayerid_, other->reportedplayerid_); - swap(reportavatarresult_, other->reportavatarresult_); -} - -::std::string ReportAvatarAckMessage::GetTypeName() const { - return "ReportAvatarAckMessage"; -} - - -// =================================================================== - -void ReportGameMessage::InitAsDefaultInstance() { -} -class ReportGameMessage::HasBitSetters { - public: - static void set_has_reportedgameid(ReportGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReportGameMessage::kReportedGameIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReportGameMessage::ReportGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportGameMessage) -} -ReportGameMessage::ReportGameMessage(const ReportGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void ReportGameMessage::SharedDtor() { -} - -void ReportGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReportGameMessage& ReportGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReportGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ReportGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ReportGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReportGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 reportedGameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_reportedgameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReportGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ReportGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_reportedgameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ReportGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ReportGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReportGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 reportedGameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ReportGameMessage) -} - -size_t ReportGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ReportGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedgameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReportGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_reportedgameid()) { - set_reportedgameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void ReportGameMessage::Swap(ReportGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_reportedgameid(ReportGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_reportgameresult(ReportGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReportGameAckMessage::kReportedGameIdFieldNumber; -const int ReportGameAckMessage::kReportGameResultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReportGameAckMessage::ReportGameAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportGameAckMessage) -} -ReportGameAckMessage::ReportGameAckMessage(const ReportGameAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void ReportGameAckMessage::SharedDtor() { -} - -void ReportGameAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReportGameAckMessage& ReportGameAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReportGameAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ReportGameAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ReportGameAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReportGameAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 reportedGameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_reportedgameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::ReportGameAckMessage_ReportGameResult_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_reportgameresult(static_cast<::ReportGameAckMessage_ReportGameResult>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReportGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ReportGameAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_reportedgameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ReportGameAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ReportGameAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReportGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportGameAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 reportedGameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->reportgameresult(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ReportGameAckMessage) -} - -size_t ReportGameAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:ReportGameAckMessage) - size_t total_size = 0; - - if (has_reportedgameid()) { - // required uint32 reportedGameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedgameid()); - } - - if (has_reportgameresult()) { - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportgameresult()); - } - - return total_size; -} -size_t ReportGameAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ReportGameAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 reportedGameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->reportedgameid()); - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportgameresult()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReportGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void ReportGameAckMessage::Swap(ReportGameAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void ReportGameAckMessage::InternalSwap(ReportGameAckMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(reportedgameid_, other->reportedgameid_); - swap(reportgameresult_, other->reportgameresult_); -} - -::std::string ReportGameAckMessage::GetTypeName() const { - return "ReportGameAckMessage"; -} - - -// =================================================================== - -void ErrorMessage::InitAsDefaultInstance() { -} -class ErrorMessage::HasBitSetters { - public: - static void set_has_errorreason(ErrorMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ErrorMessage::kErrorReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ErrorMessage::ErrorMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:ErrorMessage) -} -ErrorMessage::ErrorMessage(const ErrorMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void ErrorMessage::SharedDtor() { -} - -void ErrorMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ErrorMessage& ErrorMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ErrorMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void ErrorMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:ErrorMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ErrorMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .ErrorMessage.ErrorReason errorReason = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::ErrorMessage_ErrorReason_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_errorreason(static_cast<::ErrorMessage_ErrorReason>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ErrorMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:ErrorMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .ErrorMessage.ErrorReason errorReason = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:ErrorMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:ErrorMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ErrorMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ErrorMessage) - ::google::protobuf::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) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->errorreason(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:ErrorMessage) -} - -size_t ErrorMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:ErrorMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .ErrorMessage.ErrorReason errorReason = 1; - if (has_errorreason()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->errorreason()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ErrorMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_errorreason()) { - set_errorreason(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void ErrorMessage::Swap(ErrorMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_removegameid(AdminRemoveGameMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AdminRemoveGameMessage::kRemoveGameIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AdminRemoveGameMessage::AdminRemoveGameMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminRemoveGameMessage) -} -AdminRemoveGameMessage::AdminRemoveGameMessage(const AdminRemoveGameMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AdminRemoveGameMessage::SharedDtor() { -} - -void AdminRemoveGameMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AdminRemoveGameMessage& AdminRemoveGameMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AdminRemoveGameMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AdminRemoveGameMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AdminRemoveGameMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AdminRemoveGameMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 removeGameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_removegameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AdminRemoveGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AdminRemoveGameMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_removegameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AdminRemoveGameMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AdminRemoveGameMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AdminRemoveGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminRemoveGameMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 removeGameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->removegameid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AdminRemoveGameMessage) -} - -size_t AdminRemoveGameMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AdminRemoveGameMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 removeGameId = 1; - if (has_removegameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->removegameid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AdminRemoveGameMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_removegameid()) { - set_removegameid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AdminRemoveGameMessage::Swap(AdminRemoveGameMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_removegameid(AdminRemoveGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_removegameresult(AdminRemoveGameAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AdminRemoveGameAckMessage::kRemoveGameIdFieldNumber; -const int AdminRemoveGameAckMessage::kRemoveGameResultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminRemoveGameAckMessage) -} -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AdminRemoveGameAckMessage::SharedDtor() { -} - -void AdminRemoveGameAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AdminRemoveGameAckMessage& AdminRemoveGameAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AdminRemoveGameAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AdminRemoveGameAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AdminRemoveGameAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AdminRemoveGameAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 removeGameId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_removegameid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_removegameresult(static_cast<::AdminRemoveGameAckMessage_AdminRemoveGameResult>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AdminRemoveGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AdminRemoveGameAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_removegameid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AdminRemoveGameAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AdminRemoveGameAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AdminRemoveGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminRemoveGameAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 removeGameId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->removegameid(), output); - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->removegameresult(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AdminRemoveGameAckMessage) -} - -size_t AdminRemoveGameAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AdminRemoveGameAckMessage) - size_t total_size = 0; - - if (has_removegameid()) { - // required uint32 removeGameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->removegameid()); - } - - if (has_removegameresult()) { - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removegameresult()); - } - - return total_size; -} -size_t AdminRemoveGameAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AdminRemoveGameAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 removeGameId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->removegameid()); - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->removegameresult()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AdminRemoveGameAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AdminRemoveGameAckMessage::Swap(AdminRemoveGameAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AdminRemoveGameAckMessage::InternalSwap(AdminRemoveGameAckMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(removegameid_, other->removegameid_); - swap(removegameresult_, other->removegameresult_); -} - -::std::string AdminRemoveGameAckMessage::GetTypeName() const { - return "AdminRemoveGameAckMessage"; -} - - -// =================================================================== - -void AdminBanPlayerMessage::InitAsDefaultInstance() { -} -class AdminBanPlayerMessage::HasBitSetters { - public: - static void set_has_banplayerid(AdminBanPlayerMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AdminBanPlayerMessage::kBanPlayerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AdminBanPlayerMessage::AdminBanPlayerMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminBanPlayerMessage) -} -AdminBanPlayerMessage::AdminBanPlayerMessage(const AdminBanPlayerMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AdminBanPlayerMessage::SharedDtor() { -} - -void AdminBanPlayerMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AdminBanPlayerMessage& AdminBanPlayerMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AdminBanPlayerMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AdminBanPlayerMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AdminBanPlayerMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AdminBanPlayerMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 banPlayerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_banplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AdminBanPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AdminBanPlayerMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_banplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AdminBanPlayerMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AdminBanPlayerMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AdminBanPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminBanPlayerMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 banPlayerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->banplayerid(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AdminBanPlayerMessage) -} - -size_t AdminBanPlayerMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AdminBanPlayerMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->banplayerid()); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AdminBanPlayerMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_banplayerid()) { - set_banplayerid(from.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 ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - return true; -} - -void AdminBanPlayerMessage::Swap(AdminBanPlayerMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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::HasBitSetters { - public: - static void set_has_banplayerid(AdminBanPlayerAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static void set_has_banplayerresult(AdminBanPlayerAckMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AdminBanPlayerAckMessage::kBanPlayerIdFieldNumber; -const int AdminBanPlayerAckMessage::kBanPlayerResultFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminBanPlayerAckMessage) -} -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _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(); -} - -void AdminBanPlayerAckMessage::SharedDtor() { -} - -void AdminBanPlayerAckMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AdminBanPlayerAckMessage& AdminBanPlayerAckMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AdminBanPlayerAckMessage_pokerth_2eproto.base); - return *internal_default_instance(); -} - - -void AdminBanPlayerAckMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:AdminBanPlayerAckMessage) - ::google::protobuf::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(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AdminBanPlayerAckMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required uint32 banPlayerId = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_banplayerid(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(2, val, msg->mutable_unknown_fields()); - break; - } - msg->set_banplayerresult(static_cast<::AdminBanPlayerAckMessage_AdminBanPlayerResult>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AdminBanPlayerAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:AdminBanPlayerAckMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - HasBitSetters::set_has_banplayerid(this); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - } else { - goto handle_unusual; - } - break; - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - 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 { - unknown_fields_stream.WriteVarint32(16u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); - } - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField( - input, tag, &unknown_fields_stream)); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:AdminBanPlayerAckMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:AdminBanPlayerAckMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AdminBanPlayerAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminBanPlayerAckMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // required uint32 banPlayerId = 1; - if (cached_has_bits & 0x00000001u) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->banplayerid(), output); - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - if (cached_has_bits & 0x00000002u) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->banplayerresult(), output); - } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:AdminBanPlayerAckMessage) -} - -size_t AdminBanPlayerAckMessage::RequiredFieldsByteSizeFallback() const { -// @@protoc_insertion_point(required_fields_byte_size_fallback_start:AdminBanPlayerAckMessage) - size_t total_size = 0; - - if (has_banplayerid()) { - // required uint32 banPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->banplayerid()); - } - - if (has_banplayerresult()) { - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->banplayerresult()); - } - - return total_size; -} -size_t AdminBanPlayerAckMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:AdminBanPlayerAckMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. - // required uint32 banPlayerId = 1; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->banplayerid()); - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->banplayerresult()); - - } else { - total_size += RequiredFieldsByteSizeFallback(); - } - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AdminBanPlayerAckMessage::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&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_); - ::google::protobuf::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 ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - return true; -} - -void AdminBanPlayerAckMessage::Swap(AdminBanPlayerAckMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void AdminBanPlayerAckMessage::InternalSwap(AdminBanPlayerAckMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(banplayerid_, other->banplayerid_); - swap(banplayerresult_, other->banplayerresult_); -} - -::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::HasBitSetters { - public: - static void set_has_messagetype(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00020000u; - } - static const ::AnnounceMessage& announcemessage(const PokerTHMessage* msg); - static void set_has_announcemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000001u; - } - static const ::InitMessage& initmessage(const PokerTHMessage* msg); - static void set_has_initmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000002u; - } - static const ::AuthServerChallengeMessage& authserverchallengemessage(const PokerTHMessage* msg); - static void set_has_authserverchallengemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000004u; - } - static const ::AuthClientResponseMessage& authclientresponsemessage(const PokerTHMessage* msg); - static void set_has_authclientresponsemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000008u; - } - static const ::AuthServerVerificationMessage& authserververificationmessage(const PokerTHMessage* msg); - static void set_has_authserververificationmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000010u; - } - static const ::InitAckMessage& initackmessage(const PokerTHMessage* msg); - static void set_has_initackmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000020u; - } - static const ::AvatarRequestMessage& avatarrequestmessage(const PokerTHMessage* msg); - static void set_has_avatarrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000040u; - } - static const ::AvatarHeaderMessage& avatarheadermessage(const PokerTHMessage* msg); - static void set_has_avatarheadermessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000080u; - } - static const ::AvatarDataMessage& avatardatamessage(const PokerTHMessage* msg); - static void set_has_avatardatamessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000100u; - } - static const ::AvatarEndMessage& avatarendmessage(const PokerTHMessage* msg); - static void set_has_avatarendmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000200u; - } - static const ::UnknownAvatarMessage& unknownavatarmessage(const PokerTHMessage* msg); - static void set_has_unknownavatarmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000400u; - } - static const ::PlayerListMessage& playerlistmessage(const PokerTHMessage* msg); - static void set_has_playerlistmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00000800u; - } - static const ::GameListNewMessage& gamelistnewmessage(const PokerTHMessage* msg); - static void set_has_gamelistnewmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00001000u; - } - static const ::GameListUpdateMessage& gamelistupdatemessage(const PokerTHMessage* msg); - static void set_has_gamelistupdatemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00002000u; - } - static const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage(const PokerTHMessage* msg); - static void set_has_gamelistplayerjoinedmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00004000u; - } - static const ::GameListPlayerLeftMessage& gamelistplayerleftmessage(const PokerTHMessage* msg); - static void set_has_gamelistplayerleftmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00008000u; - } - static const ::GameListAdminChangedMessage& gamelistadminchangedmessage(const PokerTHMessage* msg); - static void set_has_gamelistadminchangedmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00010000u; - } - static const ::PlayerInfoRequestMessage& playerinforequestmessage(const PokerTHMessage* msg); - static void set_has_playerinforequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00020000u; - } - static const ::PlayerInfoReplyMessage& playerinforeplymessage(const PokerTHMessage* msg); - static void set_has_playerinforeplymessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00040000u; - } - static const ::SubscriptionRequestMessage& subscriptionrequestmessage(const PokerTHMessage* msg); - static void set_has_subscriptionrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00080000u; - } - static const ::JoinExistingGameMessage& joinexistinggamemessage(const PokerTHMessage* msg); - static void set_has_joinexistinggamemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00100000u; - } - static const ::JoinNewGameMessage& joinnewgamemessage(const PokerTHMessage* msg); - static void set_has_joinnewgamemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00200000u; - } - static const ::RejoinExistingGameMessage& rejoinexistinggamemessage(const PokerTHMessage* msg); - static void set_has_rejoinexistinggamemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00400000u; - } - static const ::JoinGameAckMessage& joingameackmessage(const PokerTHMessage* msg); - static void set_has_joingameackmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x00800000u; - } - static const ::JoinGameFailedMessage& joingamefailedmessage(const PokerTHMessage* msg); - static void set_has_joingamefailedmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x01000000u; - } - static const ::GamePlayerJoinedMessage& gameplayerjoinedmessage(const PokerTHMessage* msg); - static void set_has_gameplayerjoinedmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x02000000u; - } - static const ::GamePlayerLeftMessage& gameplayerleftmessage(const PokerTHMessage* msg); - static void set_has_gameplayerleftmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x04000000u; - } - static const ::GameAdminChangedMessage& gameadminchangedmessage(const PokerTHMessage* msg); - static void set_has_gameadminchangedmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x08000000u; - } - static const ::RemovedFromGameMessage& removedfromgamemessage(const PokerTHMessage* msg); - static void set_has_removedfromgamemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x10000000u; - } - static const ::KickPlayerRequestMessage& kickplayerrequestmessage(const PokerTHMessage* msg); - static void set_has_kickplayerrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x20000000u; - } - static const ::LeaveGameRequestMessage& leavegamerequestmessage(const PokerTHMessage* msg); - static void set_has_leavegamerequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x40000000u; - } - static const ::InvitePlayerToGameMessage& inviteplayertogamemessage(const PokerTHMessage* msg); - static void set_has_inviteplayertogamemessage(PokerTHMessage* msg) { - msg->_has_bits_[0] |= 0x80000000u; - } - static const ::InviteNotifyMessage& invitenotifymessage(const PokerTHMessage* msg); - static void set_has_invitenotifymessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000001u; - } - static const ::RejectGameInvitationMessage& rejectgameinvitationmessage(const PokerTHMessage* msg); - static void set_has_rejectgameinvitationmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000002u; - } - static const ::RejectInvNotifyMessage& rejectinvnotifymessage(const PokerTHMessage* msg); - static void set_has_rejectinvnotifymessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000004u; - } - static const ::StartEventMessage& starteventmessage(const PokerTHMessage* msg); - static void set_has_starteventmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000008u; - } - static const ::StartEventAckMessage& starteventackmessage(const PokerTHMessage* msg); - static void set_has_starteventackmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000010u; - } - static const ::GameStartInitialMessage& gamestartinitialmessage(const PokerTHMessage* msg); - static void set_has_gamestartinitialmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000020u; - } - static const ::GameStartRejoinMessage& gamestartrejoinmessage(const PokerTHMessage* msg); - static void set_has_gamestartrejoinmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000040u; - } - static const ::HandStartMessage& handstartmessage(const PokerTHMessage* msg); - static void set_has_handstartmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000080u; - } - static const ::PlayersTurnMessage& playersturnmessage(const PokerTHMessage* msg); - static void set_has_playersturnmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000100u; - } - static const ::MyActionRequestMessage& myactionrequestmessage(const PokerTHMessage* msg); - static void set_has_myactionrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000200u; - } - static const ::YourActionRejectedMessage& youractionrejectedmessage(const PokerTHMessage* msg); - static void set_has_youractionrejectedmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000400u; - } - static const ::PlayersActionDoneMessage& playersactiondonemessage(const PokerTHMessage* msg); - static void set_has_playersactiondonemessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00000800u; - } - static const ::DealFlopCardsMessage& dealflopcardsmessage(const PokerTHMessage* msg); - static void set_has_dealflopcardsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00001000u; - } - static const ::DealTurnCardMessage& dealturncardmessage(const PokerTHMessage* msg); - static void set_has_dealturncardmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00002000u; - } - static const ::DealRiverCardMessage& dealrivercardmessage(const PokerTHMessage* msg); - static void set_has_dealrivercardmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00004000u; - } - static const ::AllInShowCardsMessage& allinshowcardsmessage(const PokerTHMessage* msg); - static void set_has_allinshowcardsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00008000u; - } - static const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage(const PokerTHMessage* msg); - static void set_has_endofhandshowcardsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00010000u; - } - static const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage(const PokerTHMessage* msg); - static void set_has_endofhandhidecardsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00020000u; - } - static const ::ShowMyCardsRequestMessage& showmycardsrequestmessage(const PokerTHMessage* msg); - static void set_has_showmycardsrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00040000u; - } - static const ::AfterHandShowCardsMessage& afterhandshowcardsmessage(const PokerTHMessage* msg); - static void set_has_afterhandshowcardsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00080000u; - } - static const ::EndOfGameMessage& endofgamemessage(const PokerTHMessage* msg); - static void set_has_endofgamemessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00100000u; - } - static const ::PlayerIdChangedMessage& playeridchangedmessage(const PokerTHMessage* msg); - static void set_has_playeridchangedmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00200000u; - } - static const ::AskKickPlayerMessage& askkickplayermessage(const PokerTHMessage* msg); - static void set_has_askkickplayermessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00400000u; - } - static const ::AskKickDeniedMessage& askkickdeniedmessage(const PokerTHMessage* msg); - static void set_has_askkickdeniedmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x00800000u; - } - static const ::StartKickPetitionMessage& startkickpetitionmessage(const PokerTHMessage* msg); - static void set_has_startkickpetitionmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x01000000u; - } - static const ::VoteKickRequestMessage& votekickrequestmessage(const PokerTHMessage* msg); - static void set_has_votekickrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x02000000u; - } - static const ::VoteKickReplyMessage& votekickreplymessage(const PokerTHMessage* msg); - static void set_has_votekickreplymessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x04000000u; - } - static const ::KickPetitionUpdateMessage& kickpetitionupdatemessage(const PokerTHMessage* msg); - static void set_has_kickpetitionupdatemessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x08000000u; - } - static const ::EndKickPetitionMessage& endkickpetitionmessage(const PokerTHMessage* msg); - static void set_has_endkickpetitionmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x10000000u; - } - static const ::StatisticsMessage& statisticsmessage(const PokerTHMessage* msg); - static void set_has_statisticsmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x20000000u; - } - static const ::ChatRequestMessage& chatrequestmessage(const PokerTHMessage* msg); - static void set_has_chatrequestmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x40000000u; - } - static const ::ChatMessage& chatmessage(const PokerTHMessage* msg); - static void set_has_chatmessage(PokerTHMessage* msg) { - msg->_has_bits_[1] |= 0x80000000u; - } - static const ::ChatRejectMessage& chatrejectmessage(const PokerTHMessage* msg); - static void set_has_chatrejectmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000001u; - } - static const ::DialogMessage& dialogmessage(const PokerTHMessage* msg); - static void set_has_dialogmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000002u; - } - static const ::TimeoutWarningMessage& timeoutwarningmessage(const PokerTHMessage* msg); - static void set_has_timeoutwarningmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000004u; - } - static const ::ResetTimeoutMessage& resettimeoutmessage(const PokerTHMessage* msg); - static void set_has_resettimeoutmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000008u; - } - static const ::ReportAvatarMessage& reportavatarmessage(const PokerTHMessage* msg); - static void set_has_reportavatarmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000010u; - } - static const ::ReportAvatarAckMessage& reportavatarackmessage(const PokerTHMessage* msg); - static void set_has_reportavatarackmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000020u; - } - static const ::ReportGameMessage& reportgamemessage(const PokerTHMessage* msg); - static void set_has_reportgamemessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000040u; - } - static const ::ReportGameAckMessage& reportgameackmessage(const PokerTHMessage* msg); - static void set_has_reportgameackmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000080u; - } - static const ::ErrorMessage& errormessage(const PokerTHMessage* msg); - static void set_has_errormessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000100u; - } - static const ::AdminRemoveGameMessage& adminremovegamemessage(const PokerTHMessage* msg); - static void set_has_adminremovegamemessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000200u; - } - static const ::AdminRemoveGameAckMessage& adminremovegameackmessage(const PokerTHMessage* msg); - static void set_has_adminremovegameackmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000400u; - } - static const ::AdminBanPlayerMessage& adminbanplayermessage(const PokerTHMessage* msg); - static void set_has_adminbanplayermessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00000800u; - } - static const ::AdminBanPlayerAckMessage& adminbanplayerackmessage(const PokerTHMessage* msg); - static void set_has_adminbanplayerackmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00001000u; - } - static const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage(const PokerTHMessage* msg); - static void set_has_gamelistspectatorjoinedmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00002000u; - } - static const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage(const PokerTHMessage* msg); - static void set_has_gamelistspectatorleftmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00004000u; - } - static const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage(const PokerTHMessage* msg); - static void set_has_gamespectatorjoinedmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00008000u; - } - static const ::GameSpectatorLeftMessage& gamespectatorleftmessage(const PokerTHMessage* msg); - static void set_has_gamespectatorleftmessage(PokerTHMessage* msg) { - msg->_has_bits_[2] |= 0x00010000u; - } -}; - -const ::AnnounceMessage& -PokerTHMessage::HasBitSetters::announcemessage(const PokerTHMessage* msg) { - return *msg->announcemessage_; -} -const ::InitMessage& -PokerTHMessage::HasBitSetters::initmessage(const PokerTHMessage* msg) { - return *msg->initmessage_; -} -const ::AuthServerChallengeMessage& -PokerTHMessage::HasBitSetters::authserverchallengemessage(const PokerTHMessage* msg) { - return *msg->authserverchallengemessage_; -} -const ::AuthClientResponseMessage& -PokerTHMessage::HasBitSetters::authclientresponsemessage(const PokerTHMessage* msg) { - return *msg->authclientresponsemessage_; -} -const ::AuthServerVerificationMessage& -PokerTHMessage::HasBitSetters::authserververificationmessage(const PokerTHMessage* msg) { - return *msg->authserververificationmessage_; -} -const ::InitAckMessage& -PokerTHMessage::HasBitSetters::initackmessage(const PokerTHMessage* msg) { - return *msg->initackmessage_; -} -const ::AvatarRequestMessage& -PokerTHMessage::HasBitSetters::avatarrequestmessage(const PokerTHMessage* msg) { - return *msg->avatarrequestmessage_; -} -const ::AvatarHeaderMessage& -PokerTHMessage::HasBitSetters::avatarheadermessage(const PokerTHMessage* msg) { - return *msg->avatarheadermessage_; -} -const ::AvatarDataMessage& -PokerTHMessage::HasBitSetters::avatardatamessage(const PokerTHMessage* msg) { - return *msg->avatardatamessage_; -} -const ::AvatarEndMessage& -PokerTHMessage::HasBitSetters::avatarendmessage(const PokerTHMessage* msg) { - return *msg->avatarendmessage_; -} -const ::UnknownAvatarMessage& -PokerTHMessage::HasBitSetters::unknownavatarmessage(const PokerTHMessage* msg) { - return *msg->unknownavatarmessage_; -} -const ::PlayerListMessage& -PokerTHMessage::HasBitSetters::playerlistmessage(const PokerTHMessage* msg) { - return *msg->playerlistmessage_; -} -const ::GameListNewMessage& -PokerTHMessage::HasBitSetters::gamelistnewmessage(const PokerTHMessage* msg) { - return *msg->gamelistnewmessage_; -} -const ::GameListUpdateMessage& -PokerTHMessage::HasBitSetters::gamelistupdatemessage(const PokerTHMessage* msg) { - return *msg->gamelistupdatemessage_; -} -const ::GameListPlayerJoinedMessage& -PokerTHMessage::HasBitSetters::gamelistplayerjoinedmessage(const PokerTHMessage* msg) { - return *msg->gamelistplayerjoinedmessage_; -} -const ::GameListPlayerLeftMessage& -PokerTHMessage::HasBitSetters::gamelistplayerleftmessage(const PokerTHMessage* msg) { - return *msg->gamelistplayerleftmessage_; -} -const ::GameListAdminChangedMessage& -PokerTHMessage::HasBitSetters::gamelistadminchangedmessage(const PokerTHMessage* msg) { - return *msg->gamelistadminchangedmessage_; -} -const ::PlayerInfoRequestMessage& -PokerTHMessage::HasBitSetters::playerinforequestmessage(const PokerTHMessage* msg) { - return *msg->playerinforequestmessage_; -} -const ::PlayerInfoReplyMessage& -PokerTHMessage::HasBitSetters::playerinforeplymessage(const PokerTHMessage* msg) { - return *msg->playerinforeplymessage_; -} -const ::SubscriptionRequestMessage& -PokerTHMessage::HasBitSetters::subscriptionrequestmessage(const PokerTHMessage* msg) { - return *msg->subscriptionrequestmessage_; -} -const ::JoinExistingGameMessage& -PokerTHMessage::HasBitSetters::joinexistinggamemessage(const PokerTHMessage* msg) { - return *msg->joinexistinggamemessage_; -} -const ::JoinNewGameMessage& -PokerTHMessage::HasBitSetters::joinnewgamemessage(const PokerTHMessage* msg) { - return *msg->joinnewgamemessage_; -} -const ::RejoinExistingGameMessage& -PokerTHMessage::HasBitSetters::rejoinexistinggamemessage(const PokerTHMessage* msg) { - return *msg->rejoinexistinggamemessage_; -} -const ::JoinGameAckMessage& -PokerTHMessage::HasBitSetters::joingameackmessage(const PokerTHMessage* msg) { - return *msg->joingameackmessage_; -} -const ::JoinGameFailedMessage& -PokerTHMessage::HasBitSetters::joingamefailedmessage(const PokerTHMessage* msg) { - return *msg->joingamefailedmessage_; -} -const ::GamePlayerJoinedMessage& -PokerTHMessage::HasBitSetters::gameplayerjoinedmessage(const PokerTHMessage* msg) { - return *msg->gameplayerjoinedmessage_; -} -const ::GamePlayerLeftMessage& -PokerTHMessage::HasBitSetters::gameplayerleftmessage(const PokerTHMessage* msg) { - return *msg->gameplayerleftmessage_; -} -const ::GameAdminChangedMessage& -PokerTHMessage::HasBitSetters::gameadminchangedmessage(const PokerTHMessage* msg) { - return *msg->gameadminchangedmessage_; -} -const ::RemovedFromGameMessage& -PokerTHMessage::HasBitSetters::removedfromgamemessage(const PokerTHMessage* msg) { - return *msg->removedfromgamemessage_; -} -const ::KickPlayerRequestMessage& -PokerTHMessage::HasBitSetters::kickplayerrequestmessage(const PokerTHMessage* msg) { - return *msg->kickplayerrequestmessage_; -} -const ::LeaveGameRequestMessage& -PokerTHMessage::HasBitSetters::leavegamerequestmessage(const PokerTHMessage* msg) { - return *msg->leavegamerequestmessage_; -} -const ::InvitePlayerToGameMessage& -PokerTHMessage::HasBitSetters::inviteplayertogamemessage(const PokerTHMessage* msg) { - return *msg->inviteplayertogamemessage_; -} -const ::InviteNotifyMessage& -PokerTHMessage::HasBitSetters::invitenotifymessage(const PokerTHMessage* msg) { - return *msg->invitenotifymessage_; -} -const ::RejectGameInvitationMessage& -PokerTHMessage::HasBitSetters::rejectgameinvitationmessage(const PokerTHMessage* msg) { - return *msg->rejectgameinvitationmessage_; -} -const ::RejectInvNotifyMessage& -PokerTHMessage::HasBitSetters::rejectinvnotifymessage(const PokerTHMessage* msg) { - return *msg->rejectinvnotifymessage_; -} -const ::StartEventMessage& -PokerTHMessage::HasBitSetters::starteventmessage(const PokerTHMessage* msg) { - return *msg->starteventmessage_; -} -const ::StartEventAckMessage& -PokerTHMessage::HasBitSetters::starteventackmessage(const PokerTHMessage* msg) { - return *msg->starteventackmessage_; -} -const ::GameStartInitialMessage& -PokerTHMessage::HasBitSetters::gamestartinitialmessage(const PokerTHMessage* msg) { - return *msg->gamestartinitialmessage_; -} -const ::GameStartRejoinMessage& -PokerTHMessage::HasBitSetters::gamestartrejoinmessage(const PokerTHMessage* msg) { - return *msg->gamestartrejoinmessage_; -} -const ::HandStartMessage& -PokerTHMessage::HasBitSetters::handstartmessage(const PokerTHMessage* msg) { - return *msg->handstartmessage_; -} -const ::PlayersTurnMessage& -PokerTHMessage::HasBitSetters::playersturnmessage(const PokerTHMessage* msg) { - return *msg->playersturnmessage_; -} -const ::MyActionRequestMessage& -PokerTHMessage::HasBitSetters::myactionrequestmessage(const PokerTHMessage* msg) { - return *msg->myactionrequestmessage_; -} -const ::YourActionRejectedMessage& -PokerTHMessage::HasBitSetters::youractionrejectedmessage(const PokerTHMessage* msg) { - return *msg->youractionrejectedmessage_; -} -const ::PlayersActionDoneMessage& -PokerTHMessage::HasBitSetters::playersactiondonemessage(const PokerTHMessage* msg) { - return *msg->playersactiondonemessage_; -} -const ::DealFlopCardsMessage& -PokerTHMessage::HasBitSetters::dealflopcardsmessage(const PokerTHMessage* msg) { - return *msg->dealflopcardsmessage_; -} -const ::DealTurnCardMessage& -PokerTHMessage::HasBitSetters::dealturncardmessage(const PokerTHMessage* msg) { - return *msg->dealturncardmessage_; -} -const ::DealRiverCardMessage& -PokerTHMessage::HasBitSetters::dealrivercardmessage(const PokerTHMessage* msg) { - return *msg->dealrivercardmessage_; -} -const ::AllInShowCardsMessage& -PokerTHMessage::HasBitSetters::allinshowcardsmessage(const PokerTHMessage* msg) { - return *msg->allinshowcardsmessage_; -} -const ::EndOfHandShowCardsMessage& -PokerTHMessage::HasBitSetters::endofhandshowcardsmessage(const PokerTHMessage* msg) { - return *msg->endofhandshowcardsmessage_; -} -const ::EndOfHandHideCardsMessage& -PokerTHMessage::HasBitSetters::endofhandhidecardsmessage(const PokerTHMessage* msg) { - return *msg->endofhandhidecardsmessage_; -} -const ::ShowMyCardsRequestMessage& -PokerTHMessage::HasBitSetters::showmycardsrequestmessage(const PokerTHMessage* msg) { - return *msg->showmycardsrequestmessage_; -} -const ::AfterHandShowCardsMessage& -PokerTHMessage::HasBitSetters::afterhandshowcardsmessage(const PokerTHMessage* msg) { - return *msg->afterhandshowcardsmessage_; -} -const ::EndOfGameMessage& -PokerTHMessage::HasBitSetters::endofgamemessage(const PokerTHMessage* msg) { - return *msg->endofgamemessage_; -} -const ::PlayerIdChangedMessage& -PokerTHMessage::HasBitSetters::playeridchangedmessage(const PokerTHMessage* msg) { - return *msg->playeridchangedmessage_; -} -const ::AskKickPlayerMessage& -PokerTHMessage::HasBitSetters::askkickplayermessage(const PokerTHMessage* msg) { - return *msg->askkickplayermessage_; -} -const ::AskKickDeniedMessage& -PokerTHMessage::HasBitSetters::askkickdeniedmessage(const PokerTHMessage* msg) { - return *msg->askkickdeniedmessage_; -} -const ::StartKickPetitionMessage& -PokerTHMessage::HasBitSetters::startkickpetitionmessage(const PokerTHMessage* msg) { - return *msg->startkickpetitionmessage_; -} -const ::VoteKickRequestMessage& -PokerTHMessage::HasBitSetters::votekickrequestmessage(const PokerTHMessage* msg) { - return *msg->votekickrequestmessage_; -} -const ::VoteKickReplyMessage& -PokerTHMessage::HasBitSetters::votekickreplymessage(const PokerTHMessage* msg) { - return *msg->votekickreplymessage_; -} -const ::KickPetitionUpdateMessage& -PokerTHMessage::HasBitSetters::kickpetitionupdatemessage(const PokerTHMessage* msg) { - return *msg->kickpetitionupdatemessage_; -} -const ::EndKickPetitionMessage& -PokerTHMessage::HasBitSetters::endkickpetitionmessage(const PokerTHMessage* msg) { - return *msg->endkickpetitionmessage_; -} -const ::StatisticsMessage& -PokerTHMessage::HasBitSetters::statisticsmessage(const PokerTHMessage* msg) { - return *msg->statisticsmessage_; -} -const ::ChatRequestMessage& -PokerTHMessage::HasBitSetters::chatrequestmessage(const PokerTHMessage* msg) { - return *msg->chatrequestmessage_; -} -const ::ChatMessage& -PokerTHMessage::HasBitSetters::chatmessage(const PokerTHMessage* msg) { - return *msg->chatmessage_; -} -const ::ChatRejectMessage& -PokerTHMessage::HasBitSetters::chatrejectmessage(const PokerTHMessage* msg) { - return *msg->chatrejectmessage_; -} -const ::DialogMessage& -PokerTHMessage::HasBitSetters::dialogmessage(const PokerTHMessage* msg) { - return *msg->dialogmessage_; -} -const ::TimeoutWarningMessage& -PokerTHMessage::HasBitSetters::timeoutwarningmessage(const PokerTHMessage* msg) { - return *msg->timeoutwarningmessage_; -} -const ::ResetTimeoutMessage& -PokerTHMessage::HasBitSetters::resettimeoutmessage(const PokerTHMessage* msg) { - return *msg->resettimeoutmessage_; -} -const ::ReportAvatarMessage& -PokerTHMessage::HasBitSetters::reportavatarmessage(const PokerTHMessage* msg) { - return *msg->reportavatarmessage_; -} -const ::ReportAvatarAckMessage& -PokerTHMessage::HasBitSetters::reportavatarackmessage(const PokerTHMessage* msg) { - return *msg->reportavatarackmessage_; -} -const ::ReportGameMessage& -PokerTHMessage::HasBitSetters::reportgamemessage(const PokerTHMessage* msg) { - return *msg->reportgamemessage_; -} -const ::ReportGameAckMessage& -PokerTHMessage::HasBitSetters::reportgameackmessage(const PokerTHMessage* msg) { - return *msg->reportgameackmessage_; -} -const ::ErrorMessage& -PokerTHMessage::HasBitSetters::errormessage(const PokerTHMessage* msg) { - return *msg->errormessage_; -} -const ::AdminRemoveGameMessage& -PokerTHMessage::HasBitSetters::adminremovegamemessage(const PokerTHMessage* msg) { - return *msg->adminremovegamemessage_; -} -const ::AdminRemoveGameAckMessage& -PokerTHMessage::HasBitSetters::adminremovegameackmessage(const PokerTHMessage* msg) { - return *msg->adminremovegameackmessage_; -} -const ::AdminBanPlayerMessage& -PokerTHMessage::HasBitSetters::adminbanplayermessage(const PokerTHMessage* msg) { - return *msg->adminbanplayermessage_; -} -const ::AdminBanPlayerAckMessage& -PokerTHMessage::HasBitSetters::adminbanplayerackmessage(const PokerTHMessage* msg) { - return *msg->adminbanplayerackmessage_; -} -const ::GameListSpectatorJoinedMessage& -PokerTHMessage::HasBitSetters::gamelistspectatorjoinedmessage(const PokerTHMessage* msg) { - return *msg->gamelistspectatorjoinedmessage_; -} -const ::GameListSpectatorLeftMessage& -PokerTHMessage::HasBitSetters::gamelistspectatorleftmessage(const PokerTHMessage* msg) { - return *msg->gamelistspectatorleftmessage_; -} -const ::GameSpectatorJoinedMessage& -PokerTHMessage::HasBitSetters::gamespectatorjoinedmessage(const PokerTHMessage* msg) { - return *msg->gamespectatorjoinedmessage_; -} -const ::GameSpectatorLeftMessage& -PokerTHMessage::HasBitSetters::gamespectatorleftmessage(const PokerTHMessage* msg) { - return *msg->gamespectatorleftmessage_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // _MSC_VER +#ifndef _MSC_VER const int PokerTHMessage::kMessageTypeFieldNumber; const int PokerTHMessage::kAnnounceMessageFieldNumber; const int PokerTHMessage::kInitMessageFieldNumber; @@ -34727,4054 +21419,2835 @@ const int PokerTHMessage::kGameListSpectatorJoinedMessageFieldNumber; const int PokerTHMessage::kGameListSpectatorLeftMessageFieldNumber; const int PokerTHMessage::kGameSpectatorJoinedMessageFieldNumber; const int PokerTHMessage::kGameSpectatorLeftMessageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !_MSC_VER PokerTHMessage::PokerTHMessage() - : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { + : ::google::protobuf::MessageLite() { SharedCtor(); - // @@protoc_insertion_point(constructor:PokerTHMessage) } + +void PokerTHMessage::InitAsDefaultInstance() { + announcemessage_ = const_cast< ::AnnounceMessage*>(&::AnnounceMessage::default_instance()); + initmessage_ = const_cast< ::InitMessage*>(&::InitMessage::default_instance()); + authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>(&::AuthServerChallengeMessage::default_instance()); + authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>(&::AuthClientResponseMessage::default_instance()); + authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>(&::AuthServerVerificationMessage::default_instance()); + initackmessage_ = const_cast< ::InitAckMessage*>(&::InitAckMessage::default_instance()); + avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>(&::AvatarRequestMessage::default_instance()); + avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>(&::AvatarHeaderMessage::default_instance()); + avatardatamessage_ = const_cast< ::AvatarDataMessage*>(&::AvatarDataMessage::default_instance()); + avatarendmessage_ = const_cast< ::AvatarEndMessage*>(&::AvatarEndMessage::default_instance()); + unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>(&::UnknownAvatarMessage::default_instance()); + playerlistmessage_ = const_cast< ::PlayerListMessage*>(&::PlayerListMessage::default_instance()); + gamelistnewmessage_ = const_cast< ::GameListNewMessage*>(&::GameListNewMessage::default_instance()); + gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>(&::GameListUpdateMessage::default_instance()); + gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>(&::GameListPlayerJoinedMessage::default_instance()); + gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>(&::GameListPlayerLeftMessage::default_instance()); + gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>(&::GameListAdminChangedMessage::default_instance()); + playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>(&::PlayerInfoRequestMessage::default_instance()); + playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>(&::PlayerInfoReplyMessage::default_instance()); + subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>(&::SubscriptionRequestMessage::default_instance()); + joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>(&::JoinExistingGameMessage::default_instance()); + joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>(&::JoinNewGameMessage::default_instance()); + rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>(&::RejoinExistingGameMessage::default_instance()); + joingameackmessage_ = const_cast< ::JoinGameAckMessage*>(&::JoinGameAckMessage::default_instance()); + joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>(&::JoinGameFailedMessage::default_instance()); + gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>(&::GamePlayerJoinedMessage::default_instance()); + gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>(&::GamePlayerLeftMessage::default_instance()); + gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>(&::GameAdminChangedMessage::default_instance()); + removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>(&::RemovedFromGameMessage::default_instance()); + kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>(&::KickPlayerRequestMessage::default_instance()); + leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>(&::LeaveGameRequestMessage::default_instance()); + inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>(&::InvitePlayerToGameMessage::default_instance()); + invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>(&::InviteNotifyMessage::default_instance()); + rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>(&::RejectGameInvitationMessage::default_instance()); + rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>(&::RejectInvNotifyMessage::default_instance()); + starteventmessage_ = const_cast< ::StartEventMessage*>(&::StartEventMessage::default_instance()); + starteventackmessage_ = const_cast< ::StartEventAckMessage*>(&::StartEventAckMessage::default_instance()); + gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>(&::GameStartInitialMessage::default_instance()); + gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>(&::GameStartRejoinMessage::default_instance()); + handstartmessage_ = const_cast< ::HandStartMessage*>(&::HandStartMessage::default_instance()); + playersturnmessage_ = const_cast< ::PlayersTurnMessage*>(&::PlayersTurnMessage::default_instance()); + myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>(&::MyActionRequestMessage::default_instance()); + youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>(&::YourActionRejectedMessage::default_instance()); + playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>(&::PlayersActionDoneMessage::default_instance()); + dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>(&::DealFlopCardsMessage::default_instance()); + dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>(&::DealTurnCardMessage::default_instance()); + dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>(&::DealRiverCardMessage::default_instance()); + allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>(&::AllInShowCardsMessage::default_instance()); + endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>(&::EndOfHandShowCardsMessage::default_instance()); + endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>(&::EndOfHandHideCardsMessage::default_instance()); + showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>(&::ShowMyCardsRequestMessage::default_instance()); + afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>(&::AfterHandShowCardsMessage::default_instance()); + endofgamemessage_ = const_cast< ::EndOfGameMessage*>(&::EndOfGameMessage::default_instance()); + playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>(&::PlayerIdChangedMessage::default_instance()); + askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>(&::AskKickPlayerMessage::default_instance()); + askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>(&::AskKickDeniedMessage::default_instance()); + startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>(&::StartKickPetitionMessage::default_instance()); + votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>(&::VoteKickRequestMessage::default_instance()); + votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>(&::VoteKickReplyMessage::default_instance()); + kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>(&::KickPetitionUpdateMessage::default_instance()); + endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>(&::EndKickPetitionMessage::default_instance()); + statisticsmessage_ = const_cast< ::StatisticsMessage*>(&::StatisticsMessage::default_instance()); + chatrequestmessage_ = const_cast< ::ChatRequestMessage*>(&::ChatRequestMessage::default_instance()); + chatmessage_ = const_cast< ::ChatMessage*>(&::ChatMessage::default_instance()); + chatrejectmessage_ = const_cast< ::ChatRejectMessage*>(&::ChatRejectMessage::default_instance()); + dialogmessage_ = const_cast< ::DialogMessage*>(&::DialogMessage::default_instance()); + timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>(&::TimeoutWarningMessage::default_instance()); + resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>(&::ResetTimeoutMessage::default_instance()); + reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>(&::ReportAvatarMessage::default_instance()); + reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>(&::ReportAvatarAckMessage::default_instance()); + reportgamemessage_ = const_cast< ::ReportGameMessage*>(&::ReportGameMessage::default_instance()); + reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>(&::ReportGameAckMessage::default_instance()); + errormessage_ = const_cast< ::ErrorMessage*>(&::ErrorMessage::default_instance()); + adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>(&::AdminRemoveGameMessage::default_instance()); + adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>(&::AdminRemoveGameAckMessage::default_instance()); + adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>(&::AdminBanPlayerMessage::default_instance()); + adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>(&::AdminBanPlayerAckMessage::default_instance()); + gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>(&::GameListSpectatorJoinedMessage::default_instance()); + gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>(&::GameListSpectatorLeftMessage::default_instance()); + gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>(&::GameSpectatorJoinedMessage::default_instance()); + gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>(&::GameSpectatorLeftMessage::default_instance()); +} + PokerTHMessage::PokerTHMessage(const PokerTHMessage& from) - : ::google::protobuf::MessageLite(), - _internal_metadata_(nullptr), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_announcemessage()) { - announcemessage_ = new ::AnnounceMessage(*from.announcemessage_); - } else { - announcemessage_ = nullptr; - } - if (from.has_initmessage()) { - initmessage_ = new ::InitMessage(*from.initmessage_); - } else { - initmessage_ = nullptr; - } - if (from.has_authserverchallengemessage()) { - authserverchallengemessage_ = new ::AuthServerChallengeMessage(*from.authserverchallengemessage_); - } else { - authserverchallengemessage_ = nullptr; - } - if (from.has_authclientresponsemessage()) { - authclientresponsemessage_ = new ::AuthClientResponseMessage(*from.authclientresponsemessage_); - } else { - authclientresponsemessage_ = nullptr; - } - if (from.has_authserververificationmessage()) { - authserververificationmessage_ = new ::AuthServerVerificationMessage(*from.authserververificationmessage_); - } else { - authserververificationmessage_ = nullptr; - } - if (from.has_initackmessage()) { - initackmessage_ = new ::InitAckMessage(*from.initackmessage_); - } else { - initackmessage_ = nullptr; - } - if (from.has_avatarrequestmessage()) { - avatarrequestmessage_ = new ::AvatarRequestMessage(*from.avatarrequestmessage_); - } else { - avatarrequestmessage_ = nullptr; - } - if (from.has_avatarheadermessage()) { - avatarheadermessage_ = new ::AvatarHeaderMessage(*from.avatarheadermessage_); - } else { - avatarheadermessage_ = nullptr; - } - if (from.has_avatardatamessage()) { - avatardatamessage_ = new ::AvatarDataMessage(*from.avatardatamessage_); - } else { - avatardatamessage_ = nullptr; - } - if (from.has_avatarendmessage()) { - avatarendmessage_ = new ::AvatarEndMessage(*from.avatarendmessage_); - } else { - avatarendmessage_ = nullptr; - } - if (from.has_unknownavatarmessage()) { - unknownavatarmessage_ = new ::UnknownAvatarMessage(*from.unknownavatarmessage_); - } else { - unknownavatarmessage_ = nullptr; - } - if (from.has_playerlistmessage()) { - playerlistmessage_ = new ::PlayerListMessage(*from.playerlistmessage_); - } else { - playerlistmessage_ = nullptr; - } - if (from.has_gamelistnewmessage()) { - gamelistnewmessage_ = new ::GameListNewMessage(*from.gamelistnewmessage_); - } else { - gamelistnewmessage_ = nullptr; - } - if (from.has_gamelistupdatemessage()) { - gamelistupdatemessage_ = new ::GameListUpdateMessage(*from.gamelistupdatemessage_); - } else { - gamelistupdatemessage_ = nullptr; - } - if (from.has_gamelistplayerjoinedmessage()) { - gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage(*from.gamelistplayerjoinedmessage_); - } else { - gamelistplayerjoinedmessage_ = nullptr; - } - if (from.has_gamelistplayerleftmessage()) { - gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage(*from.gamelistplayerleftmessage_); - } else { - gamelistplayerleftmessage_ = nullptr; - } - if (from.has_gamelistadminchangedmessage()) { - gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage(*from.gamelistadminchangedmessage_); - } else { - gamelistadminchangedmessage_ = nullptr; - } - if (from.has_playerinforequestmessage()) { - playerinforequestmessage_ = new ::PlayerInfoRequestMessage(*from.playerinforequestmessage_); - } else { - playerinforequestmessage_ = nullptr; - } - if (from.has_playerinforeplymessage()) { - playerinforeplymessage_ = new ::PlayerInfoReplyMessage(*from.playerinforeplymessage_); - } else { - playerinforeplymessage_ = nullptr; - } - if (from.has_subscriptionrequestmessage()) { - subscriptionrequestmessage_ = new ::SubscriptionRequestMessage(*from.subscriptionrequestmessage_); - } else { - subscriptionrequestmessage_ = nullptr; - } - if (from.has_joinexistinggamemessage()) { - joinexistinggamemessage_ = new ::JoinExistingGameMessage(*from.joinexistinggamemessage_); - } else { - joinexistinggamemessage_ = nullptr; - } - if (from.has_joinnewgamemessage()) { - joinnewgamemessage_ = new ::JoinNewGameMessage(*from.joinnewgamemessage_); - } else { - joinnewgamemessage_ = nullptr; - } - if (from.has_rejoinexistinggamemessage()) { - rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage(*from.rejoinexistinggamemessage_); - } else { - rejoinexistinggamemessage_ = nullptr; - } - if (from.has_joingameackmessage()) { - joingameackmessage_ = new ::JoinGameAckMessage(*from.joingameackmessage_); - } else { - joingameackmessage_ = nullptr; - } - if (from.has_joingamefailedmessage()) { - joingamefailedmessage_ = new ::JoinGameFailedMessage(*from.joingamefailedmessage_); - } else { - joingamefailedmessage_ = nullptr; - } - if (from.has_gameplayerjoinedmessage()) { - gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage(*from.gameplayerjoinedmessage_); - } else { - gameplayerjoinedmessage_ = nullptr; - } - if (from.has_gameplayerleftmessage()) { - gameplayerleftmessage_ = new ::GamePlayerLeftMessage(*from.gameplayerleftmessage_); - } else { - gameplayerleftmessage_ = nullptr; - } - if (from.has_gameadminchangedmessage()) { - gameadminchangedmessage_ = new ::GameAdminChangedMessage(*from.gameadminchangedmessage_); - } else { - gameadminchangedmessage_ = nullptr; - } - if (from.has_removedfromgamemessage()) { - removedfromgamemessage_ = new ::RemovedFromGameMessage(*from.removedfromgamemessage_); - } else { - removedfromgamemessage_ = nullptr; - } - if (from.has_kickplayerrequestmessage()) { - kickplayerrequestmessage_ = new ::KickPlayerRequestMessage(*from.kickplayerrequestmessage_); - } else { - kickplayerrequestmessage_ = nullptr; - } - if (from.has_leavegamerequestmessage()) { - leavegamerequestmessage_ = new ::LeaveGameRequestMessage(*from.leavegamerequestmessage_); - } else { - leavegamerequestmessage_ = nullptr; - } - if (from.has_inviteplayertogamemessage()) { - inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage(*from.inviteplayertogamemessage_); - } else { - inviteplayertogamemessage_ = nullptr; - } - if (from.has_invitenotifymessage()) { - invitenotifymessage_ = new ::InviteNotifyMessage(*from.invitenotifymessage_); - } else { - invitenotifymessage_ = nullptr; - } - if (from.has_rejectgameinvitationmessage()) { - rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage(*from.rejectgameinvitationmessage_); - } else { - rejectgameinvitationmessage_ = nullptr; - } - if (from.has_rejectinvnotifymessage()) { - rejectinvnotifymessage_ = new ::RejectInvNotifyMessage(*from.rejectinvnotifymessage_); - } else { - rejectinvnotifymessage_ = nullptr; - } - if (from.has_starteventmessage()) { - starteventmessage_ = new ::StartEventMessage(*from.starteventmessage_); - } else { - starteventmessage_ = nullptr; - } - if (from.has_starteventackmessage()) { - starteventackmessage_ = new ::StartEventAckMessage(*from.starteventackmessage_); - } else { - starteventackmessage_ = nullptr; - } - if (from.has_gamestartinitialmessage()) { - gamestartinitialmessage_ = new ::GameStartInitialMessage(*from.gamestartinitialmessage_); - } else { - gamestartinitialmessage_ = nullptr; - } - if (from.has_gamestartrejoinmessage()) { - gamestartrejoinmessage_ = new ::GameStartRejoinMessage(*from.gamestartrejoinmessage_); - } else { - gamestartrejoinmessage_ = nullptr; - } - if (from.has_handstartmessage()) { - handstartmessage_ = new ::HandStartMessage(*from.handstartmessage_); - } else { - handstartmessage_ = nullptr; - } - if (from.has_playersturnmessage()) { - playersturnmessage_ = new ::PlayersTurnMessage(*from.playersturnmessage_); - } else { - playersturnmessage_ = nullptr; - } - if (from.has_myactionrequestmessage()) { - myactionrequestmessage_ = new ::MyActionRequestMessage(*from.myactionrequestmessage_); - } else { - myactionrequestmessage_ = nullptr; - } - if (from.has_youractionrejectedmessage()) { - youractionrejectedmessage_ = new ::YourActionRejectedMessage(*from.youractionrejectedmessage_); - } else { - youractionrejectedmessage_ = nullptr; - } - if (from.has_playersactiondonemessage()) { - playersactiondonemessage_ = new ::PlayersActionDoneMessage(*from.playersactiondonemessage_); - } else { - playersactiondonemessage_ = nullptr; - } - if (from.has_dealflopcardsmessage()) { - dealflopcardsmessage_ = new ::DealFlopCardsMessage(*from.dealflopcardsmessage_); - } else { - dealflopcardsmessage_ = nullptr; - } - if (from.has_dealturncardmessage()) { - dealturncardmessage_ = new ::DealTurnCardMessage(*from.dealturncardmessage_); - } else { - dealturncardmessage_ = nullptr; - } - if (from.has_dealrivercardmessage()) { - dealrivercardmessage_ = new ::DealRiverCardMessage(*from.dealrivercardmessage_); - } else { - dealrivercardmessage_ = nullptr; - } - if (from.has_allinshowcardsmessage()) { - allinshowcardsmessage_ = new ::AllInShowCardsMessage(*from.allinshowcardsmessage_); - } else { - allinshowcardsmessage_ = nullptr; - } - if (from.has_endofhandshowcardsmessage()) { - endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage(*from.endofhandshowcardsmessage_); - } else { - endofhandshowcardsmessage_ = nullptr; - } - if (from.has_endofhandhidecardsmessage()) { - endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage(*from.endofhandhidecardsmessage_); - } else { - endofhandhidecardsmessage_ = nullptr; - } - if (from.has_showmycardsrequestmessage()) { - showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage(*from.showmycardsrequestmessage_); - } else { - showmycardsrequestmessage_ = nullptr; - } - if (from.has_afterhandshowcardsmessage()) { - afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage(*from.afterhandshowcardsmessage_); - } else { - afterhandshowcardsmessage_ = nullptr; - } - if (from.has_endofgamemessage()) { - endofgamemessage_ = new ::EndOfGameMessage(*from.endofgamemessage_); - } else { - endofgamemessage_ = nullptr; - } - if (from.has_playeridchangedmessage()) { - playeridchangedmessage_ = new ::PlayerIdChangedMessage(*from.playeridchangedmessage_); - } else { - playeridchangedmessage_ = nullptr; - } - if (from.has_askkickplayermessage()) { - askkickplayermessage_ = new ::AskKickPlayerMessage(*from.askkickplayermessage_); - } else { - askkickplayermessage_ = nullptr; - } - if (from.has_askkickdeniedmessage()) { - askkickdeniedmessage_ = new ::AskKickDeniedMessage(*from.askkickdeniedmessage_); - } else { - askkickdeniedmessage_ = nullptr; - } - if (from.has_startkickpetitionmessage()) { - startkickpetitionmessage_ = new ::StartKickPetitionMessage(*from.startkickpetitionmessage_); - } else { - startkickpetitionmessage_ = nullptr; - } - if (from.has_votekickrequestmessage()) { - votekickrequestmessage_ = new ::VoteKickRequestMessage(*from.votekickrequestmessage_); - } else { - votekickrequestmessage_ = nullptr; - } - if (from.has_votekickreplymessage()) { - votekickreplymessage_ = new ::VoteKickReplyMessage(*from.votekickreplymessage_); - } else { - votekickreplymessage_ = nullptr; - } - if (from.has_kickpetitionupdatemessage()) { - kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage(*from.kickpetitionupdatemessage_); - } else { - kickpetitionupdatemessage_ = nullptr; - } - if (from.has_endkickpetitionmessage()) { - endkickpetitionmessage_ = new ::EndKickPetitionMessage(*from.endkickpetitionmessage_); - } else { - endkickpetitionmessage_ = nullptr; - } - if (from.has_statisticsmessage()) { - statisticsmessage_ = new ::StatisticsMessage(*from.statisticsmessage_); - } else { - statisticsmessage_ = nullptr; - } - if (from.has_chatrequestmessage()) { - chatrequestmessage_ = new ::ChatRequestMessage(*from.chatrequestmessage_); - } else { - chatrequestmessage_ = nullptr; - } - if (from.has_chatmessage()) { - chatmessage_ = new ::ChatMessage(*from.chatmessage_); - } else { - chatmessage_ = nullptr; - } - if (from.has_chatrejectmessage()) { - chatrejectmessage_ = new ::ChatRejectMessage(*from.chatrejectmessage_); - } else { - chatrejectmessage_ = nullptr; - } - if (from.has_dialogmessage()) { - dialogmessage_ = new ::DialogMessage(*from.dialogmessage_); - } else { - dialogmessage_ = nullptr; - } - if (from.has_timeoutwarningmessage()) { - timeoutwarningmessage_ = new ::TimeoutWarningMessage(*from.timeoutwarningmessage_); - } else { - timeoutwarningmessage_ = nullptr; - } - if (from.has_resettimeoutmessage()) { - resettimeoutmessage_ = new ::ResetTimeoutMessage(*from.resettimeoutmessage_); - } else { - resettimeoutmessage_ = nullptr; - } - if (from.has_reportavatarmessage()) { - reportavatarmessage_ = new ::ReportAvatarMessage(*from.reportavatarmessage_); - } else { - reportavatarmessage_ = nullptr; - } - if (from.has_reportavatarackmessage()) { - reportavatarackmessage_ = new ::ReportAvatarAckMessage(*from.reportavatarackmessage_); - } else { - reportavatarackmessage_ = nullptr; - } - if (from.has_reportgamemessage()) { - reportgamemessage_ = new ::ReportGameMessage(*from.reportgamemessage_); - } else { - reportgamemessage_ = nullptr; - } - if (from.has_reportgameackmessage()) { - reportgameackmessage_ = new ::ReportGameAckMessage(*from.reportgameackmessage_); - } else { - reportgameackmessage_ = nullptr; - } - if (from.has_errormessage()) { - errormessage_ = new ::ErrorMessage(*from.errormessage_); - } else { - errormessage_ = nullptr; - } - if (from.has_adminremovegamemessage()) { - adminremovegamemessage_ = new ::AdminRemoveGameMessage(*from.adminremovegamemessage_); - } else { - adminremovegamemessage_ = nullptr; - } - if (from.has_adminremovegameackmessage()) { - adminremovegameackmessage_ = new ::AdminRemoveGameAckMessage(*from.adminremovegameackmessage_); - } else { - adminremovegameackmessage_ = nullptr; - } - if (from.has_adminbanplayermessage()) { - adminbanplayermessage_ = new ::AdminBanPlayerMessage(*from.adminbanplayermessage_); - } else { - adminbanplayermessage_ = nullptr; - } - if (from.has_adminbanplayerackmessage()) { - adminbanplayerackmessage_ = new ::AdminBanPlayerAckMessage(*from.adminbanplayerackmessage_); - } else { - adminbanplayerackmessage_ = nullptr; - } - if (from.has_gamelistspectatorjoinedmessage()) { - gamelistspectatorjoinedmessage_ = new ::GameListSpectatorJoinedMessage(*from.gamelistspectatorjoinedmessage_); - } else { - gamelistspectatorjoinedmessage_ = nullptr; - } - if (from.has_gamelistspectatorleftmessage()) { - gamelistspectatorleftmessage_ = new ::GameListSpectatorLeftMessage(*from.gamelistspectatorleftmessage_); - } else { - gamelistspectatorleftmessage_ = nullptr; - } - if (from.has_gamespectatorjoinedmessage()) { - gamespectatorjoinedmessage_ = new ::GameSpectatorJoinedMessage(*from.gamespectatorjoinedmessage_); - } else { - gamespectatorjoinedmessage_ = nullptr; - } - if (from.has_gamespectatorleftmessage()) { - gamespectatorleftmessage_ = new ::GameSpectatorLeftMessage(*from.gamespectatorleftmessage_); - } else { - gamespectatorleftmessage_ = nullptr; - } - messagetype_ = from.messagetype_; - // @@protoc_insertion_point(copy_constructor:PokerTHMessage) + : ::google::protobuf::MessageLite() { + SharedCtor(); + MergeFrom(from); } void PokerTHMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PokerTHMessage_pokerth_2eproto.base); - ::memset(&announcemessage_, 0, static_cast( - reinterpret_cast(&gamespectatorleftmessage_) - - reinterpret_cast(&announcemessage_)) + sizeof(gamespectatorleftmessage_)); + _cached_size_ = 0; 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; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PokerTHMessage::~PokerTHMessage() { - // @@protoc_insertion_point(destructor:PokerTHMessage) SharedDtor(); } void PokerTHMessage::SharedDtor() { - 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_; + if (this != default_instance_) { + 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_; + } } void PokerTHMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const PokerTHMessage& PokerTHMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PokerTHMessage_pokerth_2eproto.base); - return *internal_default_instance(); + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; } +PokerTHMessage* PokerTHMessage::default_instance_ = NULL; + +PokerTHMessage* PokerTHMessage::New() const { + return new PokerTHMessage; +} void PokerTHMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:PokerTHMessage) - ::google::protobuf::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(); - } + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { 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(); + } } - _has_bits_.Clear(); - _internal_metadata_.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(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PokerTHMessage::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - switch (tag >> 3) { - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - if (!::PokerTHMessage_PokerTHMessageType_IsValid(val)) { - ::google::protobuf::internal::WriteVarint(1, val, msg->mutable_unknown_fields()); - break; - } - msg->set_messagetype(static_cast<::PokerTHMessage_PokerTHMessageType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // optional .AnnounceMessage announceMessage = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AnnounceMessage::_InternalParse; - object = msg->mutable_announcemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .InitMessage initMessage = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::InitMessage::_InternalParse; - object = msg->mutable_initmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AuthServerChallengeMessage::_InternalParse; - object = msg->mutable_authserverchallengemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AuthClientResponseMessage authClientResponseMessage = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AuthClientResponseMessage::_InternalParse; - object = msg->mutable_authclientresponsemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AuthServerVerificationMessage::_InternalParse; - object = msg->mutable_authserververificationmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .InitAckMessage initAckMessage = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::InitAckMessage::_InternalParse; - object = msg->mutable_initackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AvatarRequestMessage avatarRequestMessage = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AvatarRequestMessage::_InternalParse; - object = msg->mutable_avatarrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AvatarHeaderMessage::_InternalParse; - object = msg->mutable_avatarheadermessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AvatarDataMessage avatarDataMessage = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AvatarDataMessage::_InternalParse; - object = msg->mutable_avatardatamessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AvatarEndMessage avatarEndMessage = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AvatarEndMessage::_InternalParse; - object = msg->mutable_avatarendmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::UnknownAvatarMessage::_InternalParse; - object = msg->mutable_unknownavatarmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayerListMessage playerListMessage = 13; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerListMessage::_InternalParse; - object = msg->mutable_playerlistmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListNewMessage gameListNewMessage = 14; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListNewMessage::_InternalParse; - object = msg->mutable_gamelistnewmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListUpdateMessage gameListUpdateMessage = 15; - case 15: { - if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListUpdateMessage::_InternalParse; - object = msg->mutable_gamelistupdatemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListPlayerJoinedMessage::_InternalParse; - object = msg->mutable_gamelistplayerjoinedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListPlayerLeftMessage::_InternalParse; - object = msg->mutable_gamelistplayerleftmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListAdminChangedMessage::_InternalParse; - object = msg->mutable_gamelistadminchangedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - case 19: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerInfoRequestMessage::_InternalParse; - object = msg->mutable_playerinforequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - case 20: { - if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerInfoReplyMessage::_InternalParse; - object = msg->mutable_playerinforeplymessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - case 21: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::SubscriptionRequestMessage::_InternalParse; - object = msg->mutable_subscriptionrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - case 22: { - if (static_cast<::google::protobuf::uint8>(tag) != 178) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::JoinExistingGameMessage::_InternalParse; - object = msg->mutable_joinexistinggamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .JoinNewGameMessage joinNewGameMessage = 23; - case 23: { - if (static_cast<::google::protobuf::uint8>(tag) != 186) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::JoinNewGameMessage::_InternalParse; - object = msg->mutable_joinnewgamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - case 24: { - if (static_cast<::google::protobuf::uint8>(tag) != 194) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::RejoinExistingGameMessage::_InternalParse; - object = msg->mutable_rejoinexistinggamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .JoinGameAckMessage joinGameAckMessage = 25; - case 25: { - if (static_cast<::google::protobuf::uint8>(tag) != 202) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::JoinGameAckMessage::_InternalParse; - object = msg->mutable_joingameackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - case 26: { - if (static_cast<::google::protobuf::uint8>(tag) != 210) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::JoinGameFailedMessage::_InternalParse; - object = msg->mutable_joingamefailedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - case 27: { - if (static_cast<::google::protobuf::uint8>(tag) != 218) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GamePlayerJoinedMessage::_InternalParse; - object = msg->mutable_gameplayerjoinedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - case 28: { - if (static_cast<::google::protobuf::uint8>(tag) != 226) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GamePlayerLeftMessage::_InternalParse; - object = msg->mutable_gameplayerleftmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - case 29: { - if (static_cast<::google::protobuf::uint8>(tag) != 234) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameAdminChangedMessage::_InternalParse; - object = msg->mutable_gameadminchangedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .RemovedFromGameMessage removedFromGameMessage = 30; - case 30: { - if (static_cast<::google::protobuf::uint8>(tag) != 242) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::RemovedFromGameMessage::_InternalParse; - object = msg->mutable_removedfromgamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - case 31: { - if (static_cast<::google::protobuf::uint8>(tag) != 250) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::KickPlayerRequestMessage::_InternalParse; - object = msg->mutable_kickplayerrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - case 32: { - if (static_cast<::google::protobuf::uint8>(tag) != 2) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::LeaveGameRequestMessage::_InternalParse; - object = msg->mutable_leavegamerequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - case 33: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::InvitePlayerToGameMessage::_InternalParse; - object = msg->mutable_inviteplayertogamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .InviteNotifyMessage inviteNotifyMessage = 34; - case 34: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::InviteNotifyMessage::_InternalParse; - object = msg->mutable_invitenotifymessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - case 35: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::RejectGameInvitationMessage::_InternalParse; - object = msg->mutable_rejectgameinvitationmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - case 36: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::RejectInvNotifyMessage::_InternalParse; - object = msg->mutable_rejectinvnotifymessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .StartEventMessage startEventMessage = 37; - case 37: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::StartEventMessage::_InternalParse; - object = msg->mutable_starteventmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .StartEventAckMessage startEventAckMessage = 38; - case 38: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::StartEventAckMessage::_InternalParse; - object = msg->mutable_starteventackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameStartInitialMessage gameStartInitialMessage = 39; - case 39: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameStartInitialMessage::_InternalParse; - object = msg->mutable_gamestartinitialmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - case 40: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameStartRejoinMessage::_InternalParse; - object = msg->mutable_gamestartrejoinmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .HandStartMessage handStartMessage = 41; - case 41: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::HandStartMessage::_InternalParse; - object = msg->mutable_handstartmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayersTurnMessage playersTurnMessage = 42; - case 42: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayersTurnMessage::_InternalParse; - object = msg->mutable_playersturnmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .MyActionRequestMessage myActionRequestMessage = 43; - case 43: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::MyActionRequestMessage::_InternalParse; - object = msg->mutable_myactionrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - case 44: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::YourActionRejectedMessage::_InternalParse; - object = msg->mutable_youractionrejectedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - case 45: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayersActionDoneMessage::_InternalParse; - object = msg->mutable_playersactiondonemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - case 46: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::DealFlopCardsMessage::_InternalParse; - object = msg->mutable_dealflopcardsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .DealTurnCardMessage dealTurnCardMessage = 47; - case 47: { - if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::DealTurnCardMessage::_InternalParse; - object = msg->mutable_dealturncardmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .DealRiverCardMessage dealRiverCardMessage = 48; - case 48: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::DealRiverCardMessage::_InternalParse; - object = msg->mutable_dealrivercardmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - case 49: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AllInShowCardsMessage::_InternalParse; - object = msg->mutable_allinshowcardsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - case 50: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::EndOfHandShowCardsMessage::_InternalParse; - object = msg->mutable_endofhandshowcardsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - case 51: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::EndOfHandHideCardsMessage::_InternalParse; - object = msg->mutable_endofhandhidecardsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - case 52: { - if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ShowMyCardsRequestMessage::_InternalParse; - object = msg->mutable_showmycardsrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - case 53: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AfterHandShowCardsMessage::_InternalParse; - object = msg->mutable_afterhandshowcardsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .EndOfGameMessage endOfGameMessage = 54; - case 54: { - if (static_cast<::google::protobuf::uint8>(tag) != 178) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::EndOfGameMessage::_InternalParse; - object = msg->mutable_endofgamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - case 55: { - if (static_cast<::google::protobuf::uint8>(tag) != 186) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::PlayerIdChangedMessage::_InternalParse; - object = msg->mutable_playeridchangedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - case 56: { - if (static_cast<::google::protobuf::uint8>(tag) != 194) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AskKickPlayerMessage::_InternalParse; - object = msg->mutable_askkickplayermessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - case 57: { - if (static_cast<::google::protobuf::uint8>(tag) != 202) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AskKickDeniedMessage::_InternalParse; - object = msg->mutable_askkickdeniedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - case 58: { - if (static_cast<::google::protobuf::uint8>(tag) != 210) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::StartKickPetitionMessage::_InternalParse; - object = msg->mutable_startkickpetitionmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - case 59: { - if (static_cast<::google::protobuf::uint8>(tag) != 218) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::VoteKickRequestMessage::_InternalParse; - object = msg->mutable_votekickrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - case 60: { - if (static_cast<::google::protobuf::uint8>(tag) != 226) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::VoteKickReplyMessage::_InternalParse; - object = msg->mutable_votekickreplymessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - case 61: { - if (static_cast<::google::protobuf::uint8>(tag) != 234) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::KickPetitionUpdateMessage::_InternalParse; - object = msg->mutable_kickpetitionupdatemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - case 62: { - if (static_cast<::google::protobuf::uint8>(tag) != 242) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::EndKickPetitionMessage::_InternalParse; - object = msg->mutable_endkickpetitionmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .StatisticsMessage statisticsMessage = 63; - case 63: { - if (static_cast<::google::protobuf::uint8>(tag) != 250) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::StatisticsMessage::_InternalParse; - object = msg->mutable_statisticsmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ChatRequestMessage chatRequestMessage = 64; - case 64: { - if (static_cast<::google::protobuf::uint8>(tag) != 2) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ChatRequestMessage::_InternalParse; - object = msg->mutable_chatrequestmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ChatMessage chatMessage = 65; - case 65: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ChatMessage::_InternalParse; - object = msg->mutable_chatmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ChatRejectMessage chatRejectMessage = 66; - case 66: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ChatRejectMessage::_InternalParse; - object = msg->mutable_chatrejectmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .DialogMessage dialogMessage = 67; - case 67: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::DialogMessage::_InternalParse; - object = msg->mutable_dialogmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - case 68: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::TimeoutWarningMessage::_InternalParse; - object = msg->mutable_timeoutwarningmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - case 69: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ResetTimeoutMessage::_InternalParse; - object = msg->mutable_resettimeoutmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ReportAvatarMessage reportAvatarMessage = 70; - case 70: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ReportAvatarMessage::_InternalParse; - object = msg->mutable_reportavatarmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - case 71: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ReportAvatarAckMessage::_InternalParse; - object = msg->mutable_reportavatarackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ReportGameMessage reportGameMessage = 72; - case 72: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ReportGameMessage::_InternalParse; - object = msg->mutable_reportgamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ReportGameAckMessage reportGameAckMessage = 73; - case 73: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ReportGameAckMessage::_InternalParse; - object = msg->mutable_reportgameackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .ErrorMessage errorMessage = 74; - case 74: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::ErrorMessage::_InternalParse; - object = msg->mutable_errormessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - case 75: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AdminRemoveGameMessage::_InternalParse; - object = msg->mutable_adminremovegamemessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - case 76: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AdminRemoveGameAckMessage::_InternalParse; - object = msg->mutable_adminremovegameackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - case 77: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AdminBanPlayerMessage::_InternalParse; - object = msg->mutable_adminbanplayermessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - case 78: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::AdminBanPlayerAckMessage::_InternalParse; - object = msg->mutable_adminbanplayerackmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - case 79: { - if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListSpectatorJoinedMessage::_InternalParse; - object = msg->mutable_gamelistspectatorjoinedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - case 80: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameListSpectatorLeftMessage::_InternalParse; - object = msg->mutable_gamelistspectatorleftmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - case 81: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameSpectatorJoinedMessage::_InternalParse; - object = msg->mutable_gamespectatorjoinedmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - case 82: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::GameSpectatorLeftMessage::_InternalParse; - object = msg->mutable_gamespectatorleftmessage(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool PokerTHMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; - ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter( - &_internal_metadata_); - ::google::protobuf::io::StringOutputStream unknown_fields_output( - unknown_fields_setter.buffer()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_output, false); - // @@protoc_insertion_point(parse_start:PokerTHMessage) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; + while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .PokerTHMessage.PokerTHMessageType messageType = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; + 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)); - } else { - unknown_fields_stream.WriteVarint32(8u); - unknown_fields_stream.WriteVarint32( - static_cast<::google::protobuf::uint32>(value)); } } else { - goto handle_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(18)) goto parse_announceMessage; break; } - + // optional .AnnounceMessage announceMessage = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(26)) goto parse_initMessage; break; } - + // optional .InitMessage initMessage = 3; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(34)) goto parse_authServerChallengeMessage; break; } - + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(42)) goto parse_authClientResponseMessage; break; } - + // optional .AuthClientResponseMessage authClientResponseMessage = 5; case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(50)) goto parse_authServerVerificationMessage; break; } - + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(58)) goto parse_initAckMessage; break; } - + // optional .InitAckMessage initAckMessage = 7; case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(66)) goto parse_avatarRequestMessage; break; } - + // optional .AvatarRequestMessage avatarRequestMessage = 8; case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(74)) goto parse_avatarHeaderMessage; break; } - + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(82)) goto parse_avatarDataMessage; break; } - + // optional .AvatarDataMessage avatarDataMessage = 10; case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(90)) goto parse_avatarEndMessage; break; } - + // optional .AvatarEndMessage avatarEndMessage = 11; case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(98)) goto parse_unknownAvatarMessage; break; } - + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(106)) goto parse_playerListMessage; break; } - + // optional .PlayerListMessage playerListMessage = 13; case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(114)) goto parse_gameListNewMessage; break; } - + // optional .GameListNewMessage gameListNewMessage = 14; case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(122)) goto parse_gameListUpdateMessage; break; } - + // optional .GameListUpdateMessage gameListUpdateMessage = 15; case 15: { - if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(130)) goto parse_gameListPlayerJoinedMessage; break; } - + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(138)) goto parse_gameListPlayerLeftMessage; break; } - + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(146)) goto parse_gameListAdminChangedMessage; break; } - + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(154)) goto parse_playerInfoRequestMessage; break; } - + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; case 19: { - if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(162)) goto parse_playerInfoReplyMessage; break; } - + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; case 20: { - if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(170)) goto parse_subscriptionRequestMessage; break; } - + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; case 21: { - if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(178)) goto parse_joinExistingGameMessage; break; } - + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; case 22: { - if (static_cast< ::google::protobuf::uint8>(tag) == (178 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(186)) goto parse_joinNewGameMessage; break; } - + // optional .JoinNewGameMessage joinNewGameMessage = 23; case 23: { - if (static_cast< ::google::protobuf::uint8>(tag) == (186 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(194)) goto parse_rejoinExistingGameMessage; break; } - + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; case 24: { - if (static_cast< ::google::protobuf::uint8>(tag) == (194 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(202)) goto parse_joinGameAckMessage; break; } - + // optional .JoinGameAckMessage joinGameAckMessage = 25; case 25: { - if (static_cast< ::google::protobuf::uint8>(tag) == (202 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(210)) goto parse_joinGameFailedMessage; break; } - + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; case 26: { - if (static_cast< ::google::protobuf::uint8>(tag) == (210 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(218)) goto parse_gamePlayerJoinedMessage; break; } - + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; case 27: { - if (static_cast< ::google::protobuf::uint8>(tag) == (218 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(226)) goto parse_gamePlayerLeftMessage; break; } - + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; case 28: { - if (static_cast< ::google::protobuf::uint8>(tag) == (226 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(234)) goto parse_gameAdminChangedMessage; break; } - + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; case 29: { - if (static_cast< ::google::protobuf::uint8>(tag) == (234 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(242)) goto parse_removedFromGameMessage; break; } - + // optional .RemovedFromGameMessage removedFromGameMessage = 30; case 30: { - if (static_cast< ::google::protobuf::uint8>(tag) == (242 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(250)) goto parse_kickPlayerRequestMessage; break; } - + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; case 31: { - if (static_cast< ::google::protobuf::uint8>(tag) == (250 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(258)) goto parse_leaveGameRequestMessage; break; } - + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; case 32: { - if (static_cast< ::google::protobuf::uint8>(tag) == (258 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(266)) goto parse_invitePlayerToGameMessage; break; } - + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; case 33: { - if (static_cast< ::google::protobuf::uint8>(tag) == (266 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(274)) goto parse_inviteNotifyMessage; break; } - + // optional .InviteNotifyMessage inviteNotifyMessage = 34; case 34: { - if (static_cast< ::google::protobuf::uint8>(tag) == (274 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(282)) goto parse_rejectGameInvitationMessage; break; } - + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; case 35: { - if (static_cast< ::google::protobuf::uint8>(tag) == (282 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(290)) goto parse_rejectInvNotifyMessage; break; } - + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; case 36: { - if (static_cast< ::google::protobuf::uint8>(tag) == (290 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(298)) goto parse_startEventMessage; break; } - + // optional .StartEventMessage startEventMessage = 37; case 37: { - if (static_cast< ::google::protobuf::uint8>(tag) == (298 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(306)) goto parse_startEventAckMessage; break; } - + // optional .StartEventAckMessage startEventAckMessage = 38; case 38: { - if (static_cast< ::google::protobuf::uint8>(tag) == (306 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(314)) goto parse_gameStartInitialMessage; break; } - + // optional .GameStartInitialMessage gameStartInitialMessage = 39; case 39: { - if (static_cast< ::google::protobuf::uint8>(tag) == (314 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(322)) goto parse_gameStartRejoinMessage; break; } - + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; case 40: { - if (static_cast< ::google::protobuf::uint8>(tag) == (322 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(330)) goto parse_handStartMessage; break; } - + // optional .HandStartMessage handStartMessage = 41; case 41: { - if (static_cast< ::google::protobuf::uint8>(tag) == (330 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(338)) goto parse_playersTurnMessage; break; } - + // optional .PlayersTurnMessage playersTurnMessage = 42; case 42: { - if (static_cast< ::google::protobuf::uint8>(tag) == (338 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(346)) goto parse_myActionRequestMessage; break; } - + // optional .MyActionRequestMessage myActionRequestMessage = 43; case 43: { - if (static_cast< ::google::protobuf::uint8>(tag) == (346 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(354)) goto parse_yourActionRejectedMessage; break; } - + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; case 44: { - if (static_cast< ::google::protobuf::uint8>(tag) == (354 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(362)) goto parse_playersActionDoneMessage; break; } - + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; case 45: { - if (static_cast< ::google::protobuf::uint8>(tag) == (362 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(370)) goto parse_dealFlopCardsMessage; break; } - + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; case 46: { - if (static_cast< ::google::protobuf::uint8>(tag) == (370 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(378)) goto parse_dealTurnCardMessage; break; } - + // optional .DealTurnCardMessage dealTurnCardMessage = 47; case 47: { - if (static_cast< ::google::protobuf::uint8>(tag) == (378 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(386)) goto parse_dealRiverCardMessage; break; } - + // optional .DealRiverCardMessage dealRiverCardMessage = 48; case 48: { - if (static_cast< ::google::protobuf::uint8>(tag) == (386 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(394)) goto parse_allInShowCardsMessage; break; } - + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; case 49: { - if (static_cast< ::google::protobuf::uint8>(tag) == (394 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(402)) goto parse_endOfHandShowCardsMessage; break; } - + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; case 50: { - if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(410)) goto parse_endOfHandHideCardsMessage; break; } - + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; case 51: { - if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(418)) goto parse_showMyCardsRequestMessage; break; } - + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; case 52: { - if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(426)) goto parse_afterHandShowCardsMessage; break; } - + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; case 53: { - if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(434)) goto parse_endOfGameMessage; break; } - + // optional .EndOfGameMessage endOfGameMessage = 54; case 54: { - if (static_cast< ::google::protobuf::uint8>(tag) == (434 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(442)) goto parse_playerIdChangedMessage; break; } - + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; case 55: { - if (static_cast< ::google::protobuf::uint8>(tag) == (442 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(450)) goto parse_askKickPlayerMessage; break; } - + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; case 56: { - if (static_cast< ::google::protobuf::uint8>(tag) == (450 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(458)) goto parse_askKickDeniedMessage; break; } - + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; case 57: { - if (static_cast< ::google::protobuf::uint8>(tag) == (458 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(466)) goto parse_startKickPetitionMessage; break; } - + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; case 58: { - if (static_cast< ::google::protobuf::uint8>(tag) == (466 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(474)) goto parse_voteKickRequestMessage; break; } - + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; case 59: { - if (static_cast< ::google::protobuf::uint8>(tag) == (474 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(482)) goto parse_voteKickReplyMessage; break; } - + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; case 60: { - if (static_cast< ::google::protobuf::uint8>(tag) == (482 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(490)) goto parse_kickPetitionUpdateMessage; break; } - + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; case 61: { - if (static_cast< ::google::protobuf::uint8>(tag) == (490 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(498)) goto parse_endKickPetitionMessage; break; } - + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; case 62: { - if (static_cast< ::google::protobuf::uint8>(tag) == (498 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(506)) goto parse_statisticsMessage; break; } - + // optional .StatisticsMessage statisticsMessage = 63; case 63: { - if (static_cast< ::google::protobuf::uint8>(tag) == (506 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(514)) goto parse_chatRequestMessage; break; } - + // optional .ChatRequestMessage chatRequestMessage = 64; case 64: { - if (static_cast< ::google::protobuf::uint8>(tag) == (514 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(522)) goto parse_chatMessage; break; } - + // optional .ChatMessage chatMessage = 65; case 65: { - if (static_cast< ::google::protobuf::uint8>(tag) == (522 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(530)) goto parse_chatRejectMessage; break; } - + // optional .ChatRejectMessage chatRejectMessage = 66; case 66: { - if (static_cast< ::google::protobuf::uint8>(tag) == (530 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(538)) goto parse_dialogMessage; break; } - + // optional .DialogMessage dialogMessage = 67; case 67: { - if (static_cast< ::google::protobuf::uint8>(tag) == (538 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(546)) goto parse_timeoutWarningMessage; break; } - + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; case 68: { - if (static_cast< ::google::protobuf::uint8>(tag) == (546 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(554)) goto parse_resetTimeoutMessage; break; } - + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; case 69: { - if (static_cast< ::google::protobuf::uint8>(tag) == (554 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(562)) goto parse_reportAvatarMessage; break; } - + // optional .ReportAvatarMessage reportAvatarMessage = 70; case 70: { - if (static_cast< ::google::protobuf::uint8>(tag) == (562 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(570)) goto parse_reportAvatarAckMessage; break; } - + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; case 71: { - if (static_cast< ::google::protobuf::uint8>(tag) == (570 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(578)) goto parse_reportGameMessage; break; } - + // optional .ReportGameMessage reportGameMessage = 72; case 72: { - if (static_cast< ::google::protobuf::uint8>(tag) == (578 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(586)) goto parse_reportGameAckMessage; break; } - + // optional .ReportGameAckMessage reportGameAckMessage = 73; case 73: { - if (static_cast< ::google::protobuf::uint8>(tag) == (586 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(594)) goto parse_errorMessage; break; } - + // optional .ErrorMessage errorMessage = 74; case 74: { - if (static_cast< ::google::protobuf::uint8>(tag) == (594 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(602)) goto parse_adminRemoveGameMessage; break; } - + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; case 75: { - if (static_cast< ::google::protobuf::uint8>(tag) == (602 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(610)) goto parse_adminRemoveGameAckMessage; break; } - + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; case 76: { - if (static_cast< ::google::protobuf::uint8>(tag) == (610 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(618)) goto parse_adminBanPlayerMessage; break; } - + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; case 77: { - if (static_cast< ::google::protobuf::uint8>(tag) == (618 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(626)) goto parse_adminBanPlayerAckMessage; break; } - + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; case 78: { - if (static_cast< ::google::protobuf::uint8>(tag) == (626 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(634)) goto parse_gameListSpectatorJoinedMessage; break; } - + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; case 79: { - if (static_cast< ::google::protobuf::uint8>(tag) == (634 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(642)) goto parse_gameListSpectatorLeftMessage; break; } - + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; case 80: { - if (static_cast< ::google::protobuf::uint8>(tag) == (642 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(650)) goto parse_gameSpectatorJoinedMessage; break; } - + // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; case 81: { - if (static_cast< ::google::protobuf::uint8>(tag) == (650 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectTag(658)) goto parse_gameSpectatorLeftMessage; break; } - + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; case 82: { - if (static_cast< ::google::protobuf::uint8>(tag) == (658 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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_unusual; + goto handle_uninterpreted; } + if (input->ExpectAtEnd()) return true; break; } - + default: { - handle_unusual: - if (tag == 0) { - goto success; + 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, &unknown_fields_stream)); + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); break; } } } -success: - // @@protoc_insertion_point(parse_success:PokerTHMessage) return true; -failure: - // @@protoc_insertion_point(parse_failure:PokerTHMessage) - return false; #undef DO_ } -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void PokerTHMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PokerTHMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[2]; // required .PokerTHMessage.PokerTHMessageType messageType = 1; - if (cached_has_bits & 0x00020000u) { + if (has_messagetype()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->messagetype(), output); } - - cached_has_bits = _has_bits_[0]; + // optional .AnnounceMessage announceMessage = 2; - if (cached_has_bits & 0x00000001u) { + if (has_announcemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, HasBitSetters::announcemessage(this), output); + 2, this->announcemessage(), output); } - + // optional .InitMessage initMessage = 3; - if (cached_has_bits & 0x00000002u) { + if (has_initmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, HasBitSetters::initmessage(this), output); + 3, this->initmessage(), output); } - + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (cached_has_bits & 0x00000004u) { + if (has_authserverchallengemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, HasBitSetters::authserverchallengemessage(this), output); + 4, this->authserverchallengemessage(), output); } - + // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (cached_has_bits & 0x00000008u) { + if (has_authclientresponsemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, HasBitSetters::authclientresponsemessage(this), output); + 5, this->authclientresponsemessage(), output); } - + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (cached_has_bits & 0x00000010u) { + if (has_authserververificationmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, HasBitSetters::authserververificationmessage(this), output); + 6, this->authserververificationmessage(), output); } - + // optional .InitAckMessage initAckMessage = 7; - if (cached_has_bits & 0x00000020u) { + if (has_initackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 7, HasBitSetters::initackmessage(this), output); + 7, this->initackmessage(), output); } - + // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (cached_has_bits & 0x00000040u) { + if (has_avatarrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 8, HasBitSetters::avatarrequestmessage(this), output); + 8, this->avatarrequestmessage(), output); } - + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (cached_has_bits & 0x00000080u) { + if (has_avatarheadermessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 9, HasBitSetters::avatarheadermessage(this), output); + 9, this->avatarheadermessage(), output); } - + // optional .AvatarDataMessage avatarDataMessage = 10; - if (cached_has_bits & 0x00000100u) { + if (has_avatardatamessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 10, HasBitSetters::avatardatamessage(this), output); + 10, this->avatardatamessage(), output); } - + // optional .AvatarEndMessage avatarEndMessage = 11; - if (cached_has_bits & 0x00000200u) { + if (has_avatarendmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 11, HasBitSetters::avatarendmessage(this), output); + 11, this->avatarendmessage(), output); } - + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (cached_has_bits & 0x00000400u) { + if (has_unknownavatarmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 12, HasBitSetters::unknownavatarmessage(this), output); + 12, this->unknownavatarmessage(), output); } - + // optional .PlayerListMessage playerListMessage = 13; - if (cached_has_bits & 0x00000800u) { + if (has_playerlistmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 13, HasBitSetters::playerlistmessage(this), output); + 13, this->playerlistmessage(), output); } - + // optional .GameListNewMessage gameListNewMessage = 14; - if (cached_has_bits & 0x00001000u) { + if (has_gamelistnewmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 14, HasBitSetters::gamelistnewmessage(this), output); + 14, this->gamelistnewmessage(), output); } - + // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (cached_has_bits & 0x00002000u) { + if (has_gamelistupdatemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 15, HasBitSetters::gamelistupdatemessage(this), output); + 15, this->gamelistupdatemessage(), output); } - + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (cached_has_bits & 0x00004000u) { + if (has_gamelistplayerjoinedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 16, HasBitSetters::gamelistplayerjoinedmessage(this), output); + 16, this->gamelistplayerjoinedmessage(), output); } - + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (cached_has_bits & 0x00008000u) { + if (has_gamelistplayerleftmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 17, HasBitSetters::gamelistplayerleftmessage(this), output); + 17, this->gamelistplayerleftmessage(), output); } - + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (cached_has_bits & 0x00010000u) { + if (has_gamelistadminchangedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 18, HasBitSetters::gamelistadminchangedmessage(this), output); + 18, this->gamelistadminchangedmessage(), output); } - + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (cached_has_bits & 0x00020000u) { + if (has_playerinforequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 19, HasBitSetters::playerinforequestmessage(this), output); + 19, this->playerinforequestmessage(), output); } - + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (cached_has_bits & 0x00040000u) { + if (has_playerinforeplymessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 20, HasBitSetters::playerinforeplymessage(this), output); + 20, this->playerinforeplymessage(), output); } - + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (cached_has_bits & 0x00080000u) { + if (has_subscriptionrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 21, HasBitSetters::subscriptionrequestmessage(this), output); + 21, this->subscriptionrequestmessage(), output); } - + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (cached_has_bits & 0x00100000u) { + if (has_joinexistinggamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 22, HasBitSetters::joinexistinggamemessage(this), output); + 22, this->joinexistinggamemessage(), output); } - + // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (cached_has_bits & 0x00200000u) { + if (has_joinnewgamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 23, HasBitSetters::joinnewgamemessage(this), output); + 23, this->joinnewgamemessage(), output); } - + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (cached_has_bits & 0x00400000u) { + if (has_rejoinexistinggamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 24, HasBitSetters::rejoinexistinggamemessage(this), output); + 24, this->rejoinexistinggamemessage(), output); } - + // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (cached_has_bits & 0x00800000u) { + if (has_joingameackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 25, HasBitSetters::joingameackmessage(this), output); + 25, this->joingameackmessage(), output); } - + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (cached_has_bits & 0x01000000u) { + if (has_joingamefailedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 26, HasBitSetters::joingamefailedmessage(this), output); + 26, this->joingamefailedmessage(), output); } - + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (cached_has_bits & 0x02000000u) { + if (has_gameplayerjoinedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 27, HasBitSetters::gameplayerjoinedmessage(this), output); + 27, this->gameplayerjoinedmessage(), output); } - + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (cached_has_bits & 0x04000000u) { + if (has_gameplayerleftmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 28, HasBitSetters::gameplayerleftmessage(this), output); + 28, this->gameplayerleftmessage(), output); } - + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (cached_has_bits & 0x08000000u) { + if (has_gameadminchangedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 29, HasBitSetters::gameadminchangedmessage(this), output); + 29, this->gameadminchangedmessage(), output); } - + // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (cached_has_bits & 0x10000000u) { + if (has_removedfromgamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 30, HasBitSetters::removedfromgamemessage(this), output); + 30, this->removedfromgamemessage(), output); } - + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (cached_has_bits & 0x20000000u) { + if (has_kickplayerrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 31, HasBitSetters::kickplayerrequestmessage(this), output); + 31, this->kickplayerrequestmessage(), output); } - + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (cached_has_bits & 0x40000000u) { + if (has_leavegamerequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 32, HasBitSetters::leavegamerequestmessage(this), output); + 32, this->leavegamerequestmessage(), output); } - + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (cached_has_bits & 0x80000000u) { + if (has_inviteplayertogamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 33, HasBitSetters::inviteplayertogamemessage(this), output); + 33, this->inviteplayertogamemessage(), output); } - - cached_has_bits = _has_bits_[1]; + // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (cached_has_bits & 0x00000001u) { + if (has_invitenotifymessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 34, HasBitSetters::invitenotifymessage(this), output); + 34, this->invitenotifymessage(), output); } - + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (cached_has_bits & 0x00000002u) { + if (has_rejectgameinvitationmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 35, HasBitSetters::rejectgameinvitationmessage(this), output); + 35, this->rejectgameinvitationmessage(), output); } - + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (cached_has_bits & 0x00000004u) { + if (has_rejectinvnotifymessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 36, HasBitSetters::rejectinvnotifymessage(this), output); + 36, this->rejectinvnotifymessage(), output); } - + // optional .StartEventMessage startEventMessage = 37; - if (cached_has_bits & 0x00000008u) { + if (has_starteventmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 37, HasBitSetters::starteventmessage(this), output); + 37, this->starteventmessage(), output); } - + // optional .StartEventAckMessage startEventAckMessage = 38; - if (cached_has_bits & 0x00000010u) { + if (has_starteventackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 38, HasBitSetters::starteventackmessage(this), output); + 38, this->starteventackmessage(), output); } - + // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (cached_has_bits & 0x00000020u) { + if (has_gamestartinitialmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 39, HasBitSetters::gamestartinitialmessage(this), output); + 39, this->gamestartinitialmessage(), output); } - + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (cached_has_bits & 0x00000040u) { + if (has_gamestartrejoinmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 40, HasBitSetters::gamestartrejoinmessage(this), output); + 40, this->gamestartrejoinmessage(), output); } - + // optional .HandStartMessage handStartMessage = 41; - if (cached_has_bits & 0x00000080u) { + if (has_handstartmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 41, HasBitSetters::handstartmessage(this), output); + 41, this->handstartmessage(), output); } - + // optional .PlayersTurnMessage playersTurnMessage = 42; - if (cached_has_bits & 0x00000100u) { + if (has_playersturnmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 42, HasBitSetters::playersturnmessage(this), output); + 42, this->playersturnmessage(), output); } - + // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (cached_has_bits & 0x00000200u) { + if (has_myactionrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 43, HasBitSetters::myactionrequestmessage(this), output); + 43, this->myactionrequestmessage(), output); } - + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (cached_has_bits & 0x00000400u) { + if (has_youractionrejectedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 44, HasBitSetters::youractionrejectedmessage(this), output); + 44, this->youractionrejectedmessage(), output); } - + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (cached_has_bits & 0x00000800u) { + if (has_playersactiondonemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 45, HasBitSetters::playersactiondonemessage(this), output); + 45, this->playersactiondonemessage(), output); } - + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (cached_has_bits & 0x00001000u) { + if (has_dealflopcardsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 46, HasBitSetters::dealflopcardsmessage(this), output); + 46, this->dealflopcardsmessage(), output); } - + // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (cached_has_bits & 0x00002000u) { + if (has_dealturncardmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 47, HasBitSetters::dealturncardmessage(this), output); + 47, this->dealturncardmessage(), output); } - + // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (cached_has_bits & 0x00004000u) { + if (has_dealrivercardmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 48, HasBitSetters::dealrivercardmessage(this), output); + 48, this->dealrivercardmessage(), output); } - + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (cached_has_bits & 0x00008000u) { + if (has_allinshowcardsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 49, HasBitSetters::allinshowcardsmessage(this), output); + 49, this->allinshowcardsmessage(), output); } - + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (cached_has_bits & 0x00010000u) { + if (has_endofhandshowcardsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 50, HasBitSetters::endofhandshowcardsmessage(this), output); + 50, this->endofhandshowcardsmessage(), output); } - + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (cached_has_bits & 0x00020000u) { + if (has_endofhandhidecardsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 51, HasBitSetters::endofhandhidecardsmessage(this), output); + 51, this->endofhandhidecardsmessage(), output); } - + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (cached_has_bits & 0x00040000u) { + if (has_showmycardsrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 52, HasBitSetters::showmycardsrequestmessage(this), output); + 52, this->showmycardsrequestmessage(), output); } - + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (cached_has_bits & 0x00080000u) { + if (has_afterhandshowcardsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 53, HasBitSetters::afterhandshowcardsmessage(this), output); + 53, this->afterhandshowcardsmessage(), output); } - + // optional .EndOfGameMessage endOfGameMessage = 54; - if (cached_has_bits & 0x00100000u) { + if (has_endofgamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 54, HasBitSetters::endofgamemessage(this), output); + 54, this->endofgamemessage(), output); } - + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (cached_has_bits & 0x00200000u) { + if (has_playeridchangedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 55, HasBitSetters::playeridchangedmessage(this), output); + 55, this->playeridchangedmessage(), output); } - + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (cached_has_bits & 0x00400000u) { + if (has_askkickplayermessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 56, HasBitSetters::askkickplayermessage(this), output); + 56, this->askkickplayermessage(), output); } - + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (cached_has_bits & 0x00800000u) { + if (has_askkickdeniedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 57, HasBitSetters::askkickdeniedmessage(this), output); + 57, this->askkickdeniedmessage(), output); } - + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (cached_has_bits & 0x01000000u) { + if (has_startkickpetitionmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 58, HasBitSetters::startkickpetitionmessage(this), output); + 58, this->startkickpetitionmessage(), output); } - + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (cached_has_bits & 0x02000000u) { + if (has_votekickrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 59, HasBitSetters::votekickrequestmessage(this), output); + 59, this->votekickrequestmessage(), output); } - + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (cached_has_bits & 0x04000000u) { + if (has_votekickreplymessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 60, HasBitSetters::votekickreplymessage(this), output); + 60, this->votekickreplymessage(), output); } - + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (cached_has_bits & 0x08000000u) { + if (has_kickpetitionupdatemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 61, HasBitSetters::kickpetitionupdatemessage(this), output); + 61, this->kickpetitionupdatemessage(), output); } - + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (cached_has_bits & 0x10000000u) { + if (has_endkickpetitionmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 62, HasBitSetters::endkickpetitionmessage(this), output); + 62, this->endkickpetitionmessage(), output); } - + // optional .StatisticsMessage statisticsMessage = 63; - if (cached_has_bits & 0x20000000u) { + if (has_statisticsmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 63, HasBitSetters::statisticsmessage(this), output); + 63, this->statisticsmessage(), output); } - + // optional .ChatRequestMessage chatRequestMessage = 64; - if (cached_has_bits & 0x40000000u) { + if (has_chatrequestmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 64, HasBitSetters::chatrequestmessage(this), output); + 64, this->chatrequestmessage(), output); } - + // optional .ChatMessage chatMessage = 65; - if (cached_has_bits & 0x80000000u) { + if (has_chatmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 65, HasBitSetters::chatmessage(this), output); + 65, this->chatmessage(), output); } - - cached_has_bits = _has_bits_[2]; + // optional .ChatRejectMessage chatRejectMessage = 66; - if (cached_has_bits & 0x00000001u) { + if (has_chatrejectmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 66, HasBitSetters::chatrejectmessage(this), output); + 66, this->chatrejectmessage(), output); } - + // optional .DialogMessage dialogMessage = 67; - if (cached_has_bits & 0x00000002u) { + if (has_dialogmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 67, HasBitSetters::dialogmessage(this), output); + 67, this->dialogmessage(), output); } - + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (cached_has_bits & 0x00000004u) { + if (has_timeoutwarningmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 68, HasBitSetters::timeoutwarningmessage(this), output); + 68, this->timeoutwarningmessage(), output); } - + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (cached_has_bits & 0x00000008u) { + if (has_resettimeoutmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 69, HasBitSetters::resettimeoutmessage(this), output); + 69, this->resettimeoutmessage(), output); } - + // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (cached_has_bits & 0x00000010u) { + if (has_reportavatarmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 70, HasBitSetters::reportavatarmessage(this), output); + 70, this->reportavatarmessage(), output); } - + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (cached_has_bits & 0x00000020u) { + if (has_reportavatarackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 71, HasBitSetters::reportavatarackmessage(this), output); + 71, this->reportavatarackmessage(), output); } - + // optional .ReportGameMessage reportGameMessage = 72; - if (cached_has_bits & 0x00000040u) { + if (has_reportgamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 72, HasBitSetters::reportgamemessage(this), output); + 72, this->reportgamemessage(), output); } - + // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (cached_has_bits & 0x00000080u) { + if (has_reportgameackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 73, HasBitSetters::reportgameackmessage(this), output); + 73, this->reportgameackmessage(), output); } - + // optional .ErrorMessage errorMessage = 74; - if (cached_has_bits & 0x00000100u) { + if (has_errormessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 74, HasBitSetters::errormessage(this), output); + 74, this->errormessage(), output); } - + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (cached_has_bits & 0x00000200u) { + if (has_adminremovegamemessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 75, HasBitSetters::adminremovegamemessage(this), output); + 75, this->adminremovegamemessage(), output); } - + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (cached_has_bits & 0x00000400u) { + if (has_adminremovegameackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 76, HasBitSetters::adminremovegameackmessage(this), output); + 76, this->adminremovegameackmessage(), output); } - + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (cached_has_bits & 0x00000800u) { + if (has_adminbanplayermessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 77, HasBitSetters::adminbanplayermessage(this), output); + 77, this->adminbanplayermessage(), output); } - + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (cached_has_bits & 0x00001000u) { + if (has_adminbanplayerackmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 78, HasBitSetters::adminbanplayerackmessage(this), output); + 78, this->adminbanplayerackmessage(), output); } - + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (cached_has_bits & 0x00002000u) { + if (has_gamelistspectatorjoinedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 79, HasBitSetters::gamelistspectatorjoinedmessage(this), output); + 79, this->gamelistspectatorjoinedmessage(), output); } - + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (cached_has_bits & 0x00004000u) { + if (has_gamelistspectatorleftmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 80, HasBitSetters::gamelistspectatorleftmessage(this), output); + 80, this->gamelistspectatorleftmessage(), output); } - + // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (cached_has_bits & 0x00008000u) { + if (has_gamespectatorjoinedmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 81, HasBitSetters::gamespectatorjoinedmessage(this), output); + 81, this->gamespectatorjoinedmessage(), output); } - + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (cached_has_bits & 0x00010000u) { + if (has_gamespectatorleftmessage()) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 82, HasBitSetters::gamespectatorleftmessage(this), output); + 82, this->gamespectatorleftmessage(), output); } - - output->WriteRaw(_internal_metadata_.unknown_fields().data(), - static_cast(_internal_metadata_.unknown_fields().size())); - // @@protoc_insertion_point(serialize_end:PokerTHMessage) + } -size_t PokerTHMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:PokerTHMessage) - size_t total_size = 0; - - total_size += _internal_metadata_.unknown_fields().size(); - - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } - ::google::protobuf::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) { +int PokerTHMessage::ByteSize() const { + int 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()); + } + // optional .AnnounceMessage announceMessage = 2; - if (cached_has_bits & 0x00000001u) { + if (has_announcemessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *announcemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->announcemessage()); } - + // optional .InitMessage initMessage = 3; - if (cached_has_bits & 0x00000002u) { + if (has_initmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *initmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->initmessage()); } - + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (cached_has_bits & 0x00000004u) { + if (has_authserverchallengemessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *authserverchallengemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authserverchallengemessage()); } - + // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (cached_has_bits & 0x00000008u) { + if (has_authclientresponsemessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *authclientresponsemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authclientresponsemessage()); } - + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (cached_has_bits & 0x00000010u) { + if (has_authserververificationmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *authserververificationmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authserververificationmessage()); } - + // optional .InitAckMessage initAckMessage = 7; - if (cached_has_bits & 0x00000020u) { + if (has_initackmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *initackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->initackmessage()); } - + // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (cached_has_bits & 0x00000040u) { + if (has_avatarrequestmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *avatarrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarrequestmessage()); } - + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (cached_has_bits & 0x00000080u) { + if (has_avatarheadermessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *avatarheadermessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarheadermessage()); } - - } - if (cached_has_bits & 0x0000ff00u) { + // optional .AvatarDataMessage avatarDataMessage = 10; - if (cached_has_bits & 0x00000100u) { + if (has_avatardatamessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *avatardatamessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatardatamessage()); } - + // optional .AvatarEndMessage avatarEndMessage = 11; - if (cached_has_bits & 0x00000200u) { + if (has_avatarendmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *avatarendmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarendmessage()); } - + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (cached_has_bits & 0x00000400u) { + if (has_unknownavatarmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *unknownavatarmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unknownavatarmessage()); } - + // optional .PlayerListMessage playerListMessage = 13; - if (cached_has_bits & 0x00000800u) { + if (has_playerlistmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playerlistmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerlistmessage()); } - + // optional .GameListNewMessage gameListNewMessage = 14; - if (cached_has_bits & 0x00001000u) { + if (has_gamelistnewmessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistnewmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistnewmessage()); } - + // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (cached_has_bits & 0x00002000u) { + if (has_gamelistupdatemessage()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistupdatemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistupdatemessage()); } - + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (cached_has_bits & 0x00004000u) { + if (has_gamelistplayerjoinedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistplayerjoinedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistplayerjoinedmessage()); } - + + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (cached_has_bits & 0x00008000u) { + if (has_gamelistplayerleftmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistplayerleftmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistplayerleftmessage()); } - - } - if (cached_has_bits & 0x00ff0000u) { + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (cached_has_bits & 0x00010000u) { + if (has_gamelistadminchangedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistadminchangedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistadminchangedmessage()); } - + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (cached_has_bits & 0x00020000u) { + if (has_playerinforequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playerinforequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerinforequestmessage()); } - + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (cached_has_bits & 0x00040000u) { + if (has_playerinforeplymessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playerinforeplymessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerinforeplymessage()); } - + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (cached_has_bits & 0x00080000u) { + if (has_subscriptionrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *subscriptionrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->subscriptionrequestmessage()); } - + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (cached_has_bits & 0x00100000u) { + if (has_joinexistinggamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *joinexistinggamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joinexistinggamemessage()); } - + // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (cached_has_bits & 0x00200000u) { + if (has_joinnewgamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *joinnewgamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joinnewgamemessage()); } - + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (cached_has_bits & 0x00400000u) { + if (has_rejoinexistinggamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *rejoinexistinggamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejoinexistinggamemessage()); } - + + } + if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (cached_has_bits & 0x00800000u) { + if (has_joingameackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *joingameackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joingameackmessage()); } - - } - if (cached_has_bits & 0xff000000u) { + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (cached_has_bits & 0x01000000u) { + if (has_joingamefailedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *joingamefailedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joingamefailedmessage()); } - + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (cached_has_bits & 0x02000000u) { + if (has_gameplayerjoinedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameplayerjoinedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameplayerjoinedmessage()); } - + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (cached_has_bits & 0x04000000u) { + if (has_gameplayerleftmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameplayerleftmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameplayerleftmessage()); } - + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (cached_has_bits & 0x08000000u) { + if (has_gameadminchangedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gameadminchangedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameadminchangedmessage()); } - + // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (cached_has_bits & 0x10000000u) { + if (has_removedfromgamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *removedfromgamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->removedfromgamemessage()); } - + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (cached_has_bits & 0x20000000u) { + if (has_kickplayerrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *kickplayerrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->kickplayerrequestmessage()); } - + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (cached_has_bits & 0x40000000u) { + if (has_leavegamerequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *leavegamerequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->leavegamerequestmessage()); } - + + } + if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (cached_has_bits & 0x80000000u) { + if (has_inviteplayertogamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inviteplayertogamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->inviteplayertogamemessage()); } - - } - cached_has_bits = _has_bits_[1]; - if (cached_has_bits & 0x000000ffu) { + // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (cached_has_bits & 0x00000001u) { + if (has_invitenotifymessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *invitenotifymessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->invitenotifymessage()); } - + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (cached_has_bits & 0x00000002u) { + if (has_rejectgameinvitationmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *rejectgameinvitationmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejectgameinvitationmessage()); } - + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (cached_has_bits & 0x00000004u) { + if (has_rejectinvnotifymessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *rejectinvnotifymessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejectinvnotifymessage()); } - + // optional .StartEventMessage startEventMessage = 37; - if (cached_has_bits & 0x00000008u) { + if (has_starteventmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *starteventmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->starteventmessage()); } - + // optional .StartEventAckMessage startEventAckMessage = 38; - if (cached_has_bits & 0x00000010u) { + if (has_starteventackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *starteventackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->starteventackmessage()); } - + // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (cached_has_bits & 0x00000020u) { + if (has_gamestartinitialmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamestartinitialmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamestartinitialmessage()); } - + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (cached_has_bits & 0x00000040u) { + if (has_gamestartrejoinmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamestartrejoinmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamestartrejoinmessage()); } - + + } + if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { // optional .HandStartMessage handStartMessage = 41; - if (cached_has_bits & 0x00000080u) { + if (has_handstartmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *handstartmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->handstartmessage()); } - - } - if (cached_has_bits & 0x0000ff00u) { + // optional .PlayersTurnMessage playersTurnMessage = 42; - if (cached_has_bits & 0x00000100u) { + if (has_playersturnmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playersturnmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playersturnmessage()); } - + // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (cached_has_bits & 0x00000200u) { + if (has_myactionrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *myactionrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->myactionrequestmessage()); } - + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (cached_has_bits & 0x00000400u) { + if (has_youractionrejectedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *youractionrejectedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->youractionrejectedmessage()); } - + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (cached_has_bits & 0x00000800u) { + if (has_playersactiondonemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playersactiondonemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playersactiondonemessage()); } - + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (cached_has_bits & 0x00001000u) { + if (has_dealflopcardsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dealflopcardsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealflopcardsmessage()); } - + // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (cached_has_bits & 0x00002000u) { + if (has_dealturncardmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dealturncardmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealturncardmessage()); } - + // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (cached_has_bits & 0x00004000u) { + if (has_dealrivercardmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dealrivercardmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealrivercardmessage()); } - + + } + if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (cached_has_bits & 0x00008000u) { + if (has_allinshowcardsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *allinshowcardsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->allinshowcardsmessage()); } - - } - if (cached_has_bits & 0x00ff0000u) { + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (cached_has_bits & 0x00010000u) { + if (has_endofhandshowcardsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *endofhandshowcardsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofhandshowcardsmessage()); } - + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (cached_has_bits & 0x00020000u) { + if (has_endofhandhidecardsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *endofhandhidecardsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofhandhidecardsmessage()); } - + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (cached_has_bits & 0x00040000u) { + if (has_showmycardsrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *showmycardsrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->showmycardsrequestmessage()); } - + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (cached_has_bits & 0x00080000u) { + if (has_afterhandshowcardsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *afterhandshowcardsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->afterhandshowcardsmessage()); } - + // optional .EndOfGameMessage endOfGameMessage = 54; - if (cached_has_bits & 0x00100000u) { + if (has_endofgamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *endofgamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofgamemessage()); } - + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (cached_has_bits & 0x00200000u) { + if (has_playeridchangedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *playeridchangedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playeridchangedmessage()); } - + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (cached_has_bits & 0x00400000u) { + if (has_askkickplayermessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *askkickplayermessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->askkickplayermessage()); } - + + } + if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (cached_has_bits & 0x00800000u) { + if (has_askkickdeniedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *askkickdeniedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->askkickdeniedmessage()); } - - } - if (cached_has_bits & 0xff000000u) { + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (cached_has_bits & 0x01000000u) { + if (has_startkickpetitionmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *startkickpetitionmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->startkickpetitionmessage()); } - + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (cached_has_bits & 0x02000000u) { + if (has_votekickrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *votekickrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->votekickrequestmessage()); } - + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (cached_has_bits & 0x04000000u) { + if (has_votekickreplymessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *votekickreplymessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->votekickreplymessage()); } - + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (cached_has_bits & 0x08000000u) { + if (has_kickpetitionupdatemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *kickpetitionupdatemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->kickpetitionupdatemessage()); } - + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (cached_has_bits & 0x10000000u) { + if (has_endkickpetitionmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *endkickpetitionmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endkickpetitionmessage()); } - + // optional .StatisticsMessage statisticsMessage = 63; - if (cached_has_bits & 0x20000000u) { + if (has_statisticsmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *statisticsmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->statisticsmessage()); } - + // optional .ChatRequestMessage chatRequestMessage = 64; - if (cached_has_bits & 0x40000000u) { + if (has_chatrequestmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *chatrequestmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatrequestmessage()); } - + + } + if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { // optional .ChatMessage chatMessage = 65; - if (cached_has_bits & 0x80000000u) { + if (has_chatmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *chatmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatmessage()); } - - } - cached_has_bits = _has_bits_[2]; - if (cached_has_bits & 0x000000ffu) { + // optional .ChatRejectMessage chatRejectMessage = 66; - if (cached_has_bits & 0x00000001u) { + if (has_chatrejectmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *chatrejectmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatrejectmessage()); } - + // optional .DialogMessage dialogMessage = 67; - if (cached_has_bits & 0x00000002u) { + if (has_dialogmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dialogmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dialogmessage()); } - + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (cached_has_bits & 0x00000004u) { + if (has_timeoutwarningmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *timeoutwarningmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->timeoutwarningmessage()); } - + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (cached_has_bits & 0x00000008u) { + if (has_resettimeoutmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resettimeoutmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->resettimeoutmessage()); } - + // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (cached_has_bits & 0x00000010u) { + if (has_reportavatarmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reportavatarmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportavatarmessage()); } - + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (cached_has_bits & 0x00000020u) { + if (has_reportavatarackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reportavatarackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportavatarackmessage()); } - + // optional .ReportGameMessage reportGameMessage = 72; - if (cached_has_bits & 0x00000040u) { + if (has_reportgamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reportgamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportgamemessage()); } - + + } + if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (cached_has_bits & 0x00000080u) { + if (has_reportgameackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reportgameackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportgameackmessage()); } - - } - if (cached_has_bits & 0x0000ff00u) { + // optional .ErrorMessage errorMessage = 74; - if (cached_has_bits & 0x00000100u) { + if (has_errormessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *errormessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->errormessage()); } - + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (cached_has_bits & 0x00000200u) { + if (has_adminremovegamemessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *adminremovegamemessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->adminremovegamemessage()); } - + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (cached_has_bits & 0x00000400u) { + if (has_adminremovegameackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *adminremovegameackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->adminremovegameackmessage()); } - + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (cached_has_bits & 0x00000800u) { + if (has_adminbanplayermessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *adminbanplayermessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->adminbanplayermessage()); } - + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (cached_has_bits & 0x00001000u) { + if (has_adminbanplayerackmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *adminbanplayerackmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->adminbanplayerackmessage()); } - + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (cached_has_bits & 0x00002000u) { + if (has_gamelistspectatorjoinedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistspectatorjoinedmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistspectatorjoinedmessage()); } - + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (cached_has_bits & 0x00004000u) { + if (has_gamelistspectatorleftmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamelistspectatorleftmessage_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistspectatorleftmessage()); } - + + } + if (_has_bits_[80 / 32] & (0xffu << (80 % 32))) { // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (cached_has_bits & 0x00008000u) { + if (has_gamespectatorjoinedmessage()) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamespectatorjoinedmessage_); + ::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 .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gamespectatorleftmessage_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } @@ -38784,624 +24257,612 @@ void PokerTHMessage::CheckTypeAndMergeFrom( } void PokerTHMessage::MergeFrom(const PokerTHMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:PokerTHMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::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) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_messagetype()) { + set_messagetype(from.messagetype()); + } + if (from.has_announcemessage()) { mutable_announcemessage()->::AnnounceMessage::MergeFrom(from.announcemessage()); } - if (cached_has_bits & 0x00000002u) { + if (from.has_initmessage()) { mutable_initmessage()->::InitMessage::MergeFrom(from.initmessage()); } - if (cached_has_bits & 0x00000004u) { + if (from.has_authserverchallengemessage()) { mutable_authserverchallengemessage()->::AuthServerChallengeMessage::MergeFrom(from.authserverchallengemessage()); } - if (cached_has_bits & 0x00000008u) { + if (from.has_authclientresponsemessage()) { mutable_authclientresponsemessage()->::AuthClientResponseMessage::MergeFrom(from.authclientresponsemessage()); } - if (cached_has_bits & 0x00000010u) { + if (from.has_authserververificationmessage()) { mutable_authserververificationmessage()->::AuthServerVerificationMessage::MergeFrom(from.authserververificationmessage()); } - if (cached_has_bits & 0x00000020u) { + if (from.has_initackmessage()) { mutable_initackmessage()->::InitAckMessage::MergeFrom(from.initackmessage()); } - if (cached_has_bits & 0x00000040u) { + if (from.has_avatarrequestmessage()) { mutable_avatarrequestmessage()->::AvatarRequestMessage::MergeFrom(from.avatarrequestmessage()); } - if (cached_has_bits & 0x00000080u) { + } + 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) { + if (from.has_avatardatamessage()) { mutable_avatardatamessage()->::AvatarDataMessage::MergeFrom(from.avatardatamessage()); } - if (cached_has_bits & 0x00000200u) { + if (from.has_avatarendmessage()) { mutable_avatarendmessage()->::AvatarEndMessage::MergeFrom(from.avatarendmessage()); } - if (cached_has_bits & 0x00000400u) { + if (from.has_unknownavatarmessage()) { mutable_unknownavatarmessage()->::UnknownAvatarMessage::MergeFrom(from.unknownavatarmessage()); } - if (cached_has_bits & 0x00000800u) { + if (from.has_playerlistmessage()) { mutable_playerlistmessage()->::PlayerListMessage::MergeFrom(from.playerlistmessage()); } - if (cached_has_bits & 0x00001000u) { + if (from.has_gamelistnewmessage()) { mutable_gamelistnewmessage()->::GameListNewMessage::MergeFrom(from.gamelistnewmessage()); } - if (cached_has_bits & 0x00002000u) { + if (from.has_gamelistupdatemessage()) { mutable_gamelistupdatemessage()->::GameListUpdateMessage::MergeFrom(from.gamelistupdatemessage()); } - if (cached_has_bits & 0x00004000u) { + if (from.has_gamelistplayerjoinedmessage()) { mutable_gamelistplayerjoinedmessage()->::GameListPlayerJoinedMessage::MergeFrom(from.gamelistplayerjoinedmessage()); } - if (cached_has_bits & 0x00008000u) { + } + 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) { + if (from.has_gamelistadminchangedmessage()) { mutable_gamelistadminchangedmessage()->::GameListAdminChangedMessage::MergeFrom(from.gamelistadminchangedmessage()); } - if (cached_has_bits & 0x00020000u) { + if (from.has_playerinforequestmessage()) { mutable_playerinforequestmessage()->::PlayerInfoRequestMessage::MergeFrom(from.playerinforequestmessage()); } - if (cached_has_bits & 0x00040000u) { + if (from.has_playerinforeplymessage()) { mutable_playerinforeplymessage()->::PlayerInfoReplyMessage::MergeFrom(from.playerinforeplymessage()); } - if (cached_has_bits & 0x00080000u) { + if (from.has_subscriptionrequestmessage()) { mutable_subscriptionrequestmessage()->::SubscriptionRequestMessage::MergeFrom(from.subscriptionrequestmessage()); } - if (cached_has_bits & 0x00100000u) { + if (from.has_joinexistinggamemessage()) { mutable_joinexistinggamemessage()->::JoinExistingGameMessage::MergeFrom(from.joinexistinggamemessage()); } - if (cached_has_bits & 0x00200000u) { + if (from.has_joinnewgamemessage()) { mutable_joinnewgamemessage()->::JoinNewGameMessage::MergeFrom(from.joinnewgamemessage()); } - if (cached_has_bits & 0x00400000u) { + if (from.has_rejoinexistinggamemessage()) { mutable_rejoinexistinggamemessage()->::RejoinExistingGameMessage::MergeFrom(from.rejoinexistinggamemessage()); } - if (cached_has_bits & 0x00800000u) { + } + 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) { + if (from.has_joingamefailedmessage()) { mutable_joingamefailedmessage()->::JoinGameFailedMessage::MergeFrom(from.joingamefailedmessage()); } - if (cached_has_bits & 0x02000000u) { + if (from.has_gameplayerjoinedmessage()) { mutable_gameplayerjoinedmessage()->::GamePlayerJoinedMessage::MergeFrom(from.gameplayerjoinedmessage()); } - if (cached_has_bits & 0x04000000u) { + if (from.has_gameplayerleftmessage()) { mutable_gameplayerleftmessage()->::GamePlayerLeftMessage::MergeFrom(from.gameplayerleftmessage()); } - if (cached_has_bits & 0x08000000u) { + if (from.has_gameadminchangedmessage()) { mutable_gameadminchangedmessage()->::GameAdminChangedMessage::MergeFrom(from.gameadminchangedmessage()); } - if (cached_has_bits & 0x10000000u) { + if (from.has_removedfromgamemessage()) { mutable_removedfromgamemessage()->::RemovedFromGameMessage::MergeFrom(from.removedfromgamemessage()); } - if (cached_has_bits & 0x20000000u) { + if (from.has_kickplayerrequestmessage()) { mutable_kickplayerrequestmessage()->::KickPlayerRequestMessage::MergeFrom(from.kickplayerrequestmessage()); } - if (cached_has_bits & 0x40000000u) { + if (from.has_leavegamerequestmessage()) { mutable_leavegamerequestmessage()->::LeaveGameRequestMessage::MergeFrom(from.leavegamerequestmessage()); } - if (cached_has_bits & 0x80000000u) { + } + 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) { + if (from.has_invitenotifymessage()) { mutable_invitenotifymessage()->::InviteNotifyMessage::MergeFrom(from.invitenotifymessage()); } - if (cached_has_bits & 0x00000002u) { + if (from.has_rejectgameinvitationmessage()) { mutable_rejectgameinvitationmessage()->::RejectGameInvitationMessage::MergeFrom(from.rejectgameinvitationmessage()); } - if (cached_has_bits & 0x00000004u) { + if (from.has_rejectinvnotifymessage()) { mutable_rejectinvnotifymessage()->::RejectInvNotifyMessage::MergeFrom(from.rejectinvnotifymessage()); } - if (cached_has_bits & 0x00000008u) { + if (from.has_starteventmessage()) { mutable_starteventmessage()->::StartEventMessage::MergeFrom(from.starteventmessage()); } - if (cached_has_bits & 0x00000010u) { + if (from.has_starteventackmessage()) { mutable_starteventackmessage()->::StartEventAckMessage::MergeFrom(from.starteventackmessage()); } - if (cached_has_bits & 0x00000020u) { + if (from.has_gamestartinitialmessage()) { mutable_gamestartinitialmessage()->::GameStartInitialMessage::MergeFrom(from.gamestartinitialmessage()); } - if (cached_has_bits & 0x00000040u) { + if (from.has_gamestartrejoinmessage()) { mutable_gamestartrejoinmessage()->::GameStartRejoinMessage::MergeFrom(from.gamestartrejoinmessage()); } - if (cached_has_bits & 0x00000080u) { + } + 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) { + if (from.has_playersturnmessage()) { mutable_playersturnmessage()->::PlayersTurnMessage::MergeFrom(from.playersturnmessage()); } - if (cached_has_bits & 0x00000200u) { + if (from.has_myactionrequestmessage()) { mutable_myactionrequestmessage()->::MyActionRequestMessage::MergeFrom(from.myactionrequestmessage()); } - if (cached_has_bits & 0x00000400u) { + if (from.has_youractionrejectedmessage()) { mutable_youractionrejectedmessage()->::YourActionRejectedMessage::MergeFrom(from.youractionrejectedmessage()); } - if (cached_has_bits & 0x00000800u) { + if (from.has_playersactiondonemessage()) { mutable_playersactiondonemessage()->::PlayersActionDoneMessage::MergeFrom(from.playersactiondonemessage()); } - if (cached_has_bits & 0x00001000u) { + if (from.has_dealflopcardsmessage()) { mutable_dealflopcardsmessage()->::DealFlopCardsMessage::MergeFrom(from.dealflopcardsmessage()); } - if (cached_has_bits & 0x00002000u) { + if (from.has_dealturncardmessage()) { mutable_dealturncardmessage()->::DealTurnCardMessage::MergeFrom(from.dealturncardmessage()); } - if (cached_has_bits & 0x00004000u) { + if (from.has_dealrivercardmessage()) { mutable_dealrivercardmessage()->::DealRiverCardMessage::MergeFrom(from.dealrivercardmessage()); } - if (cached_has_bits & 0x00008000u) { + } + 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) { + if (from.has_endofhandshowcardsmessage()) { mutable_endofhandshowcardsmessage()->::EndOfHandShowCardsMessage::MergeFrom(from.endofhandshowcardsmessage()); } - if (cached_has_bits & 0x00020000u) { + if (from.has_endofhandhidecardsmessage()) { mutable_endofhandhidecardsmessage()->::EndOfHandHideCardsMessage::MergeFrom(from.endofhandhidecardsmessage()); } - if (cached_has_bits & 0x00040000u) { + if (from.has_showmycardsrequestmessage()) { mutable_showmycardsrequestmessage()->::ShowMyCardsRequestMessage::MergeFrom(from.showmycardsrequestmessage()); } - if (cached_has_bits & 0x00080000u) { + if (from.has_afterhandshowcardsmessage()) { mutable_afterhandshowcardsmessage()->::AfterHandShowCardsMessage::MergeFrom(from.afterhandshowcardsmessage()); } - if (cached_has_bits & 0x00100000u) { + if (from.has_endofgamemessage()) { mutable_endofgamemessage()->::EndOfGameMessage::MergeFrom(from.endofgamemessage()); } - if (cached_has_bits & 0x00200000u) { + if (from.has_playeridchangedmessage()) { mutable_playeridchangedmessage()->::PlayerIdChangedMessage::MergeFrom(from.playeridchangedmessage()); } - if (cached_has_bits & 0x00400000u) { + if (from.has_askkickplayermessage()) { mutable_askkickplayermessage()->::AskKickPlayerMessage::MergeFrom(from.askkickplayermessage()); } - if (cached_has_bits & 0x00800000u) { + } + 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) { + if (from.has_startkickpetitionmessage()) { mutable_startkickpetitionmessage()->::StartKickPetitionMessage::MergeFrom(from.startkickpetitionmessage()); } - if (cached_has_bits & 0x02000000u) { + if (from.has_votekickrequestmessage()) { mutable_votekickrequestmessage()->::VoteKickRequestMessage::MergeFrom(from.votekickrequestmessage()); } - if (cached_has_bits & 0x04000000u) { + if (from.has_votekickreplymessage()) { mutable_votekickreplymessage()->::VoteKickReplyMessage::MergeFrom(from.votekickreplymessage()); } - if (cached_has_bits & 0x08000000u) { + if (from.has_kickpetitionupdatemessage()) { mutable_kickpetitionupdatemessage()->::KickPetitionUpdateMessage::MergeFrom(from.kickpetitionupdatemessage()); } - if (cached_has_bits & 0x10000000u) { + if (from.has_endkickpetitionmessage()) { mutable_endkickpetitionmessage()->::EndKickPetitionMessage::MergeFrom(from.endkickpetitionmessage()); } - if (cached_has_bits & 0x20000000u) { + if (from.has_statisticsmessage()) { mutable_statisticsmessage()->::StatisticsMessage::MergeFrom(from.statisticsmessage()); } - if (cached_has_bits & 0x40000000u) { + if (from.has_chatrequestmessage()) { mutable_chatrequestmessage()->::ChatRequestMessage::MergeFrom(from.chatrequestmessage()); } - if (cached_has_bits & 0x80000000u) { + } + 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) { + if (from.has_chatrejectmessage()) { mutable_chatrejectmessage()->::ChatRejectMessage::MergeFrom(from.chatrejectmessage()); } - if (cached_has_bits & 0x00000002u) { + if (from.has_dialogmessage()) { mutable_dialogmessage()->::DialogMessage::MergeFrom(from.dialogmessage()); } - if (cached_has_bits & 0x00000004u) { + if (from.has_timeoutwarningmessage()) { mutable_timeoutwarningmessage()->::TimeoutWarningMessage::MergeFrom(from.timeoutwarningmessage()); } - if (cached_has_bits & 0x00000008u) { + if (from.has_resettimeoutmessage()) { mutable_resettimeoutmessage()->::ResetTimeoutMessage::MergeFrom(from.resettimeoutmessage()); } - if (cached_has_bits & 0x00000010u) { + if (from.has_reportavatarmessage()) { mutable_reportavatarmessage()->::ReportAvatarMessage::MergeFrom(from.reportavatarmessage()); } - if (cached_has_bits & 0x00000020u) { + if (from.has_reportavatarackmessage()) { mutable_reportavatarackmessage()->::ReportAvatarAckMessage::MergeFrom(from.reportavatarackmessage()); } - if (cached_has_bits & 0x00000040u) { + if (from.has_reportgamemessage()) { mutable_reportgamemessage()->::ReportGameMessage::MergeFrom(from.reportgamemessage()); } - if (cached_has_bits & 0x00000080u) { + } + 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) { + if (from.has_errormessage()) { mutable_errormessage()->::ErrorMessage::MergeFrom(from.errormessage()); } - if (cached_has_bits & 0x00000200u) { + if (from.has_adminremovegamemessage()) { mutable_adminremovegamemessage()->::AdminRemoveGameMessage::MergeFrom(from.adminremovegamemessage()); } - if (cached_has_bits & 0x00000400u) { + if (from.has_adminremovegameackmessage()) { mutable_adminremovegameackmessage()->::AdminRemoveGameAckMessage::MergeFrom(from.adminremovegameackmessage()); } - if (cached_has_bits & 0x00000800u) { + if (from.has_adminbanplayermessage()) { mutable_adminbanplayermessage()->::AdminBanPlayerMessage::MergeFrom(from.adminbanplayermessage()); } - if (cached_has_bits & 0x00001000u) { + if (from.has_adminbanplayerackmessage()) { mutable_adminbanplayerackmessage()->::AdminBanPlayerAckMessage::MergeFrom(from.adminbanplayerackmessage()); } - if (cached_has_bits & 0x00002000u) { + if (from.has_gamelistspectatorjoinedmessage()) { mutable_gamelistspectatorjoinedmessage()->::GameListSpectatorJoinedMessage::MergeFrom(from.gamelistspectatorjoinedmessage()); } - if (cached_has_bits & 0x00004000u) { + if (from.has_gamelistspectatorleftmessage()) { mutable_gamelistspectatorleftmessage()->::GameListSpectatorLeftMessage::MergeFrom(from.gamelistspectatorleftmessage()); } - if (cached_has_bits & 0x00008000u) { + } + 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) { + if (from.has_gamespectatorleftmessage()) { mutable_gamespectatorleftmessage()->::GameSpectatorLeftMessage::MergeFrom(from.gamespectatorleftmessage()); } - 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_[2] & 0x00020000) != 0x00020000) return false; + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + if (has_announcemessage()) { - if (!this->announcemessage_->IsInitialized()) return false; + if (!this->announcemessage().IsInitialized()) return false; } if (has_initmessage()) { - if (!this->initmessage_->IsInitialized()) return false; + if (!this->initmessage().IsInitialized()) return false; } if (has_authserverchallengemessage()) { - if (!this->authserverchallengemessage_->IsInitialized()) return false; + if (!this->authserverchallengemessage().IsInitialized()) return false; } if (has_authclientresponsemessage()) { - if (!this->authclientresponsemessage_->IsInitialized()) return false; + if (!this->authclientresponsemessage().IsInitialized()) return false; } if (has_authserververificationmessage()) { - if (!this->authserververificationmessage_->IsInitialized()) return false; + if (!this->authserververificationmessage().IsInitialized()) return false; } if (has_initackmessage()) { - if (!this->initackmessage_->IsInitialized()) return false; + if (!this->initackmessage().IsInitialized()) return false; } if (has_avatarrequestmessage()) { - if (!this->avatarrequestmessage_->IsInitialized()) return false; + if (!this->avatarrequestmessage().IsInitialized()) return false; } if (has_avatarheadermessage()) { - if (!this->avatarheadermessage_->IsInitialized()) return false; + if (!this->avatarheadermessage().IsInitialized()) return false; } if (has_avatardatamessage()) { - if (!this->avatardatamessage_->IsInitialized()) return false; + if (!this->avatardatamessage().IsInitialized()) return false; } if (has_avatarendmessage()) { - if (!this->avatarendmessage_->IsInitialized()) return false; + if (!this->avatarendmessage().IsInitialized()) return false; } if (has_unknownavatarmessage()) { - if (!this->unknownavatarmessage_->IsInitialized()) return false; + if (!this->unknownavatarmessage().IsInitialized()) return false; } if (has_playerlistmessage()) { - if (!this->playerlistmessage_->IsInitialized()) return false; + if (!this->playerlistmessage().IsInitialized()) return false; } if (has_gamelistnewmessage()) { - if (!this->gamelistnewmessage_->IsInitialized()) return false; + if (!this->gamelistnewmessage().IsInitialized()) return false; } if (has_gamelistupdatemessage()) { - if (!this->gamelistupdatemessage_->IsInitialized()) return false; + if (!this->gamelistupdatemessage().IsInitialized()) return false; } if (has_gamelistplayerjoinedmessage()) { - if (!this->gamelistplayerjoinedmessage_->IsInitialized()) return false; + if (!this->gamelistplayerjoinedmessage().IsInitialized()) return false; } if (has_gamelistplayerleftmessage()) { - if (!this->gamelistplayerleftmessage_->IsInitialized()) return false; + if (!this->gamelistplayerleftmessage().IsInitialized()) return false; } if (has_gamelistadminchangedmessage()) { - if (!this->gamelistadminchangedmessage_->IsInitialized()) return false; + if (!this->gamelistadminchangedmessage().IsInitialized()) return false; } if (has_playerinforeplymessage()) { - if (!this->playerinforeplymessage_->IsInitialized()) return false; + if (!this->playerinforeplymessage().IsInitialized()) return false; } if (has_subscriptionrequestmessage()) { - if (!this->subscriptionrequestmessage_->IsInitialized()) return false; + if (!this->subscriptionrequestmessage().IsInitialized()) return false; } if (has_joinexistinggamemessage()) { - if (!this->joinexistinggamemessage_->IsInitialized()) return false; + if (!this->joinexistinggamemessage().IsInitialized()) return false; } if (has_joinnewgamemessage()) { - if (!this->joinnewgamemessage_->IsInitialized()) return false; + if (!this->joinnewgamemessage().IsInitialized()) return false; } if (has_rejoinexistinggamemessage()) { - if (!this->rejoinexistinggamemessage_->IsInitialized()) return false; + if (!this->rejoinexistinggamemessage().IsInitialized()) return false; } if (has_joingameackmessage()) { - if (!this->joingameackmessage_->IsInitialized()) return false; + if (!this->joingameackmessage().IsInitialized()) return false; } if (has_joingamefailedmessage()) { - if (!this->joingamefailedmessage_->IsInitialized()) return false; + if (!this->joingamefailedmessage().IsInitialized()) return false; } if (has_gameplayerjoinedmessage()) { - if (!this->gameplayerjoinedmessage_->IsInitialized()) return false; + if (!this->gameplayerjoinedmessage().IsInitialized()) return false; } if (has_gameplayerleftmessage()) { - if (!this->gameplayerleftmessage_->IsInitialized()) return false; + if (!this->gameplayerleftmessage().IsInitialized()) return false; } if (has_gameadminchangedmessage()) { - if (!this->gameadminchangedmessage_->IsInitialized()) return false; + if (!this->gameadminchangedmessage().IsInitialized()) return false; } if (has_removedfromgamemessage()) { - if (!this->removedfromgamemessage_->IsInitialized()) return false; + if (!this->removedfromgamemessage().IsInitialized()) return false; } if (has_kickplayerrequestmessage()) { - if (!this->kickplayerrequestmessage_->IsInitialized()) return false; + if (!this->kickplayerrequestmessage().IsInitialized()) return false; } if (has_leavegamerequestmessage()) { - if (!this->leavegamerequestmessage_->IsInitialized()) return false; + if (!this->leavegamerequestmessage().IsInitialized()) return false; } if (has_inviteplayertogamemessage()) { - if (!this->inviteplayertogamemessage_->IsInitialized()) return false; + if (!this->inviteplayertogamemessage().IsInitialized()) return false; } if (has_invitenotifymessage()) { - if (!this->invitenotifymessage_->IsInitialized()) return false; + if (!this->invitenotifymessage().IsInitialized()) return false; } if (has_rejectgameinvitationmessage()) { - if (!this->rejectgameinvitationmessage_->IsInitialized()) return false; + if (!this->rejectgameinvitationmessage().IsInitialized()) return false; } if (has_rejectinvnotifymessage()) { - if (!this->rejectinvnotifymessage_->IsInitialized()) return false; + if (!this->rejectinvnotifymessage().IsInitialized()) return false; } if (has_starteventmessage()) { - if (!this->starteventmessage_->IsInitialized()) return false; + if (!this->starteventmessage().IsInitialized()) return false; } if (has_starteventackmessage()) { - if (!this->starteventackmessage_->IsInitialized()) return false; + if (!this->starteventackmessage().IsInitialized()) return false; } if (has_gamestartinitialmessage()) { - if (!this->gamestartinitialmessage_->IsInitialized()) return false; + if (!this->gamestartinitialmessage().IsInitialized()) return false; } if (has_gamestartrejoinmessage()) { - if (!this->gamestartrejoinmessage_->IsInitialized()) return false; + if (!this->gamestartrejoinmessage().IsInitialized()) return false; } if (has_handstartmessage()) { - if (!this->handstartmessage_->IsInitialized()) return false; + if (!this->handstartmessage().IsInitialized()) return false; } if (has_playersturnmessage()) { - if (!this->playersturnmessage_->IsInitialized()) return false; + if (!this->playersturnmessage().IsInitialized()) return false; } if (has_myactionrequestmessage()) { - if (!this->myactionrequestmessage_->IsInitialized()) return false; + if (!this->myactionrequestmessage().IsInitialized()) return false; } if (has_youractionrejectedmessage()) { - if (!this->youractionrejectedmessage_->IsInitialized()) return false; + if (!this->youractionrejectedmessage().IsInitialized()) return false; } if (has_playersactiondonemessage()) { - if (!this->playersactiondonemessage_->IsInitialized()) return false; + if (!this->playersactiondonemessage().IsInitialized()) return false; } if (has_dealflopcardsmessage()) { - if (!this->dealflopcardsmessage_->IsInitialized()) return false; + if (!this->dealflopcardsmessage().IsInitialized()) return false; } if (has_dealturncardmessage()) { - if (!this->dealturncardmessage_->IsInitialized()) return false; + if (!this->dealturncardmessage().IsInitialized()) return false; } if (has_dealrivercardmessage()) { - if (!this->dealrivercardmessage_->IsInitialized()) return false; + if (!this->dealrivercardmessage().IsInitialized()) return false; } if (has_allinshowcardsmessage()) { - if (!this->allinshowcardsmessage_->IsInitialized()) return false; + if (!this->allinshowcardsmessage().IsInitialized()) return false; } if (has_endofhandshowcardsmessage()) { - if (!this->endofhandshowcardsmessage_->IsInitialized()) return false; + if (!this->endofhandshowcardsmessage().IsInitialized()) return false; } if (has_endofhandhidecardsmessage()) { - if (!this->endofhandhidecardsmessage_->IsInitialized()) return false; + if (!this->endofhandhidecardsmessage().IsInitialized()) return false; } if (has_afterhandshowcardsmessage()) { - if (!this->afterhandshowcardsmessage_->IsInitialized()) return false; + if (!this->afterhandshowcardsmessage().IsInitialized()) return false; } if (has_endofgamemessage()) { - if (!this->endofgamemessage_->IsInitialized()) return false; + if (!this->endofgamemessage().IsInitialized()) return false; } if (has_playeridchangedmessage()) { - if (!this->playeridchangedmessage_->IsInitialized()) return false; + if (!this->playeridchangedmessage().IsInitialized()) return false; } if (has_askkickplayermessage()) { - if (!this->askkickplayermessage_->IsInitialized()) return false; + if (!this->askkickplayermessage().IsInitialized()) return false; } if (has_askkickdeniedmessage()) { - if (!this->askkickdeniedmessage_->IsInitialized()) return false; + if (!this->askkickdeniedmessage().IsInitialized()) return false; } if (has_startkickpetitionmessage()) { - if (!this->startkickpetitionmessage_->IsInitialized()) return false; + if (!this->startkickpetitionmessage().IsInitialized()) return false; } if (has_votekickrequestmessage()) { - if (!this->votekickrequestmessage_->IsInitialized()) return false; + if (!this->votekickrequestmessage().IsInitialized()) return false; } if (has_votekickreplymessage()) { - if (!this->votekickreplymessage_->IsInitialized()) return false; + if (!this->votekickreplymessage().IsInitialized()) return false; } if (has_kickpetitionupdatemessage()) { - if (!this->kickpetitionupdatemessage_->IsInitialized()) return false; + if (!this->kickpetitionupdatemessage().IsInitialized()) return false; } if (has_endkickpetitionmessage()) { - if (!this->endkickpetitionmessage_->IsInitialized()) return false; + if (!this->endkickpetitionmessage().IsInitialized()) return false; } if (has_statisticsmessage()) { - if (!this->statisticsmessage_->IsInitialized()) return false; + if (!this->statisticsmessage().IsInitialized()) return false; } if (has_chatrequestmessage()) { - if (!this->chatrequestmessage_->IsInitialized()) return false; + if (!this->chatrequestmessage().IsInitialized()) return false; } if (has_chatmessage()) { - if (!this->chatmessage_->IsInitialized()) return false; + if (!this->chatmessage().IsInitialized()) return false; } if (has_chatrejectmessage()) { - if (!this->chatrejectmessage_->IsInitialized()) return false; + if (!this->chatrejectmessage().IsInitialized()) return false; } if (has_dialogmessage()) { - if (!this->dialogmessage_->IsInitialized()) return false; + if (!this->dialogmessage().IsInitialized()) return false; } if (has_timeoutwarningmessage()) { - if (!this->timeoutwarningmessage_->IsInitialized()) return false; + if (!this->timeoutwarningmessage().IsInitialized()) return false; } if (has_reportavatarmessage()) { - if (!this->reportavatarmessage_->IsInitialized()) return false; + if (!this->reportavatarmessage().IsInitialized()) return false; } if (has_reportavatarackmessage()) { - if (!this->reportavatarackmessage_->IsInitialized()) return false; + if (!this->reportavatarackmessage().IsInitialized()) return false; } if (has_reportgamemessage()) { - if (!this->reportgamemessage_->IsInitialized()) return false; + if (!this->reportgamemessage().IsInitialized()) return false; } if (has_reportgameackmessage()) { - if (!this->reportgameackmessage_->IsInitialized()) return false; + if (!this->reportgameackmessage().IsInitialized()) return false; } if (has_errormessage()) { - if (!this->errormessage_->IsInitialized()) return false; + if (!this->errormessage().IsInitialized()) return false; } if (has_adminremovegamemessage()) { - if (!this->adminremovegamemessage_->IsInitialized()) return false; + if (!this->adminremovegamemessage().IsInitialized()) return false; } if (has_adminremovegameackmessage()) { - if (!this->adminremovegameackmessage_->IsInitialized()) return false; + if (!this->adminremovegameackmessage().IsInitialized()) return false; } if (has_adminbanplayermessage()) { - if (!this->adminbanplayermessage_->IsInitialized()) return false; + if (!this->adminbanplayermessage().IsInitialized()) return false; } if (has_adminbanplayerackmessage()) { - if (!this->adminbanplayerackmessage_->IsInitialized()) return false; + if (!this->adminbanplayerackmessage().IsInitialized()) return false; } if (has_gamelistspectatorjoinedmessage()) { - if (!this->gamelistspectatorjoinedmessage_->IsInitialized()) return false; + if (!this->gamelistspectatorjoinedmessage().IsInitialized()) return false; } if (has_gamelistspectatorleftmessage()) { - if (!this->gamelistspectatorleftmessage_->IsInitialized()) return false; + if (!this->gamelistspectatorleftmessage().IsInitialized()) return false; } if (has_gamespectatorjoinedmessage()) { - if (!this->gamespectatorjoinedmessage_->IsInitialized()) return false; + if (!this->gamespectatorjoinedmessage().IsInitialized()) return false; } if (has_gamespectatorleftmessage()) { - if (!this->gamespectatorleftmessage_->IsInitialized()) return false; + if (!this->gamespectatorleftmessage().IsInitialized()) return false; } return true; } void PokerTHMessage::Swap(PokerTHMessage* other) { - if (other == this) return; - InternalSwap(other); -} -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]); - swap(announcemessage_, other->announcemessage_); - swap(initmessage_, other->initmessage_); - swap(authserverchallengemessage_, other->authserverchallengemessage_); - swap(authclientresponsemessage_, other->authclientresponsemessage_); - swap(authserververificationmessage_, other->authserververificationmessage_); - swap(initackmessage_, other->initackmessage_); - swap(avatarrequestmessage_, other->avatarrequestmessage_); - swap(avatarheadermessage_, other->avatarheadermessage_); - swap(avatardatamessage_, other->avatardatamessage_); - swap(avatarendmessage_, other->avatarendmessage_); - swap(unknownavatarmessage_, other->unknownavatarmessage_); - swap(playerlistmessage_, other->playerlistmessage_); - swap(gamelistnewmessage_, other->gamelistnewmessage_); - swap(gamelistupdatemessage_, other->gamelistupdatemessage_); - swap(gamelistplayerjoinedmessage_, other->gamelistplayerjoinedmessage_); - swap(gamelistplayerleftmessage_, other->gamelistplayerleftmessage_); - swap(gamelistadminchangedmessage_, other->gamelistadminchangedmessage_); - swap(playerinforequestmessage_, other->playerinforequestmessage_); - swap(playerinforeplymessage_, other->playerinforeplymessage_); - swap(subscriptionrequestmessage_, other->subscriptionrequestmessage_); - swap(joinexistinggamemessage_, other->joinexistinggamemessage_); - swap(joinnewgamemessage_, other->joinnewgamemessage_); - swap(rejoinexistinggamemessage_, other->rejoinexistinggamemessage_); - swap(joingameackmessage_, other->joingameackmessage_); - swap(joingamefailedmessage_, other->joingamefailedmessage_); - swap(gameplayerjoinedmessage_, other->gameplayerjoinedmessage_); - swap(gameplayerleftmessage_, other->gameplayerleftmessage_); - swap(gameadminchangedmessage_, other->gameadminchangedmessage_); - swap(removedfromgamemessage_, other->removedfromgamemessage_); - swap(kickplayerrequestmessage_, other->kickplayerrequestmessage_); - swap(leavegamerequestmessage_, other->leavegamerequestmessage_); - swap(inviteplayertogamemessage_, other->inviteplayertogamemessage_); - swap(invitenotifymessage_, other->invitenotifymessage_); - swap(rejectgameinvitationmessage_, other->rejectgameinvitationmessage_); - swap(rejectinvnotifymessage_, other->rejectinvnotifymessage_); - swap(starteventmessage_, other->starteventmessage_); - swap(starteventackmessage_, other->starteventackmessage_); - swap(gamestartinitialmessage_, other->gamestartinitialmessage_); - swap(gamestartrejoinmessage_, other->gamestartrejoinmessage_); - swap(handstartmessage_, other->handstartmessage_); - swap(playersturnmessage_, other->playersturnmessage_); - swap(myactionrequestmessage_, other->myactionrequestmessage_); - swap(youractionrejectedmessage_, other->youractionrejectedmessage_); - swap(playersactiondonemessage_, other->playersactiondonemessage_); - swap(dealflopcardsmessage_, other->dealflopcardsmessage_); - swap(dealturncardmessage_, other->dealturncardmessage_); - swap(dealrivercardmessage_, other->dealrivercardmessage_); - swap(allinshowcardsmessage_, other->allinshowcardsmessage_); - swap(endofhandshowcardsmessage_, other->endofhandshowcardsmessage_); - swap(endofhandhidecardsmessage_, other->endofhandhidecardsmessage_); - swap(showmycardsrequestmessage_, other->showmycardsrequestmessage_); - swap(afterhandshowcardsmessage_, other->afterhandshowcardsmessage_); - swap(endofgamemessage_, other->endofgamemessage_); - swap(playeridchangedmessage_, other->playeridchangedmessage_); - swap(askkickplayermessage_, other->askkickplayermessage_); - swap(askkickdeniedmessage_, other->askkickdeniedmessage_); - swap(startkickpetitionmessage_, other->startkickpetitionmessage_); - swap(votekickrequestmessage_, other->votekickrequestmessage_); - swap(votekickreplymessage_, other->votekickreplymessage_); - swap(kickpetitionupdatemessage_, other->kickpetitionupdatemessage_); - swap(endkickpetitionmessage_, other->endkickpetitionmessage_); - swap(statisticsmessage_, other->statisticsmessage_); - swap(chatrequestmessage_, other->chatrequestmessage_); - swap(chatmessage_, other->chatmessage_); - swap(chatrejectmessage_, other->chatrejectmessage_); - swap(dialogmessage_, other->dialogmessage_); - swap(timeoutwarningmessage_, other->timeoutwarningmessage_); - swap(resettimeoutmessage_, other->resettimeoutmessage_); - swap(reportavatarmessage_, other->reportavatarmessage_); - swap(reportavatarackmessage_, other->reportavatarackmessage_); - swap(reportgamemessage_, other->reportgamemessage_); - swap(reportgameackmessage_, other->reportgameackmessage_); - swap(errormessage_, other->errormessage_); - swap(adminremovegamemessage_, other->adminremovegamemessage_); - swap(adminremovegameackmessage_, other->adminremovegameackmessage_); - swap(adminbanplayermessage_, other->adminbanplayermessage_); - swap(adminbanplayerackmessage_, other->adminbanplayerackmessage_); - swap(gamelistspectatorjoinedmessage_, other->gamelistspectatorjoinedmessage_); - swap(gamelistspectatorleftmessage_, other->gamelistspectatorleftmessage_); - swap(gamespectatorjoinedmessage_, other->gamespectatorjoinedmessage_); - swap(gamespectatorleftmessage_, other->gamespectatorleftmessage_); - swap(messagetype_, other->messagetype_); + 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(_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_); + } } ::std::string PokerTHMessage::GetTypeName() const { @@ -39410,283 +24871,5 @@ void PokerTHMessage::InternalSwap(PokerTHMessage* other) { // @@protoc_insertion_point(namespace_scope) -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::NetGameInfo* Arena::CreateMaybeMessage< ::NetGameInfo >(Arena* arena) { - return Arena::CreateInternal< ::NetGameInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerResult* Arena::CreateMaybeMessage< ::PlayerResult >(Arena* arena) { - return Arena::CreateInternal< ::PlayerResult >(arena); -} -template<> PROTOBUF_NOINLINE ::AnnounceMessage_Version* Arena::CreateMaybeMessage< ::AnnounceMessage_Version >(Arena* arena) { - return Arena::CreateInternal< ::AnnounceMessage_Version >(arena); -} -template<> PROTOBUF_NOINLINE ::AnnounceMessage* Arena::CreateMaybeMessage< ::AnnounceMessage >(Arena* arena) { - return Arena::CreateInternal< ::AnnounceMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::InitMessage* Arena::CreateMaybeMessage< ::InitMessage >(Arena* arena) { - return Arena::CreateInternal< ::InitMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AuthServerChallengeMessage* Arena::CreateMaybeMessage< ::AuthServerChallengeMessage >(Arena* arena) { - return Arena::CreateInternal< ::AuthServerChallengeMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AuthClientResponseMessage* Arena::CreateMaybeMessage< ::AuthClientResponseMessage >(Arena* arena) { - return Arena::CreateInternal< ::AuthClientResponseMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AuthServerVerificationMessage* Arena::CreateMaybeMessage< ::AuthServerVerificationMessage >(Arena* arena) { - return Arena::CreateInternal< ::AuthServerVerificationMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::InitAckMessage* Arena::CreateMaybeMessage< ::InitAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::InitAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AvatarRequestMessage* Arena::CreateMaybeMessage< ::AvatarRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::AvatarRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AvatarHeaderMessage* Arena::CreateMaybeMessage< ::AvatarHeaderMessage >(Arena* arena) { - return Arena::CreateInternal< ::AvatarHeaderMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AvatarDataMessage* Arena::CreateMaybeMessage< ::AvatarDataMessage >(Arena* arena) { - return Arena::CreateInternal< ::AvatarDataMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AvatarEndMessage* Arena::CreateMaybeMessage< ::AvatarEndMessage >(Arena* arena) { - return Arena::CreateInternal< ::AvatarEndMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::UnknownAvatarMessage* Arena::CreateMaybeMessage< ::UnknownAvatarMessage >(Arena* arena) { - return Arena::CreateInternal< ::UnknownAvatarMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerListMessage* Arena::CreateMaybeMessage< ::PlayerListMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayerListMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListNewMessage* Arena::CreateMaybeMessage< ::GameListNewMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListNewMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListUpdateMessage* Arena::CreateMaybeMessage< ::GameListUpdateMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListUpdateMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListPlayerJoinedMessage* Arena::CreateMaybeMessage< ::GameListPlayerJoinedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListPlayerJoinedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListPlayerLeftMessage* Arena::CreateMaybeMessage< ::GameListPlayerLeftMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListPlayerLeftMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListSpectatorJoinedMessage* Arena::CreateMaybeMessage< ::GameListSpectatorJoinedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListSpectatorJoinedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListSpectatorLeftMessage* Arena::CreateMaybeMessage< ::GameListSpectatorLeftMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListSpectatorLeftMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameListAdminChangedMessage* Arena::CreateMaybeMessage< ::GameListAdminChangedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameListAdminChangedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerInfoRequestMessage* Arena::CreateMaybeMessage< ::PlayerInfoRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayerInfoRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData >(Arena* arena) { - return Arena::CreateInternal< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage_PlayerInfoData* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage_PlayerInfoData >(Arena* arena) { - return Arena::CreateInternal< ::PlayerInfoReplyMessage_PlayerInfoData >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerInfoReplyMessage* Arena::CreateMaybeMessage< ::PlayerInfoReplyMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayerInfoReplyMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::SubscriptionRequestMessage* Arena::CreateMaybeMessage< ::SubscriptionRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::SubscriptionRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::JoinExistingGameMessage* Arena::CreateMaybeMessage< ::JoinExistingGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::JoinExistingGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::JoinNewGameMessage* Arena::CreateMaybeMessage< ::JoinNewGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::JoinNewGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::RejoinExistingGameMessage* Arena::CreateMaybeMessage< ::RejoinExistingGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::RejoinExistingGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::JoinGameAckMessage* Arena::CreateMaybeMessage< ::JoinGameAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::JoinGameAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::JoinGameFailedMessage* Arena::CreateMaybeMessage< ::JoinGameFailedMessage >(Arena* arena) { - return Arena::CreateInternal< ::JoinGameFailedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GamePlayerJoinedMessage* Arena::CreateMaybeMessage< ::GamePlayerJoinedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GamePlayerJoinedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GamePlayerLeftMessage* Arena::CreateMaybeMessage< ::GamePlayerLeftMessage >(Arena* arena) { - return Arena::CreateInternal< ::GamePlayerLeftMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameSpectatorJoinedMessage* Arena::CreateMaybeMessage< ::GameSpectatorJoinedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameSpectatorJoinedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameSpectatorLeftMessage* Arena::CreateMaybeMessage< ::GameSpectatorLeftMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameSpectatorLeftMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameAdminChangedMessage* Arena::CreateMaybeMessage< ::GameAdminChangedMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameAdminChangedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::RemovedFromGameMessage* Arena::CreateMaybeMessage< ::RemovedFromGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::RemovedFromGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::KickPlayerRequestMessage* Arena::CreateMaybeMessage< ::KickPlayerRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::KickPlayerRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::LeaveGameRequestMessage* Arena::CreateMaybeMessage< ::LeaveGameRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::LeaveGameRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::InvitePlayerToGameMessage* Arena::CreateMaybeMessage< ::InvitePlayerToGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::InvitePlayerToGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::InviteNotifyMessage* Arena::CreateMaybeMessage< ::InviteNotifyMessage >(Arena* arena) { - return Arena::CreateInternal< ::InviteNotifyMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::RejectGameInvitationMessage* Arena::CreateMaybeMessage< ::RejectGameInvitationMessage >(Arena* arena) { - return Arena::CreateInternal< ::RejectGameInvitationMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::RejectInvNotifyMessage* Arena::CreateMaybeMessage< ::RejectInvNotifyMessage >(Arena* arena) { - return Arena::CreateInternal< ::RejectInvNotifyMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::StartEventMessage* Arena::CreateMaybeMessage< ::StartEventMessage >(Arena* arena) { - return Arena::CreateInternal< ::StartEventMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::StartEventAckMessage* Arena::CreateMaybeMessage< ::StartEventAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::StartEventAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameStartInitialMessage* Arena::CreateMaybeMessage< ::GameStartInitialMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameStartInitialMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::GameStartRejoinMessage_RejoinPlayerData* Arena::CreateMaybeMessage< ::GameStartRejoinMessage_RejoinPlayerData >(Arena* arena) { - return Arena::CreateInternal< ::GameStartRejoinMessage_RejoinPlayerData >(arena); -} -template<> PROTOBUF_NOINLINE ::GameStartRejoinMessage* Arena::CreateMaybeMessage< ::GameStartRejoinMessage >(Arena* arena) { - return Arena::CreateInternal< ::GameStartRejoinMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::HandStartMessage_PlainCards* Arena::CreateMaybeMessage< ::HandStartMessage_PlainCards >(Arena* arena) { - return Arena::CreateInternal< ::HandStartMessage_PlainCards >(arena); -} -template<> PROTOBUF_NOINLINE ::HandStartMessage* Arena::CreateMaybeMessage< ::HandStartMessage >(Arena* arena) { - return Arena::CreateInternal< ::HandStartMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayersTurnMessage* Arena::CreateMaybeMessage< ::PlayersTurnMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayersTurnMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::MyActionRequestMessage* Arena::CreateMaybeMessage< ::MyActionRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::MyActionRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::YourActionRejectedMessage* Arena::CreateMaybeMessage< ::YourActionRejectedMessage >(Arena* arena) { - return Arena::CreateInternal< ::YourActionRejectedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayersActionDoneMessage* Arena::CreateMaybeMessage< ::PlayersActionDoneMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayersActionDoneMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::DealFlopCardsMessage* Arena::CreateMaybeMessage< ::DealFlopCardsMessage >(Arena* arena) { - return Arena::CreateInternal< ::DealFlopCardsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::DealTurnCardMessage* Arena::CreateMaybeMessage< ::DealTurnCardMessage >(Arena* arena) { - return Arena::CreateInternal< ::DealTurnCardMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::DealRiverCardMessage* Arena::CreateMaybeMessage< ::DealRiverCardMessage >(Arena* arena) { - return Arena::CreateInternal< ::DealRiverCardMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AllInShowCardsMessage_PlayerAllIn* Arena::CreateMaybeMessage< ::AllInShowCardsMessage_PlayerAllIn >(Arena* arena) { - return Arena::CreateInternal< ::AllInShowCardsMessage_PlayerAllIn >(arena); -} -template<> PROTOBUF_NOINLINE ::AllInShowCardsMessage* Arena::CreateMaybeMessage< ::AllInShowCardsMessage >(Arena* arena) { - return Arena::CreateInternal< ::AllInShowCardsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::EndOfHandShowCardsMessage* Arena::CreateMaybeMessage< ::EndOfHandShowCardsMessage >(Arena* arena) { - return Arena::CreateInternal< ::EndOfHandShowCardsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::EndOfHandHideCardsMessage* Arena::CreateMaybeMessage< ::EndOfHandHideCardsMessage >(Arena* arena) { - return Arena::CreateInternal< ::EndOfHandHideCardsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ShowMyCardsRequestMessage* Arena::CreateMaybeMessage< ::ShowMyCardsRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::ShowMyCardsRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AfterHandShowCardsMessage* Arena::CreateMaybeMessage< ::AfterHandShowCardsMessage >(Arena* arena) { - return Arena::CreateInternal< ::AfterHandShowCardsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::EndOfGameMessage* Arena::CreateMaybeMessage< ::EndOfGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::EndOfGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PlayerIdChangedMessage* Arena::CreateMaybeMessage< ::PlayerIdChangedMessage >(Arena* arena) { - return Arena::CreateInternal< ::PlayerIdChangedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AskKickPlayerMessage* Arena::CreateMaybeMessage< ::AskKickPlayerMessage >(Arena* arena) { - return Arena::CreateInternal< ::AskKickPlayerMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AskKickDeniedMessage* Arena::CreateMaybeMessage< ::AskKickDeniedMessage >(Arena* arena) { - return Arena::CreateInternal< ::AskKickDeniedMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::StartKickPetitionMessage* Arena::CreateMaybeMessage< ::StartKickPetitionMessage >(Arena* arena) { - return Arena::CreateInternal< ::StartKickPetitionMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::VoteKickRequestMessage* Arena::CreateMaybeMessage< ::VoteKickRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::VoteKickRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::VoteKickReplyMessage* Arena::CreateMaybeMessage< ::VoteKickReplyMessage >(Arena* arena) { - return Arena::CreateInternal< ::VoteKickReplyMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::KickPetitionUpdateMessage* Arena::CreateMaybeMessage< ::KickPetitionUpdateMessage >(Arena* arena) { - return Arena::CreateInternal< ::KickPetitionUpdateMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::EndKickPetitionMessage* Arena::CreateMaybeMessage< ::EndKickPetitionMessage >(Arena* arena) { - return Arena::CreateInternal< ::EndKickPetitionMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::StatisticsMessage_StatisticsData* Arena::CreateMaybeMessage< ::StatisticsMessage_StatisticsData >(Arena* arena) { - return Arena::CreateInternal< ::StatisticsMessage_StatisticsData >(arena); -} -template<> PROTOBUF_NOINLINE ::StatisticsMessage* Arena::CreateMaybeMessage< ::StatisticsMessage >(Arena* arena) { - return Arena::CreateInternal< ::StatisticsMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ChatRequestMessage* Arena::CreateMaybeMessage< ::ChatRequestMessage >(Arena* arena) { - return Arena::CreateInternal< ::ChatRequestMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ChatMessage* Arena::CreateMaybeMessage< ::ChatMessage >(Arena* arena) { - return Arena::CreateInternal< ::ChatMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ChatRejectMessage* Arena::CreateMaybeMessage< ::ChatRejectMessage >(Arena* arena) { - return Arena::CreateInternal< ::ChatRejectMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::DialogMessage* Arena::CreateMaybeMessage< ::DialogMessage >(Arena* arena) { - return Arena::CreateInternal< ::DialogMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::TimeoutWarningMessage* Arena::CreateMaybeMessage< ::TimeoutWarningMessage >(Arena* arena) { - return Arena::CreateInternal< ::TimeoutWarningMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ResetTimeoutMessage* Arena::CreateMaybeMessage< ::ResetTimeoutMessage >(Arena* arena) { - return Arena::CreateInternal< ::ResetTimeoutMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ReportAvatarMessage* Arena::CreateMaybeMessage< ::ReportAvatarMessage >(Arena* arena) { - return Arena::CreateInternal< ::ReportAvatarMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ReportAvatarAckMessage* Arena::CreateMaybeMessage< ::ReportAvatarAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::ReportAvatarAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ReportGameMessage* Arena::CreateMaybeMessage< ::ReportGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::ReportGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ReportGameAckMessage* Arena::CreateMaybeMessage< ::ReportGameAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::ReportGameAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::ErrorMessage* Arena::CreateMaybeMessage< ::ErrorMessage >(Arena* arena) { - return Arena::CreateInternal< ::ErrorMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AdminRemoveGameMessage* Arena::CreateMaybeMessage< ::AdminRemoveGameMessage >(Arena* arena) { - return Arena::CreateInternal< ::AdminRemoveGameMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AdminRemoveGameAckMessage* Arena::CreateMaybeMessage< ::AdminRemoveGameAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::AdminRemoveGameAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AdminBanPlayerMessage* Arena::CreateMaybeMessage< ::AdminBanPlayerMessage >(Arena* arena) { - return Arena::CreateInternal< ::AdminBanPlayerMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::AdminBanPlayerAckMessage* Arena::CreateMaybeMessage< ::AdminBanPlayerAckMessage >(Arena* arena) { - return Arena::CreateInternal< ::AdminBanPlayerAckMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::PokerTHMessage* Arena::CreateMaybeMessage< ::PokerTHMessage >(Arena* arena) { - return Arena::CreateInternal< ::PokerTHMessage >(arena); -} -} // namespace protobuf -} // namespace google // @@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 cffbc49d..4b7cd3f3 100644 --- a/src/third_party/protobuf/pokerth.pb.h +++ b/src/third_party/protobuf/pokerth.pb.h @@ -1,420 +1,125 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pokerth.proto -#ifndef PROTOBUF_INCLUDED_pokerth_2eproto -#define PROTOBUF_INCLUDED_pokerth_2eproto +#ifndef PROTOBUF_pokerth_2eproto__INCLUDED +#define PROTOBUF_pokerth_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3007000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 2004000 #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 3007001 < PROTOBUF_MIN_PROTOC_VERSION +#if 2004001 < GOOGLE_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 // IWYU pragma: export -#include // IWYU pragma: export -#include +#include +#include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto -// Internal implementation detail -- do not use these members. -struct TableStruct_pokerth_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[91] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::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_; +// 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 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 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 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 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 HandStartMessage; +class HandStartMessage_PlainCards; +class PlayersTurnMessage; +class MyActionRequestMessage; class YourActionRejectedMessage; -class YourActionRejectedMessageDefaultTypeInternal; -extern YourActionRejectedMessageDefaultTypeInternal _YourActionRejectedMessage_default_instance_; -namespace google { -namespace protobuf { -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*); -} // namespace protobuf -} // namespace google +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; +class AdminBanPlayerAckMessage; +class PokerTHMessage; enum NetGameInfo_NetGameType { NetGameInfo_NetGameType_normalGame = 1, @@ -838,111 +543,52 @@ const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; // =================================================================== -class NetGameInfo : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:NetGameInfo) */ { +class NetGameInfo : public ::google::protobuf::MessageLite { public: NetGameInfo(); virtual ~NetGameInfo(); - + NetGameInfo(const NetGameInfo& from); - + inline NetGameInfo& operator=(const NetGameInfo& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - NetGameInfo(NetGameInfo&& from) noexcept - : NetGameInfo() { - *this = ::std::move(from); - } - - inline NetGameInfo& operator=(NetGameInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const NetGameInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NetGameInfo* internal_default_instance() { - return reinterpret_cast( - &_NetGameInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - + void Swap(NetGameInfo* other); - friend void swap(NetGameInfo& a, NetGameInfo& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline NetGameInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - NetGameInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + NetGameInfo* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const NetGameInfo& from); void MergeFrom(const NetGameInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(NetGameInfo* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool NetGameType_IsValid(int value) { return NetGameInfo_NetGameType_IsValid(value); } @@ -952,12 +598,10 @@ class NetGameInfo : NetGameInfo_NetGameType_NetGameType_MAX; static const int NetGameType_ARRAYSIZE = NetGameInfo_NetGameType_NetGameType_ARRAYSIZE; - + typedef NetGameInfo_RaiseIntervalMode RaiseIntervalMode; - static const RaiseIntervalMode raiseOnHandNum = - NetGameInfo_RaiseIntervalMode_raiseOnHandNum; - static const RaiseIntervalMode raiseOnMinutes = - NetGameInfo_RaiseIntervalMode_raiseOnMinutes; + static const RaiseIntervalMode raiseOnHandNum = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; + static const RaiseIntervalMode raiseOnMinutes = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; static inline bool RaiseIntervalMode_IsValid(int value) { return NetGameInfo_RaiseIntervalMode_IsValid(value); } @@ -967,14 +611,11 @@ class NetGameInfo : NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX; static const int RaiseIntervalMode_ARRAYSIZE = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE; - + 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 const EndRaiseMode doubleBlinds = NetGameInfo_EndRaiseMode_doubleBlinds; + static const EndRaiseMode raiseByEndValue = NetGameInfo_EndRaiseMode_raiseByEndValue; + static const EndRaiseMode keepLastBlind = NetGameInfo_EndRaiseMode_keepLastBlind; static inline bool EndRaiseMode_IsValid(int value) { return NetGameInfo_EndRaiseMode_IsValid(value); } @@ -984,564 +625,442 @@ class NetGameInfo : NetGameInfo_EndRaiseMode_EndRaiseMode_MAX; static const int EndRaiseMode_ARRAYSIZE = NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // repeated uint32 manualBlinds = 14 [packed = true]; - int manualblinds_size() const; - void clear_manualblinds(); - static const int kManualBlindsFieldNumber = 14; - ::google::protobuf::uint32 manualblinds(int index) const; - void set_manualblinds(int index, ::google::protobuf::uint32 value); - void add_manualblinds(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - manualblinds() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_manualblinds(); - + // required string gameName = 1; - bool has_gamename() const; - void clear_gamename(); + inline bool has_gamename() const; + inline void clear_gamename(); static const int kGameNameFieldNumber = 1; - const ::std::string& gamename() const; - void set_gamename(const ::std::string& value); - #if LANG_CXX11 - void set_gamename(::std::string&& value); - #endif - 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); - - // required uint32 maxNumPlayers = 3; - bool has_maxnumplayers() const; - void clear_maxnumplayers(); - static const int kMaxNumPlayersFieldNumber = 3; - ::google::protobuf::uint32 maxnumplayers() const; - void set_maxnumplayers(::google::protobuf::uint32 value); - - // optional uint32 raiseEveryHands = 5; - bool has_raiseeveryhands() const; - void clear_raiseeveryhands(); - static const int kRaiseEveryHandsFieldNumber = 5; - ::google::protobuf::uint32 raiseeveryhands() const; - void set_raiseeveryhands(::google::protobuf::uint32 value); - - // optional uint32 raiseEveryMinutes = 6; - bool has_raiseeveryminutes() const; - void clear_raiseeveryminutes(); - static const int kRaiseEveryMinutesFieldNumber = 6; - ::google::protobuf::uint32 raiseeveryminutes() const; - void set_raiseeveryminutes(::google::protobuf::uint32 value); - - // optional uint32 endRaiseSmallBlindValue = 8; - bool has_endraisesmallblindvalue() const; - void clear_endraisesmallblindvalue(); - static const int kEndRaiseSmallBlindValueFieldNumber = 8; - ::google::protobuf::uint32 endraisesmallblindvalue() const; - void set_endraisesmallblindvalue(::google::protobuf::uint32 value); - - // required uint32 proposedGuiSpeed = 9; - bool has_proposedguispeed() const; - void clear_proposedguispeed(); - static const int kProposedGuiSpeedFieldNumber = 9; - ::google::protobuf::uint32 proposedguispeed() const; - void set_proposedguispeed(::google::protobuf::uint32 value); - - // required uint32 delayBetweenHands = 10; - bool has_delaybetweenhands() const; - void clear_delaybetweenhands(); - static const int kDelayBetweenHandsFieldNumber = 10; - ::google::protobuf::uint32 delaybetweenhands() const; - void set_delaybetweenhands(::google::protobuf::uint32 value); - - // required uint32 playerActionTimeout = 11; - bool has_playeractiontimeout() const; - void clear_playeractiontimeout(); - static const int kPlayerActionTimeoutFieldNumber = 11; - ::google::protobuf::uint32 playeractiontimeout() const; - void set_playeractiontimeout(::google::protobuf::uint32 value); - - // required uint32 firstSmallBlind = 12; - bool has_firstsmallblind() const; - void clear_firstsmallblind(); - static const int kFirstSmallBlindFieldNumber = 12; - ::google::protobuf::uint32 firstsmallblind() const; - void set_firstsmallblind(::google::protobuf::uint32 value); - - // required uint32 startMoney = 13; - bool has_startmoney() const; - void clear_startmoney(); - static const int kStartMoneyFieldNumber = 13; - ::google::protobuf::uint32 startmoney() const; - void set_startmoney(::google::protobuf::uint32 value); - + 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(); + // required .NetGameInfo.NetGameType netGameType = 2; - bool has_netgametype() const; - void clear_netgametype(); + inline bool has_netgametype() const; + inline void clear_netgametype(); static const int kNetGameTypeFieldNumber = 2; - ::NetGameInfo_NetGameType netgametype() const; - void set_netgametype(::NetGameInfo_NetGameType value); - + 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; - bool has_raiseintervalmode() const; - void clear_raiseintervalmode(); + inline bool has_raiseintervalmode() const; + inline void clear_raiseintervalmode(); static const int kRaiseIntervalModeFieldNumber = 4; - ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; - void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); - + 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; - bool has_endraisemode() const; - void clear_endraisemode(); + inline bool has_endraisemode() const; + inline void clear_endraisemode(); static const int kEndRaiseModeFieldNumber = 7; - ::NetGameInfo_EndRaiseMode endraisemode() const; - void set_endraisemode(::NetGameInfo_EndRaiseMode value); - + 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); + + // 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 >& + manualblinds() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_manualblinds(); + // optional bool allowSpectators = 15 [default = true]; - bool has_allowspectators() const; - void clear_allowspectators(); + inline bool has_allowspectators() const; + inline void clear_allowspectators(); static const int kAllowSpectatorsFieldNumber = 15; - bool allowspectators() const; - void set_allowspectators(bool value); - + inline bool allowspectators() const; + inline void set_allowspectators(bool value); + // @@protoc_insertion_point(class_scope:NetGameInfo) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > manualblinds_; - mutable std::atomic _manualblinds_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr gamename_; + 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(); + + ::std::string* gamename_; + 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_; - int netgametype_; - int raiseintervalmode_; - int endraisemode_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > manualblinds_; + mutable int _manualblinds_cached_byte_size_; bool allowspectators_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(15 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static NetGameInfo* default_instance_; }; // ------------------------------------------------------------------- -class PlayerResult : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerResult) */ { +class PlayerResult : public ::google::protobuf::MessageLite { public: PlayerResult(); virtual ~PlayerResult(); - + PlayerResult(const PlayerResult& from); - + inline PlayerResult& operator=(const PlayerResult& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerResult(PlayerResult&& from) noexcept - : PlayerResult() { - *this = ::std::move(from); - } - - inline PlayerResult& operator=(PlayerResult&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerResult& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerResult* internal_default_instance() { - return reinterpret_cast( - &_PlayerResult_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - + void Swap(PlayerResult* other); - friend void swap(PlayerResult& a, PlayerResult& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerResult* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerResult* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerResult* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerResult& from); void MergeFrom(const PlayerResult& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerResult* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // repeated uint32 bestHandPosition = 4 [packed = true]; - int besthandposition_size() const; - void clear_besthandposition(); - static const int kBestHandPositionFieldNumber = 4; - ::google::protobuf::uint32 besthandposition(int index) const; - void set_besthandposition(int index, ::google::protobuf::uint32 value); - void add_besthandposition(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - besthandposition() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_besthandposition(); - + // required uint32 playerId = 1; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required uint32 resultCard1 = 2; - bool has_resultcard1() const; - void clear_resultcard1(); + inline bool has_resultcard1() const; + inline void clear_resultcard1(); static const int kResultCard1FieldNumber = 2; - ::google::protobuf::uint32 resultcard1() const; - void set_resultcard1(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 resultcard1() const; + inline void set_resultcard1(::google::protobuf::uint32 value); + // required uint32 resultCard2 = 3; - bool has_resultcard2() const; - void clear_resultcard2(); + inline bool has_resultcard2() const; + inline void clear_resultcard2(); static const int kResultCard2FieldNumber = 3; - ::google::protobuf::uint32 resultcard2() const; - void set_resultcard2(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 resultcard2() const; + inline void set_resultcard2(::google::protobuf::uint32 value); + + // 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 >& + besthandposition() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_besthandposition(); + // required uint32 moneyWon = 5; - bool has_moneywon() const; - void clear_moneywon(); + inline bool has_moneywon() const; + inline void clear_moneywon(); static const int kMoneyWonFieldNumber = 5; - ::google::protobuf::uint32 moneywon() const; - void set_moneywon(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 moneywon() const; + inline void set_moneywon(::google::protobuf::uint32 value); + // required uint32 playerMoney = 6; - bool has_playermoney() const; - void clear_playermoney(); + inline bool has_playermoney() const; + inline void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 6; - ::google::protobuf::uint32 playermoney() const; - void set_playermoney(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + // optional uint32 cardsValue = 7; - bool has_cardsvalue() const; - void clear_cardsvalue(); + inline bool has_cardsvalue() const; + inline void clear_cardsvalue(); static const int kCardsValueFieldNumber = 7; - ::google::protobuf::uint32 cardsvalue() const; - void set_cardsvalue(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 cardsvalue() const; + inline void set_cardsvalue(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:PlayerResult) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > besthandposition_; - mutable std::atomic _besthandposition_cached_byte_size_; + 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(); + ::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_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerResult* default_instance_; }; // ------------------------------------------------------------------- -class AnnounceMessage_Version : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage.Version) */ { +class AnnounceMessage_Version : public ::google::protobuf::MessageLite { public: AnnounceMessage_Version(); virtual ~AnnounceMessage_Version(); - + AnnounceMessage_Version(const AnnounceMessage_Version& from); - + inline AnnounceMessage_Version& operator=(const AnnounceMessage_Version& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AnnounceMessage_Version(AnnounceMessage_Version&& from) noexcept - : AnnounceMessage_Version() { - *this = ::std::move(from); - } - - inline AnnounceMessage_Version& operator=(AnnounceMessage_Version&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AnnounceMessage_Version& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AnnounceMessage_Version* internal_default_instance() { - return reinterpret_cast( - &_AnnounceMessage_Version_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - + void Swap(AnnounceMessage_Version* other); - friend void swap(AnnounceMessage_Version& a, AnnounceMessage_Version& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AnnounceMessage_Version* New() const final { - return CreateMaybeMessage(nullptr); - } - - AnnounceMessage_Version* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AnnounceMessage_Version* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AnnounceMessage_Version& from); void MergeFrom(const AnnounceMessage_Version& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AnnounceMessage_Version* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 majorVersion = 1; - bool has_majorversion() const; - void clear_majorversion(); + inline bool has_majorversion() const; + inline void clear_majorversion(); static const int kMajorVersionFieldNumber = 1; - ::google::protobuf::uint32 majorversion() const; - void set_majorversion(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 majorversion() const; + inline void set_majorversion(::google::protobuf::uint32 value); + // required uint32 minorVersion = 2; - bool has_minorversion() const; - void clear_minorversion(); + inline bool has_minorversion() const; + inline void clear_minorversion(); static const int kMinorVersionFieldNumber = 2; - ::google::protobuf::uint32 minorversion() const; - void set_minorversion(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 minorversion() const; + inline void set_minorversion(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_majorversion(); + inline void clear_has_majorversion(); + inline void set_has_minorversion(); + inline void clear_has_minorversion(); + ::google::protobuf::uint32 majorversion_; ::google::protobuf::uint32 minorversion_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AnnounceMessage_Version* default_instance_; }; // ------------------------------------------------------------------- -class AnnounceMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage) */ { +class AnnounceMessage : public ::google::protobuf::MessageLite { public: AnnounceMessage(); virtual ~AnnounceMessage(); - + AnnounceMessage(const AnnounceMessage& from); - + inline AnnounceMessage& operator=(const AnnounceMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AnnounceMessage(AnnounceMessage&& from) noexcept - : AnnounceMessage() { - *this = ::std::move(from); - } - - inline AnnounceMessage& operator=(AnnounceMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AnnounceMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AnnounceMessage* internal_default_instance() { - return reinterpret_cast( - &_AnnounceMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - + void Swap(AnnounceMessage* other); - friend void swap(AnnounceMessage& a, AnnounceMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AnnounceMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AnnounceMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AnnounceMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AnnounceMessage& from); void MergeFrom(const AnnounceMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AnnounceMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const ServerType serverTypeLAN = AnnounceMessage_ServerType_serverTypeLAN; + static const ServerType serverTypeInternetNoAuth = AnnounceMessage_ServerType_serverTypeInternetNoAuth; + static const ServerType serverTypeInternetAuth = AnnounceMessage_ServerType_serverTypeInternetAuth; static inline bool ServerType_IsValid(int value) { return AnnounceMessage_ServerType_IsValid(value); } @@ -1551,170 +1070,122 @@ class AnnounceMessage : AnnounceMessage_ServerType_ServerType_MAX; static const int ServerType_ARRAYSIZE = AnnounceMessage_ServerType_ServerType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required .AnnounceMessage.Version protocolVersion = 1; - bool has_protocolversion() const; - void clear_protocolversion(); + inline bool has_protocolversion() const; + inline void clear_protocolversion(); static const int kProtocolVersionFieldNumber = 1; - const ::AnnounceMessage_Version& protocolversion() const; - ::AnnounceMessage_Version* release_protocolversion(); - ::AnnounceMessage_Version* mutable_protocolversion(); - void set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion); - + inline const ::AnnounceMessage_Version& protocolversion() const; + inline ::AnnounceMessage_Version* mutable_protocolversion(); + inline ::AnnounceMessage_Version* release_protocolversion(); + // required .AnnounceMessage.Version latestGameVersion = 2; - bool has_latestgameversion() const; - void clear_latestgameversion(); + inline bool has_latestgameversion() const; + inline void clear_latestgameversion(); static const int kLatestGameVersionFieldNumber = 2; - const ::AnnounceMessage_Version& latestgameversion() const; - ::AnnounceMessage_Version* release_latestgameversion(); - ::AnnounceMessage_Version* mutable_latestgameversion(); - void set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion); - + inline const ::AnnounceMessage_Version& latestgameversion() const; + inline ::AnnounceMessage_Version* mutable_latestgameversion(); + inline ::AnnounceMessage_Version* release_latestgameversion(); + // required uint32 latestBetaRevision = 3; - bool has_latestbetarevision() const; - void clear_latestbetarevision(); + inline bool has_latestbetarevision() const; + inline void clear_latestbetarevision(); static const int kLatestBetaRevisionFieldNumber = 3; - ::google::protobuf::uint32 latestbetarevision() const; - void set_latestbetarevision(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 latestbetarevision() const; + inline void set_latestbetarevision(::google::protobuf::uint32 value); + // required .AnnounceMessage.ServerType serverType = 4; - bool has_servertype() const; - void clear_servertype(); + inline bool has_servertype() const; + inline void clear_servertype(); static const int kServerTypeFieldNumber = 4; - ::AnnounceMessage_ServerType servertype() const; - void set_servertype(::AnnounceMessage_ServerType value); - + inline ::AnnounceMessage_ServerType servertype() const; + inline void set_servertype(::AnnounceMessage_ServerType value); + // required uint32 numPlayersOnServer = 5; - bool has_numplayersonserver() const; - void clear_numplayersonserver(); + inline bool has_numplayersonserver() const; + inline void clear_numplayersonserver(); static const int kNumPlayersOnServerFieldNumber = 5; - ::google::protobuf::uint32 numplayersonserver() const; - void set_numplayersonserver(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numplayersonserver() const; + inline void set_numplayersonserver(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AnnounceMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::AnnounceMessage_Version* protocolversion_; ::AnnounceMessage_Version* latestgameversion_; ::google::protobuf::uint32 latestbetarevision_; int servertype_; ::google::protobuf::uint32 numplayersonserver_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AnnounceMessage* default_instance_; }; // ------------------------------------------------------------------- -class InitMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InitMessage) */ { +class InitMessage : public ::google::protobuf::MessageLite { public: InitMessage(); virtual ~InitMessage(); - + InitMessage(const InitMessage& from); - + inline InitMessage& operator=(const InitMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - InitMessage(InitMessage&& from) noexcept - : InitMessage() { - *this = ::std::move(from); - } - - inline InitMessage& operator=(InitMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const InitMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InitMessage* internal_default_instance() { - return reinterpret_cast( - &_InitMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - + void Swap(InitMessage* other); - friend void swap(InitMessage& a, InitMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline InitMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - InitMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + InitMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const InitMessage& from); void MergeFrom(const InitMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(InitMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const LoginType guestLogin = InitMessage_LoginType_guestLogin; + static const LoginType authenticatedLogin = InitMessage_LoginType_authenticatedLogin; + static const LoginType unauthenticatedLogin = InitMessage_LoginType_unauthenticatedLogin; static inline bool LoginType_IsValid(int value) { return InitMessage_LoginType_IsValid(value); } @@ -1724,1407 +1195,889 @@ class InitMessage : InitMessage_LoginType_LoginType_MAX; static const int LoginType_ARRAYSIZE = InitMessage_LoginType_LoginType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // optional bytes myLastSessionId = 3; - bool has_mylastsessionid() const; - void clear_mylastsessionid(); - static const int kMyLastSessionIdFieldNumber = 3; - const ::std::string& mylastsessionid() const; - void set_mylastsessionid(const ::std::string& value); - #if LANG_CXX11 - void set_mylastsessionid(::std::string&& value); - #endif - 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); - - // optional string authServerPassword = 4; - bool has_authserverpassword() const; - void clear_authserverpassword(); - static const int kAuthServerPasswordFieldNumber = 4; - const ::std::string& authserverpassword() const; - void set_authserverpassword(const ::std::string& value); - #if LANG_CXX11 - void set_authserverpassword(::std::string&& value); - #endif - 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); - - // optional string nickName = 6; - bool has_nickname() const; - void clear_nickname(); - static const int kNickNameFieldNumber = 6; - const ::std::string& nickname() const; - void set_nickname(const ::std::string& value); - #if LANG_CXX11 - void set_nickname(::std::string&& value); - #endif - 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); - - // optional bytes clientUserData = 7; - bool has_clientuserdata() const; - void clear_clientuserdata(); - static const int kClientUserDataFieldNumber = 7; - const ::std::string& clientuserdata() const; - void set_clientuserdata(const ::std::string& value); - #if LANG_CXX11 - void set_clientuserdata(::std::string&& value); - #endif - 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); - - // optional bytes avatarHash = 8; - bool has_avatarhash() const; - void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 8; - const ::std::string& avatarhash() const; - void set_avatarhash(const ::std::string& value); - #if LANG_CXX11 - void set_avatarhash(::std::string&& value); - #endif - 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); - + // required .AnnounceMessage.Version requestedVersion = 1; - bool has_requestedversion() const; - void clear_requestedversion(); + inline bool has_requestedversion() const; + inline void clear_requestedversion(); static const int kRequestedVersionFieldNumber = 1; - const ::AnnounceMessage_Version& requestedversion() const; - ::AnnounceMessage_Version* release_requestedversion(); - ::AnnounceMessage_Version* mutable_requestedversion(); - void set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion); - + inline const ::AnnounceMessage_Version& requestedversion() const; + inline ::AnnounceMessage_Version* mutable_requestedversion(); + inline ::AnnounceMessage_Version* release_requestedversion(); + // required uint32 buildId = 2; - bool has_buildid() const; - void clear_buildid(); + inline bool has_buildid() const; + inline void clear_buildid(); static const int kBuildIdFieldNumber = 2; - ::google::protobuf::uint32 buildid() const; - void set_buildid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 buildid() const; + inline void set_buildid(::google::protobuf::uint32 value); + + // 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(); + + // 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(); + // required .InitMessage.LoginType login = 5; - bool has_login() const; - void clear_login(); + inline bool has_login() const; + inline void clear_login(); static const int kLoginFieldNumber = 5; - ::InitMessage_LoginType login() const; - void set_login(::InitMessage_LoginType value); - + inline ::InitMessage_LoginType login() const; + inline void set_login(::InitMessage_LoginType value); + + // 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(); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:InitMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr mylastsessionid_; - ::google::protobuf::internal::ArenaStringPtr authserverpassword_; - ::google::protobuf::internal::ArenaStringPtr nickname_; - ::google::protobuf::internal::ArenaStringPtr clientuserdata_; - ::google::protobuf::internal::ArenaStringPtr avatarhash_; + 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(); + ::AnnounceMessage_Version* requestedversion_; + ::std::string* mylastsessionid_; ::google::protobuf::uint32 buildid_; int login_; - friend struct ::TableStruct_pokerth_2eproto; + ::std::string* authserverpassword_; + ::std::string* nickname_; + ::std::string* clientuserdata_; + ::std::string* avatarhash_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InitMessage* default_instance_; }; // ------------------------------------------------------------------- -class AuthServerChallengeMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerChallengeMessage) */ { +class AuthServerChallengeMessage : public ::google::protobuf::MessageLite { public: AuthServerChallengeMessage(); virtual ~AuthServerChallengeMessage(); - + AuthServerChallengeMessage(const AuthServerChallengeMessage& from); - + inline AuthServerChallengeMessage& operator=(const AuthServerChallengeMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AuthServerChallengeMessage(AuthServerChallengeMessage&& from) noexcept - : AuthServerChallengeMessage() { - *this = ::std::move(from); - } - - inline AuthServerChallengeMessage& operator=(AuthServerChallengeMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AuthServerChallengeMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AuthServerChallengeMessage* internal_default_instance() { - return reinterpret_cast( - &_AuthServerChallengeMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - + void Swap(AuthServerChallengeMessage* other); - friend void swap(AuthServerChallengeMessage& a, AuthServerChallengeMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AuthServerChallengeMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AuthServerChallengeMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AuthServerChallengeMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AuthServerChallengeMessage& from); void MergeFrom(const AuthServerChallengeMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AuthServerChallengeMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required bytes serverChallenge = 1; - bool has_serverchallenge() const; - void clear_serverchallenge(); + inline bool has_serverchallenge() const; + inline void clear_serverchallenge(); static const int kServerChallengeFieldNumber = 1; - const ::std::string& serverchallenge() const; - void set_serverchallenge(const ::std::string& value); - #if LANG_CXX11 - void set_serverchallenge(::std::string&& value); - #endif - 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); - + 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(); + // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr serverchallenge_; - friend struct ::TableStruct_pokerth_2eproto; + inline void set_has_serverchallenge(); + inline void clear_has_serverchallenge(); + + ::std::string* serverchallenge_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthServerChallengeMessage* default_instance_; }; // ------------------------------------------------------------------- -class AuthClientResponseMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthClientResponseMessage) */ { +class AuthClientResponseMessage : public ::google::protobuf::MessageLite { public: AuthClientResponseMessage(); virtual ~AuthClientResponseMessage(); - + AuthClientResponseMessage(const AuthClientResponseMessage& from); - + inline AuthClientResponseMessage& operator=(const AuthClientResponseMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AuthClientResponseMessage(AuthClientResponseMessage&& from) noexcept - : AuthClientResponseMessage() { - *this = ::std::move(from); - } - - inline AuthClientResponseMessage& operator=(AuthClientResponseMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AuthClientResponseMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AuthClientResponseMessage* internal_default_instance() { - return reinterpret_cast( - &_AuthClientResponseMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - + void Swap(AuthClientResponseMessage* other); - friend void swap(AuthClientResponseMessage& a, AuthClientResponseMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AuthClientResponseMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AuthClientResponseMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AuthClientResponseMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AuthClientResponseMessage& from); void MergeFrom(const AuthClientResponseMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AuthClientResponseMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required bytes clientResponse = 1; - bool has_clientresponse() const; - void clear_clientresponse(); + inline bool has_clientresponse() const; + inline void clear_clientresponse(); static const int kClientResponseFieldNumber = 1; - const ::std::string& clientresponse() const; - void set_clientresponse(const ::std::string& value); - #if LANG_CXX11 - void set_clientresponse(::std::string&& value); - #endif - 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); - + 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(); + // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr clientresponse_; - friend struct ::TableStruct_pokerth_2eproto; + inline void set_has_clientresponse(); + inline void clear_has_clientresponse(); + + ::std::string* clientresponse_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthClientResponseMessage* default_instance_; }; // ------------------------------------------------------------------- -class AuthServerVerificationMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerVerificationMessage) */ { +class AuthServerVerificationMessage : public ::google::protobuf::MessageLite { public: AuthServerVerificationMessage(); virtual ~AuthServerVerificationMessage(); - + AuthServerVerificationMessage(const AuthServerVerificationMessage& from); - + inline AuthServerVerificationMessage& operator=(const AuthServerVerificationMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AuthServerVerificationMessage(AuthServerVerificationMessage&& from) noexcept - : AuthServerVerificationMessage() { - *this = ::std::move(from); - } - - inline AuthServerVerificationMessage& operator=(AuthServerVerificationMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AuthServerVerificationMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AuthServerVerificationMessage* internal_default_instance() { - return reinterpret_cast( - &_AuthServerVerificationMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - + void Swap(AuthServerVerificationMessage* other); - friend void swap(AuthServerVerificationMessage& a, AuthServerVerificationMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AuthServerVerificationMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AuthServerVerificationMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AuthServerVerificationMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AuthServerVerificationMessage& from); void MergeFrom(const AuthServerVerificationMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AuthServerVerificationMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required bytes serverVerification = 1; - bool has_serververification() const; - void clear_serververification(); + inline bool has_serververification() const; + inline void clear_serververification(); static const int kServerVerificationFieldNumber = 1; - const ::std::string& serververification() const; - void set_serververification(const ::std::string& value); - #if LANG_CXX11 - void set_serververification(::std::string&& value); - #endif - 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); - + 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(); + // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr serververification_; - friend struct ::TableStruct_pokerth_2eproto; + inline void set_has_serververification(); + inline void clear_has_serververification(); + + ::std::string* serververification_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthServerVerificationMessage* default_instance_; }; // ------------------------------------------------------------------- -class InitAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InitAckMessage) */ { +class InitAckMessage : public ::google::protobuf::MessageLite { public: InitAckMessage(); virtual ~InitAckMessage(); - + InitAckMessage(const InitAckMessage& from); - + inline InitAckMessage& operator=(const InitAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - InitAckMessage(InitAckMessage&& from) noexcept - : InitAckMessage() { - *this = ::std::move(from); - } - - inline InitAckMessage& operator=(InitAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const InitAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InitAckMessage* internal_default_instance() { - return reinterpret_cast( - &_InitAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - + void Swap(InitAckMessage* other); - friend void swap(InitAckMessage& a, InitAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline InitAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - InitAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + InitAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const InitAckMessage& from); void MergeFrom(const InitAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(InitAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required bytes yourSessionId = 1; - bool has_yoursessionid() const; - void clear_yoursessionid(); + inline bool has_yoursessionid() const; + inline void clear_yoursessionid(); static const int kYourSessionIdFieldNumber = 1; - const ::std::string& yoursessionid() const; - void set_yoursessionid(const ::std::string& value); - #if LANG_CXX11 - void set_yoursessionid(::std::string&& value); - #endif - 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); - - // optional bytes yourAvatarHash = 3; - bool has_youravatarhash() const; - void clear_youravatarhash(); - static const int kYourAvatarHashFieldNumber = 3; - const ::std::string& youravatarhash() const; - void set_youravatarhash(const ::std::string& value); - #if LANG_CXX11 - void set_youravatarhash(::std::string&& value); - #endif - 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); - + 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(); + // required uint32 yourPlayerId = 2; - bool has_yourplayerid() const; - void clear_yourplayerid(); + inline bool has_yourplayerid() const; + inline void clear_yourplayerid(); static const int kYourPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 yourplayerid() const; - void set_yourplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 yourplayerid() const; + inline void set_yourplayerid(::google::protobuf::uint32 value); + + // 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(); + // optional uint32 rejoinGameId = 4; - bool has_rejoingameid() const; - void clear_rejoingameid(); + inline bool has_rejoingameid() const; + inline void clear_rejoingameid(); static const int kRejoinGameIdFieldNumber = 4; - ::google::protobuf::uint32 rejoingameid() const; - void set_rejoingameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 rejoingameid() const; + inline void set_rejoingameid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:InitAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr yoursessionid_; - ::google::protobuf::internal::ArenaStringPtr youravatarhash_; + 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(); + + ::std::string* yoursessionid_; + ::std::string* youravatarhash_; ::google::protobuf::uint32 yourplayerid_; ::google::protobuf::uint32 rejoingameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InitAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class AvatarRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarRequestMessage) */ { +class AvatarRequestMessage : public ::google::protobuf::MessageLite { public: AvatarRequestMessage(); virtual ~AvatarRequestMessage(); - + AvatarRequestMessage(const AvatarRequestMessage& from); - + inline AvatarRequestMessage& operator=(const AvatarRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AvatarRequestMessage(AvatarRequestMessage&& from) noexcept - : AvatarRequestMessage() { - *this = ::std::move(from); - } - - inline AvatarRequestMessage& operator=(AvatarRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AvatarRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AvatarRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_AvatarRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - + void Swap(AvatarRequestMessage* other); - friend void swap(AvatarRequestMessage& a, AvatarRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AvatarRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AvatarRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AvatarRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AvatarRequestMessage& from); void MergeFrom(const AvatarRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AvatarRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required bytes avatarHash = 2; - bool has_avatarhash() const; - void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 2; - const ::std::string& avatarhash() const; - void set_avatarhash(const ::std::string& value); - #if LANG_CXX11 - void set_avatarhash(::std::string&& value); - #endif - 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); - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:AvatarRequestMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr avatarhash_; + inline void set_has_requestid(); + inline void clear_has_requestid(); + inline void set_has_avatarhash(); + inline void clear_has_avatarhash(); + + ::std::string* avatarhash_; ::google::protobuf::uint32 requestid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class AvatarHeaderMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarHeaderMessage) */ { +class AvatarHeaderMessage : public ::google::protobuf::MessageLite { public: AvatarHeaderMessage(); virtual ~AvatarHeaderMessage(); - + AvatarHeaderMessage(const AvatarHeaderMessage& from); - + inline AvatarHeaderMessage& operator=(const AvatarHeaderMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AvatarHeaderMessage(AvatarHeaderMessage&& from) noexcept - : AvatarHeaderMessage() { - *this = ::std::move(from); - } - - inline AvatarHeaderMessage& operator=(AvatarHeaderMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AvatarHeaderMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AvatarHeaderMessage* internal_default_instance() { - return reinterpret_cast( - &_AvatarHeaderMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - + void Swap(AvatarHeaderMessage* other); - friend void swap(AvatarHeaderMessage& a, AvatarHeaderMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AvatarHeaderMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AvatarHeaderMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AvatarHeaderMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AvatarHeaderMessage& from); void MergeFrom(const AvatarHeaderMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AvatarHeaderMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - - // required uint32 avatarSize = 3; - bool has_avatarsize() const; - void clear_avatarsize(); - static const int kAvatarSizeFieldNumber = 3; - ::google::protobuf::uint32 avatarsize() const; - void set_avatarsize(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + // required .NetAvatarType avatarType = 2; - bool has_avatartype() const; - void clear_avatartype(); + inline bool has_avatartype() const; + inline void clear_avatartype(); static const int kAvatarTypeFieldNumber = 2; - ::NetAvatarType avatartype() const; - void set_avatartype(::NetAvatarType value); - + inline NetAvatarType avatartype() const; + inline void set_avatartype(NetAvatarType value); + + // 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); + // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 requestid_; - ::google::protobuf::uint32 avatarsize_; int avatartype_; - friend struct ::TableStruct_pokerth_2eproto; + ::google::protobuf::uint32 avatarsize_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarHeaderMessage* default_instance_; }; // ------------------------------------------------------------------- -class AvatarDataMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarDataMessage) */ { +class AvatarDataMessage : public ::google::protobuf::MessageLite { public: AvatarDataMessage(); virtual ~AvatarDataMessage(); - + AvatarDataMessage(const AvatarDataMessage& from); - + inline AvatarDataMessage& operator=(const AvatarDataMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AvatarDataMessage(AvatarDataMessage&& from) noexcept - : AvatarDataMessage() { - *this = ::std::move(from); - } - - inline AvatarDataMessage& operator=(AvatarDataMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AvatarDataMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AvatarDataMessage* internal_default_instance() { - return reinterpret_cast( - &_AvatarDataMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - + void Swap(AvatarDataMessage* other); - friend void swap(AvatarDataMessage& a, AvatarDataMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AvatarDataMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AvatarDataMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AvatarDataMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AvatarDataMessage& from); void MergeFrom(const AvatarDataMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AvatarDataMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required bytes avatarBlock = 2; - bool has_avatarblock() const; - void clear_avatarblock(); - static const int kAvatarBlockFieldNumber = 2; - const ::std::string& avatarblock() const; - void set_avatarblock(const ::std::string& value); - #if LANG_CXX11 - void set_avatarblock(::std::string&& value); - #endif - 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); - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:AvatarDataMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr avatarblock_; + inline void set_has_requestid(); + inline void clear_has_requestid(); + inline void set_has_avatarblock(); + inline void clear_has_avatarblock(); + + ::std::string* avatarblock_; ::google::protobuf::uint32 requestid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarDataMessage* default_instance_; }; // ------------------------------------------------------------------- -class AvatarEndMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarEndMessage) */ { +class AvatarEndMessage : public ::google::protobuf::MessageLite { public: AvatarEndMessage(); virtual ~AvatarEndMessage(); - + AvatarEndMessage(const AvatarEndMessage& from); - + inline AvatarEndMessage& operator=(const AvatarEndMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AvatarEndMessage(AvatarEndMessage&& from) noexcept - : AvatarEndMessage() { - *this = ::std::move(from); - } - - inline AvatarEndMessage& operator=(AvatarEndMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AvatarEndMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AvatarEndMessage* internal_default_instance() { - return reinterpret_cast( - &_AvatarEndMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - + void Swap(AvatarEndMessage* other); - friend void swap(AvatarEndMessage& a, AvatarEndMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AvatarEndMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AvatarEndMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AvatarEndMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AvatarEndMessage& from); void MergeFrom(const AvatarEndMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AvatarEndMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AvatarEndMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_requestid(); + inline void clear_has_requestid(); + ::google::protobuf::uint32 requestid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarEndMessage* default_instance_; }; // ------------------------------------------------------------------- -class UnknownAvatarMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:UnknownAvatarMessage) */ { +class UnknownAvatarMessage : public ::google::protobuf::MessageLite { public: UnknownAvatarMessage(); virtual ~UnknownAvatarMessage(); - + UnknownAvatarMessage(const UnknownAvatarMessage& from); - + inline UnknownAvatarMessage& operator=(const UnknownAvatarMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - UnknownAvatarMessage(UnknownAvatarMessage&& from) noexcept - : UnknownAvatarMessage() { - *this = ::std::move(from); - } - - inline UnknownAvatarMessage& operator=(UnknownAvatarMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const UnknownAvatarMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnknownAvatarMessage* internal_default_instance() { - return reinterpret_cast( - &_UnknownAvatarMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - + void Swap(UnknownAvatarMessage* other); - friend void swap(UnknownAvatarMessage& a, UnknownAvatarMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline UnknownAvatarMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - UnknownAvatarMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + UnknownAvatarMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const UnknownAvatarMessage& from); void MergeFrom(const UnknownAvatarMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(UnknownAvatarMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 requestId = 1; - bool has_requestid() const; - void clear_requestid(); + inline bool has_requestid() const; + inline void clear_requestid(); static const int kRequestIdFieldNumber = 1; - ::google::protobuf::uint32 requestid() const; - void set_requestid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_requestid(); + inline void clear_has_requestid(); + ::google::protobuf::uint32 requestid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static UnknownAvatarMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayerListMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerListMessage) */ { +class PlayerListMessage : public ::google::protobuf::MessageLite { public: PlayerListMessage(); virtual ~PlayerListMessage(); - + PlayerListMessage(const PlayerListMessage& from); - + inline PlayerListMessage& operator=(const PlayerListMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerListMessage(PlayerListMessage&& from) noexcept - : PlayerListMessage() { - *this = ::std::move(from); - } - - inline PlayerListMessage& operator=(PlayerListMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerListMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerListMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayerListMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - + void Swap(PlayerListMessage* other); - friend void swap(PlayerListMessage& a, PlayerListMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerListMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerListMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerListMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerListMessage& from); void MergeFrom(const PlayerListMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerListMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef PlayerListMessage_PlayerListNotification PlayerListNotification; - static const PlayerListNotification playerListNew = - PlayerListMessage_PlayerListNotification_playerListNew; - static const PlayerListNotification playerListLeft = - PlayerListMessage_PlayerListNotification_playerListLeft; + static const PlayerListNotification playerListNew = PlayerListMessage_PlayerListNotification_playerListNew; + static const PlayerListNotification playerListLeft = PlayerListMessage_PlayerListNotification_playerListLeft; static inline bool PlayerListNotification_IsValid(int value) { return PlayerListMessage_PlayerListNotification_IsValid(value); } @@ -3134,1650 +2087,1059 @@ class PlayerListMessage : PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX; static const int PlayerListNotification_ARRAYSIZE = PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 playerId = 1; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - bool has_playerlistnotification() const; - void clear_playerlistnotification(); + inline bool has_playerlistnotification() const; + inline void clear_playerlistnotification(); static const int kPlayerListNotificationFieldNumber = 2; - ::PlayerListMessage_PlayerListNotification playerlistnotification() const; - void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); - + inline ::PlayerListMessage_PlayerListNotification playerlistnotification() const; + inline void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + // @@protoc_insertion_point(class_scope:PlayerListMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playerlistnotification(); + inline void clear_has_playerlistnotification(); + ::google::protobuf::uint32 playerid_; int playerlistnotification_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerListMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListNewMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListNewMessage) */ { +class GameListNewMessage : public ::google::protobuf::MessageLite { public: GameListNewMessage(); virtual ~GameListNewMessage(); - + GameListNewMessage(const GameListNewMessage& from); - + inline GameListNewMessage& operator=(const GameListNewMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListNewMessage(GameListNewMessage&& from) noexcept - : GameListNewMessage() { - *this = ::std::move(from); - } - - inline GameListNewMessage& operator=(GameListNewMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListNewMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListNewMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListNewMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - + void Swap(GameListNewMessage* other); - friend void swap(GameListNewMessage& a, GameListNewMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListNewMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListNewMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListNewMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListNewMessage& from); void MergeFrom(const GameListNewMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListNewMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // repeated uint32 playerIds = 4 [packed = true]; - int playerids_size() const; - void clear_playerids(); - static const int kPlayerIdsFieldNumber = 4; - ::google::protobuf::uint32 playerids(int index) const; - void set_playerids(int index, ::google::protobuf::uint32 value); - void add_playerids(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - playerids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_playerids(); - - // repeated uint32 spectatorIds = 7 [packed = true]; - int spectatorids_size() const; - void clear_spectatorids(); - static const int kSpectatorIdsFieldNumber = 7; - ::google::protobuf::uint32 spectatorids(int index) const; - void set_spectatorids(int index, ::google::protobuf::uint32 value); - void add_spectatorids(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - spectatorids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_spectatorids(); - - // required .NetGameInfo gameInfo = 6; - bool has_gameinfo() const; - void clear_gameinfo(); - static const int kGameInfoFieldNumber = 6; - const ::NetGameInfo& gameinfo() const; - ::NetGameInfo* release_gameinfo(); - ::NetGameInfo* mutable_gameinfo(); - void set_allocated_gameinfo(::NetGameInfo* gameinfo); - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - - // required bool isPrivate = 3; - bool has_isprivate() const; - void clear_isprivate(); - static const int kIsPrivateFieldNumber = 3; - bool isprivate() const; - void set_isprivate(bool value); - - // required uint32 adminPlayerId = 5; - bool has_adminplayerid() const; - void clear_adminplayerid(); - static const int kAdminPlayerIdFieldNumber = 5; - ::google::protobuf::uint32 adminplayerid() const; - void set_adminplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .NetGameMode gameMode = 2; - bool has_gamemode() const; - void clear_gamemode(); + inline bool has_gamemode() const; + inline void clear_gamemode(); static const int kGameModeFieldNumber = 2; - ::NetGameMode gamemode() const; - void set_gamemode(::NetGameMode value); - + 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); + + // 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 >& + playerids() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::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); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:GameListNewMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerids_; - mutable std::atomic _playerids_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > spectatorids_; - mutable std::atomic _spectatorids_cached_byte_size_; - ::NetGameInfo* gameinfo_; + 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(); + ::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_; - int gamemode_; - friend struct ::TableStruct_pokerth_2eproto; + ::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]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListNewMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListUpdateMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListUpdateMessage) */ { +class GameListUpdateMessage : public ::google::protobuf::MessageLite { public: GameListUpdateMessage(); virtual ~GameListUpdateMessage(); - + GameListUpdateMessage(const GameListUpdateMessage& from); - + inline GameListUpdateMessage& operator=(const GameListUpdateMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListUpdateMessage(GameListUpdateMessage&& from) noexcept - : GameListUpdateMessage() { - *this = ::std::move(from); - } - - inline GameListUpdateMessage& operator=(GameListUpdateMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListUpdateMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListUpdateMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListUpdateMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - + void Swap(GameListUpdateMessage* other); - friend void swap(GameListUpdateMessage& a, GameListUpdateMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListUpdateMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListUpdateMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListUpdateMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListUpdateMessage& from); void MergeFrom(const GameListUpdateMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListUpdateMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .NetGameMode gameMode = 2; - bool has_gamemode() const; - void clear_gamemode(); + inline bool has_gamemode() const; + inline void clear_gamemode(); static const int kGameModeFieldNumber = 2; - ::NetGameMode gamemode() const; - void set_gamemode(::NetGameMode value); - + inline NetGameMode gamemode() const; + inline void set_gamemode(NetGameMode value); + // @@protoc_insertion_point(class_scope:GameListUpdateMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_gamemode(); + inline void clear_has_gamemode(); + ::google::protobuf::uint32 gameid_; int gamemode_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListUpdateMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListPlayerJoinedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerJoinedMessage) */ { +class GameListPlayerJoinedMessage : public ::google::protobuf::MessageLite { public: GameListPlayerJoinedMessage(); virtual ~GameListPlayerJoinedMessage(); - + GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from); - + inline GameListPlayerJoinedMessage& operator=(const GameListPlayerJoinedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListPlayerJoinedMessage(GameListPlayerJoinedMessage&& from) noexcept - : GameListPlayerJoinedMessage() { - *this = ::std::move(from); - } - - inline GameListPlayerJoinedMessage& operator=(GameListPlayerJoinedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListPlayerJoinedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListPlayerJoinedMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListPlayerJoinedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - + void Swap(GameListPlayerJoinedMessage* other); - friend void swap(GameListPlayerJoinedMessage& a, GameListPlayerJoinedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListPlayerJoinedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListPlayerJoinedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListPlayerJoinedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListPlayerJoinedMessage& from); void MergeFrom(const GameListPlayerJoinedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListPlayerJoinedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListPlayerJoinedMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListPlayerLeftMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerLeftMessage) */ { +class GameListPlayerLeftMessage : public ::google::protobuf::MessageLite { public: GameListPlayerLeftMessage(); virtual ~GameListPlayerLeftMessage(); - + GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from); - + inline GameListPlayerLeftMessage& operator=(const GameListPlayerLeftMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListPlayerLeftMessage(GameListPlayerLeftMessage&& from) noexcept - : GameListPlayerLeftMessage() { - *this = ::std::move(from); - } - - inline GameListPlayerLeftMessage& operator=(GameListPlayerLeftMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListPlayerLeftMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListPlayerLeftMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListPlayerLeftMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - + void Swap(GameListPlayerLeftMessage* other); - friend void swap(GameListPlayerLeftMessage& a, GameListPlayerLeftMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListPlayerLeftMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListPlayerLeftMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListPlayerLeftMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListPlayerLeftMessage& from); void MergeFrom(const GameListPlayerLeftMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListPlayerLeftMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListPlayerLeftMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListSpectatorJoinedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorJoinedMessage) */ { +class GameListSpectatorJoinedMessage : public ::google::protobuf::MessageLite { public: GameListSpectatorJoinedMessage(); virtual ~GameListSpectatorJoinedMessage(); - + GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from); - + inline GameListSpectatorJoinedMessage& operator=(const GameListSpectatorJoinedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListSpectatorJoinedMessage(GameListSpectatorJoinedMessage&& from) noexcept - : GameListSpectatorJoinedMessage() { - *this = ::std::move(from); - } - - inline GameListSpectatorJoinedMessage& operator=(GameListSpectatorJoinedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListSpectatorJoinedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListSpectatorJoinedMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListSpectatorJoinedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - + void Swap(GameListSpectatorJoinedMessage* other); - friend void swap(GameListSpectatorJoinedMessage& a, GameListSpectatorJoinedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListSpectatorJoinedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListSpectatorJoinedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListSpectatorJoinedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListSpectatorJoinedMessage& from); void MergeFrom(const GameListSpectatorJoinedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListSpectatorJoinedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameListSpectatorJoinedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListSpectatorJoinedMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListSpectatorLeftMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorLeftMessage) */ { +class GameListSpectatorLeftMessage : public ::google::protobuf::MessageLite { public: GameListSpectatorLeftMessage(); virtual ~GameListSpectatorLeftMessage(); - + GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from); - + inline GameListSpectatorLeftMessage& operator=(const GameListSpectatorLeftMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListSpectatorLeftMessage(GameListSpectatorLeftMessage&& from) noexcept - : GameListSpectatorLeftMessage() { - *this = ::std::move(from); - } - - inline GameListSpectatorLeftMessage& operator=(GameListSpectatorLeftMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListSpectatorLeftMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListSpectatorLeftMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListSpectatorLeftMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - + void Swap(GameListSpectatorLeftMessage* other); - friend void swap(GameListSpectatorLeftMessage& a, GameListSpectatorLeftMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListSpectatorLeftMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListSpectatorLeftMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListSpectatorLeftMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListSpectatorLeftMessage& from); void MergeFrom(const GameListSpectatorLeftMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListSpectatorLeftMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameListSpectatorLeftMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListSpectatorLeftMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameListAdminChangedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListAdminChangedMessage) */ { +class GameListAdminChangedMessage : public ::google::protobuf::MessageLite { public: GameListAdminChangedMessage(); virtual ~GameListAdminChangedMessage(); - + GameListAdminChangedMessage(const GameListAdminChangedMessage& from); - + inline GameListAdminChangedMessage& operator=(const GameListAdminChangedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameListAdminChangedMessage(GameListAdminChangedMessage&& from) noexcept - : GameListAdminChangedMessage() { - *this = ::std::move(from); - } - - inline GameListAdminChangedMessage& operator=(GameListAdminChangedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameListAdminChangedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameListAdminChangedMessage* internal_default_instance() { - return reinterpret_cast( - &_GameListAdminChangedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - + void Swap(GameListAdminChangedMessage* other); - friend void swap(GameListAdminChangedMessage& a, GameListAdminChangedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameListAdminChangedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameListAdminChangedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameListAdminChangedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameListAdminChangedMessage& from); void MergeFrom(const GameListAdminChangedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameListAdminChangedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 newAdminPlayerId = 2; - bool has_newadminplayerid() const; - void clear_newadminplayerid(); + inline bool has_newadminplayerid() const; + inline void clear_newadminplayerid(); static const int kNewAdminPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 newadminplayerid() const; - void set_newadminplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 newadminplayerid() const; + inline void set_newadminplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_newadminplayerid(); + inline void clear_has_newadminplayerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 newadminplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListAdminChangedMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayerInfoRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoRequestMessage) */ { +class PlayerInfoRequestMessage : public ::google::protobuf::MessageLite { public: PlayerInfoRequestMessage(); virtual ~PlayerInfoRequestMessage(); - + PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from); - + inline PlayerInfoRequestMessage& operator=(const PlayerInfoRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerInfoRequestMessage(PlayerInfoRequestMessage&& from) noexcept - : PlayerInfoRequestMessage() { - *this = ::std::move(from); - } - - inline PlayerInfoRequestMessage& operator=(PlayerInfoRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerInfoRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerInfoRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayerInfoRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - + void Swap(PlayerInfoRequestMessage* other); - friend void swap(PlayerInfoRequestMessage& a, PlayerInfoRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerInfoRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerInfoRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerInfoRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerInfoRequestMessage& from); void MergeFrom(const PlayerInfoRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerInfoRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // repeated uint32 playerId = 1 [packed = true]; - int playerid_size() const; - void clear_playerid(); + inline int playerid_size() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid(int index) const; - void set_playerid(int index, ::google::protobuf::uint32 value); - void add_playerid(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + 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 >& playerid() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_playerid(); - + // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerid_; - mutable std::atomic _playerid_cached_byte_size_; - friend struct ::TableStruct_pokerth_2eproto; + mutable int _playerid_cached_byte_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) */ { +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : public ::google::protobuf::MessageLite { public: PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); virtual ~PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); - + PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); - + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData& operator=(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerInfoReplyMessage_PlayerInfoData_AvatarData(PlayerInfoReplyMessage_PlayerInfoData_AvatarData&& from) noexcept - : PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { - *this = ::std::move(from); - } - - inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData& operator=(PlayerInfoReplyMessage_PlayerInfoData_AvatarData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerInfoReplyMessage_PlayerInfoData_AvatarData* internal_default_instance() { - return reinterpret_cast( - &_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_); - } - 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); - } - + // implements Message ---------------------------------------------- - - inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required bytes avatarHash = 2; - bool has_avatarhash() const; - void clear_avatarhash(); - static const int kAvatarHashFieldNumber = 2; - const ::std::string& avatarhash() const; - void set_avatarhash(const ::std::string& value); - #if LANG_CXX11 - void set_avatarhash(::std::string&& value); - #endif - 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); - + // required .NetAvatarType avatarType = 1; - bool has_avatartype() const; - void clear_avatartype(); + inline bool has_avatartype() const; + inline void clear_avatartype(); static const int kAvatarTypeFieldNumber = 1; - ::NetAvatarType avatartype() const; - void set_avatartype(::NetAvatarType value); - + inline NetAvatarType avatartype() const; + inline void set_avatartype(NetAvatarType value); + + // 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(); + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr avatarhash_; + inline void set_has_avatartype(); + inline void clear_has_avatartype(); + inline void set_has_avatarhash(); + inline void clear_has_avatarhash(); + + ::std::string* avatarhash_; int avatartype_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage_PlayerInfoData_AvatarData* default_instance_; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData) */ { +class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::MessageLite { public: PlayerInfoReplyMessage_PlayerInfoData(); virtual ~PlayerInfoReplyMessage_PlayerInfoData(); - + PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from); - + inline PlayerInfoReplyMessage_PlayerInfoData& operator=(const PlayerInfoReplyMessage_PlayerInfoData& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerInfoReplyMessage_PlayerInfoData(PlayerInfoReplyMessage_PlayerInfoData&& from) noexcept - : PlayerInfoReplyMessage_PlayerInfoData() { - *this = ::std::move(from); - } - - inline PlayerInfoReplyMessage_PlayerInfoData& operator=(PlayerInfoReplyMessage_PlayerInfoData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerInfoReplyMessage_PlayerInfoData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerInfoReplyMessage_PlayerInfoData* internal_default_instance() { - return reinterpret_cast( - &_PlayerInfoReplyMessage_PlayerInfoData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - + void Swap(PlayerInfoReplyMessage_PlayerInfoData* other); - friend void swap(PlayerInfoReplyMessage_PlayerInfoData& a, PlayerInfoReplyMessage_PlayerInfoData& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerInfoReplyMessage_PlayerInfoData* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerInfoReplyMessage_PlayerInfoData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerInfoReplyMessage_PlayerInfoData* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerInfoReplyMessage_PlayerInfoData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef PlayerInfoReplyMessage_PlayerInfoData_AvatarData AvatarData; - + // accessors ------------------------------------------------------- - + // required string playerName = 1; - bool has_playername() const; - void clear_playername(); + inline bool has_playername() const; + inline void clear_playername(); static const int kPlayerNameFieldNumber = 1; - const ::std::string& playername() const; - void set_playername(const ::std::string& value); - #if LANG_CXX11 - void set_playername(::std::string&& value); - #endif - 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); - - // optional string countryCode = 4; - bool has_countrycode() const; - void clear_countrycode(); - static const int kCountryCodeFieldNumber = 4; - const ::std::string& countrycode() const; - void set_countrycode(const ::std::string& value); - #if LANG_CXX11 - void set_countrycode(::std::string&& value); - #endif - 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); - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - bool has_avatardata() const; - void clear_avatardata(); - static const int kAvatarDataFieldNumber = 5; - const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); - void set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); - + 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(); + // required bool isHuman = 2; - bool has_ishuman() const; - void clear_ishuman(); + inline bool has_ishuman() const; + inline void clear_ishuman(); static const int kIsHumanFieldNumber = 2; - bool ishuman() const; - void set_ishuman(bool value); - + inline bool ishuman() const; + inline void set_ishuman(bool value); + // required .NetPlayerInfoRights playerRights = 3; - bool has_playerrights() const; - void clear_playerrights(); + inline bool has_playerrights() const; + inline void clear_playerrights(); static const int kPlayerRightsFieldNumber = 3; - ::NetPlayerInfoRights playerrights() const; - void set_playerrights(::NetPlayerInfoRights value); - + inline NetPlayerInfoRights playerrights() const; + inline void set_playerrights(NetPlayerInfoRights value); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr playername_; - ::google::protobuf::internal::ArenaStringPtr countrycode_; - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; + 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(); + + ::std::string* playername_; bool ishuman_; int playerrights_; - friend struct ::TableStruct_pokerth_2eproto; + ::std::string* countrycode_; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage_PlayerInfoData* default_instance_; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage) */ { +class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { public: PlayerInfoReplyMessage(); virtual ~PlayerInfoReplyMessage(); - + PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from); - + inline PlayerInfoReplyMessage& operator=(const PlayerInfoReplyMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerInfoReplyMessage(PlayerInfoReplyMessage&& from) noexcept - : PlayerInfoReplyMessage() { - *this = ::std::move(from); - } - - inline PlayerInfoReplyMessage& operator=(PlayerInfoReplyMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerInfoReplyMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerInfoReplyMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayerInfoReplyMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - + void Swap(PlayerInfoReplyMessage* other); - friend void swap(PlayerInfoReplyMessage& a, PlayerInfoReplyMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerInfoReplyMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerInfoReplyMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerInfoReplyMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerInfoReplyMessage& from); void MergeFrom(const PlayerInfoReplyMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerInfoReplyMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef PlayerInfoReplyMessage_PlayerInfoData PlayerInfoData; - + // accessors ------------------------------------------------------- - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - bool has_playerinfodata() const; - void clear_playerinfodata(); - static const int kPlayerInfoDataFieldNumber = 2; - const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata() const; - ::PlayerInfoReplyMessage_PlayerInfoData* release_playerinfodata(); - ::PlayerInfoReplyMessage_PlayerInfoData* mutable_playerinfodata(); - void set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata); - + // required uint32 playerId = 1; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playerinfodata(); + inline void clear_has_playerinfodata(); + ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage* default_instance_; }; // ------------------------------------------------------------------- -class SubscriptionRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:SubscriptionRequestMessage) */ { +class SubscriptionRequestMessage : public ::google::protobuf::MessageLite { public: SubscriptionRequestMessage(); virtual ~SubscriptionRequestMessage(); - + SubscriptionRequestMessage(const SubscriptionRequestMessage& from); - + inline SubscriptionRequestMessage& operator=(const SubscriptionRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - SubscriptionRequestMessage(SubscriptionRequestMessage&& from) noexcept - : SubscriptionRequestMessage() { - *this = ::std::move(from); - } - - inline SubscriptionRequestMessage& operator=(SubscriptionRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const SubscriptionRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SubscriptionRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_SubscriptionRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - + void Swap(SubscriptionRequestMessage* other); - friend void swap(SubscriptionRequestMessage& a, SubscriptionRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline SubscriptionRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - SubscriptionRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + SubscriptionRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const SubscriptionRequestMessage& from); void MergeFrom(const SubscriptionRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(SubscriptionRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef SubscriptionRequestMessage_SubscriptionAction SubscriptionAction; - static const SubscriptionAction unsubscribeGameList = - SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; - static const SubscriptionAction resubscribeGameList = - SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; + static const SubscriptionAction unsubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; + static const SubscriptionAction resubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; static inline bool SubscriptionAction_IsValid(int value) { return SubscriptionRequestMessage_SubscriptionAction_IsValid(value); } @@ -4787,712 +3149,465 @@ class SubscriptionRequestMessage : SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX; static const int SubscriptionAction_ARRAYSIZE = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - bool has_subscriptionaction() const; - void clear_subscriptionaction(); + inline bool has_subscriptionaction() const; + inline void clear_subscriptionaction(); static const int kSubscriptionActionFieldNumber = 1; - ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; - void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); - + inline ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; + inline void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_subscriptionaction(); + inline void clear_has_subscriptionaction(); + int subscriptionaction_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static SubscriptionRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class JoinExistingGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinExistingGameMessage) */ { +class JoinExistingGameMessage : public ::google::protobuf::MessageLite { public: JoinExistingGameMessage(); virtual ~JoinExistingGameMessage(); - + JoinExistingGameMessage(const JoinExistingGameMessage& from); - + inline JoinExistingGameMessage& operator=(const JoinExistingGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - JoinExistingGameMessage(JoinExistingGameMessage&& from) noexcept - : JoinExistingGameMessage() { - *this = ::std::move(from); - } - - inline JoinExistingGameMessage& operator=(JoinExistingGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const JoinExistingGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const JoinExistingGameMessage* internal_default_instance() { - return reinterpret_cast( - &_JoinExistingGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - + void Swap(JoinExistingGameMessage* other); - friend void swap(JoinExistingGameMessage& a, JoinExistingGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline JoinExistingGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - JoinExistingGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + JoinExistingGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const JoinExistingGameMessage& from); void MergeFrom(const JoinExistingGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(JoinExistingGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // optional string password = 2; - bool has_password() const; - void clear_password(); - static const int kPasswordFieldNumber = 2; - const ::std::string& password() const; - void set_password(const ::std::string& value); - #if LANG_CXX11 - void set_password(::std::string&& value); - #endif - 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); - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // 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(); + // optional bool autoLeave = 3 [default = false]; - bool has_autoleave() const; - void clear_autoleave(); + inline bool has_autoleave() const; + inline void clear_autoleave(); static const int kAutoLeaveFieldNumber = 3; - bool autoleave() const; - void set_autoleave(bool value); - + inline bool autoleave() const; + inline void set_autoleave(bool value); + // optional bool spectateOnly = 4 [default = false]; - bool has_spectateonly() const; - void clear_spectateonly(); + inline bool has_spectateonly() const; + inline void clear_spectateonly(); static const int kSpectateOnlyFieldNumber = 4; - bool spectateonly() const; - void set_spectateonly(bool value); - + inline bool spectateonly() const; + inline void set_spectateonly(bool value); + // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr password_; + 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(); + + ::std::string* password_; ::google::protobuf::uint32 gameid_; bool autoleave_; bool spectateonly_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinExistingGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class JoinNewGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinNewGameMessage) */ { +class JoinNewGameMessage : public ::google::protobuf::MessageLite { public: JoinNewGameMessage(); virtual ~JoinNewGameMessage(); - + JoinNewGameMessage(const JoinNewGameMessage& from); - + inline JoinNewGameMessage& operator=(const JoinNewGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - JoinNewGameMessage(JoinNewGameMessage&& from) noexcept - : JoinNewGameMessage() { - *this = ::std::move(from); - } - - inline JoinNewGameMessage& operator=(JoinNewGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const JoinNewGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const JoinNewGameMessage* internal_default_instance() { - return reinterpret_cast( - &_JoinNewGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - + void Swap(JoinNewGameMessage* other); - friend void swap(JoinNewGameMessage& a, JoinNewGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline JoinNewGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - JoinNewGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + JoinNewGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const JoinNewGameMessage& from); void MergeFrom(const JoinNewGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(JoinNewGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // optional string password = 2; - bool has_password() const; - void clear_password(); - static const int kPasswordFieldNumber = 2; - const ::std::string& password() const; - void set_password(const ::std::string& value); - #if LANG_CXX11 - void set_password(::std::string&& value); - #endif - 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); - + // required .NetGameInfo gameInfo = 1; - bool has_gameinfo() const; - void clear_gameinfo(); + inline bool has_gameinfo() const; + inline void clear_gameinfo(); static const int kGameInfoFieldNumber = 1; - const ::NetGameInfo& gameinfo() const; - ::NetGameInfo* release_gameinfo(); - ::NetGameInfo* mutable_gameinfo(); - void set_allocated_gameinfo(::NetGameInfo* gameinfo); - + inline const ::NetGameInfo& gameinfo() const; + inline ::NetGameInfo* mutable_gameinfo(); + inline ::NetGameInfo* release_gameinfo(); + + // 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(); + // optional bool autoLeave = 3; - bool has_autoleave() const; - void clear_autoleave(); + inline bool has_autoleave() const; + inline void clear_autoleave(); static const int kAutoLeaveFieldNumber = 3; - bool autoleave() const; - void set_autoleave(bool value); - + inline bool autoleave() const; + inline void set_autoleave(bool value); + // @@protoc_insertion_point(class_scope:JoinNewGameMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr password_; + 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(); + ::NetGameInfo* gameinfo_; + ::std::string* password_; bool autoleave_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinNewGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class RejoinExistingGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejoinExistingGameMessage) */ { +class RejoinExistingGameMessage : public ::google::protobuf::MessageLite { public: RejoinExistingGameMessage(); virtual ~RejoinExistingGameMessage(); - + RejoinExistingGameMessage(const RejoinExistingGameMessage& from); - + inline RejoinExistingGameMessage& operator=(const RejoinExistingGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - RejoinExistingGameMessage(RejoinExistingGameMessage&& from) noexcept - : RejoinExistingGameMessage() { - *this = ::std::move(from); - } - - inline RejoinExistingGameMessage& operator=(RejoinExistingGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const RejoinExistingGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RejoinExistingGameMessage* internal_default_instance() { - return reinterpret_cast( - &_RejoinExistingGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - + void Swap(RejoinExistingGameMessage* other); - friend void swap(RejoinExistingGameMessage& a, RejoinExistingGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline RejoinExistingGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - RejoinExistingGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + RejoinExistingGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const RejoinExistingGameMessage& from); void MergeFrom(const RejoinExistingGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(RejoinExistingGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // optional bool autoLeave = 2; - bool has_autoleave() const; - void clear_autoleave(); + inline bool has_autoleave() const; + inline void clear_autoleave(); static const int kAutoLeaveFieldNumber = 2; - bool autoleave() const; - void set_autoleave(bool value); - + inline bool autoleave() const; + inline void set_autoleave(bool value); + // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_autoleave(); + inline void clear_has_autoleave(); + ::google::protobuf::uint32 gameid_; bool autoleave_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejoinExistingGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class JoinGameAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameAckMessage) */ { +class JoinGameAckMessage : public ::google::protobuf::MessageLite { public: JoinGameAckMessage(); virtual ~JoinGameAckMessage(); - + JoinGameAckMessage(const JoinGameAckMessage& from); - + inline JoinGameAckMessage& operator=(const JoinGameAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - JoinGameAckMessage(JoinGameAckMessage&& from) noexcept - : JoinGameAckMessage() { - *this = ::std::move(from); - } - - inline JoinGameAckMessage& operator=(JoinGameAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const JoinGameAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const JoinGameAckMessage* internal_default_instance() { - return reinterpret_cast( - &_JoinGameAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - + void Swap(JoinGameAckMessage* other); - friend void swap(JoinGameAckMessage& a, JoinGameAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline JoinGameAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - JoinGameAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + JoinGameAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const JoinGameAckMessage& from); void MergeFrom(const JoinGameAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(JoinGameAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required .NetGameInfo gameInfo = 3; - bool has_gameinfo() const; - void clear_gameinfo(); - static const int kGameInfoFieldNumber = 3; - const ::NetGameInfo& gameinfo() const; - ::NetGameInfo* release_gameinfo(); - ::NetGameInfo* mutable_gameinfo(); - void set_allocated_gameinfo(::NetGameInfo* gameinfo); - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required bool areYouGameAdmin = 2; - bool has_areyougameadmin() const; - void clear_areyougameadmin(); + inline bool has_areyougameadmin() const; + inline void clear_areyougameadmin(); static const int kAreYouGameAdminFieldNumber = 2; - bool areyougameadmin() const; - void set_areyougameadmin(bool value); - + 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(); + // optional bool spectateOnly = 4; - bool has_spectateonly() const; - void clear_spectateonly(); + inline bool has_spectateonly() const; + inline void clear_spectateonly(); static const int kSpectateOnlyFieldNumber = 4; - bool spectateonly() const; - void set_spectateonly(bool value); - + inline bool spectateonly() const; + inline void set_spectateonly(bool value); + // @@protoc_insertion_point(class_scope:JoinGameAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::NetGameInfo* gameinfo_; + 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(); + ::google::protobuf::uint32 gameid_; bool areyougameadmin_; bool spectateonly_; - friend struct ::TableStruct_pokerth_2eproto; + ::NetGameInfo* gameinfo_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinGameAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class JoinGameFailedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameFailedMessage) */ { +class JoinGameFailedMessage : public ::google::protobuf::MessageLite { public: JoinGameFailedMessage(); virtual ~JoinGameFailedMessage(); - + JoinGameFailedMessage(const JoinGameFailedMessage& from); - + inline JoinGameFailedMessage& operator=(const JoinGameFailedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - JoinGameFailedMessage(JoinGameFailedMessage&& from) noexcept - : JoinGameFailedMessage() { - *this = ::std::move(from); - } - - inline JoinGameFailedMessage& operator=(JoinGameFailedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const JoinGameFailedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const JoinGameFailedMessage* internal_default_instance() { - return reinterpret_cast( - &_JoinGameFailedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - + void Swap(JoinGameFailedMessage* other); - friend void swap(JoinGameFailedMessage& a, JoinGameFailedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline JoinGameFailedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - JoinGameFailedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + JoinGameFailedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const JoinGameFailedMessage& from); void MergeFrom(const JoinGameFailedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(JoinGameFailedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool JoinGameFailureReason_IsValid(int value) { return JoinGameFailedMessage_JoinGameFailureReason_IsValid(value); } @@ -5502,278 +3617,179 @@ class JoinGameFailedMessage : JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX; static const int JoinGameFailureReason_ARRAYSIZE = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - bool has_joingamefailurereason() const; - void clear_joingamefailurereason(); + inline bool has_joingamefailurereason() const; + inline void clear_joingamefailurereason(); static const int kJoinGameFailureReasonFieldNumber = 2; - ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; - void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); - + inline ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; + inline void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_joingamefailurereason(); + inline void clear_has_joingamefailurereason(); + ::google::protobuf::uint32 gameid_; int joingamefailurereason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinGameFailedMessage* default_instance_; }; // ------------------------------------------------------------------- -class GamePlayerJoinedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerJoinedMessage) */ { +class GamePlayerJoinedMessage : public ::google::protobuf::MessageLite { public: GamePlayerJoinedMessage(); virtual ~GamePlayerJoinedMessage(); - + GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from); - + inline GamePlayerJoinedMessage& operator=(const GamePlayerJoinedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GamePlayerJoinedMessage(GamePlayerJoinedMessage&& from) noexcept - : GamePlayerJoinedMessage() { - *this = ::std::move(from); - } - - inline GamePlayerJoinedMessage& operator=(GamePlayerJoinedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GamePlayerJoinedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GamePlayerJoinedMessage* internal_default_instance() { - return reinterpret_cast( - &_GamePlayerJoinedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - + void Swap(GamePlayerJoinedMessage* other); - friend void swap(GamePlayerJoinedMessage& a, GamePlayerJoinedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GamePlayerJoinedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GamePlayerJoinedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GamePlayerJoinedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GamePlayerJoinedMessage& from); void MergeFrom(const GamePlayerJoinedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GamePlayerJoinedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required bool isGameAdmin = 3; - bool has_isgameadmin() const; - void clear_isgameadmin(); + inline bool has_isgameadmin() const; + inline void clear_isgameadmin(); static const int kIsGameAdminFieldNumber = 3; - bool isgameadmin() const; - void set_isgameadmin(bool value); - + inline bool isgameadmin() const; + inline void set_isgameadmin(bool value); + // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; bool isgameadmin_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GamePlayerJoinedMessage* default_instance_; }; // ------------------------------------------------------------------- -class GamePlayerLeftMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerLeftMessage) */ { +class GamePlayerLeftMessage : public ::google::protobuf::MessageLite { public: GamePlayerLeftMessage(); virtual ~GamePlayerLeftMessage(); - + GamePlayerLeftMessage(const GamePlayerLeftMessage& from); - + inline GamePlayerLeftMessage& operator=(const GamePlayerLeftMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GamePlayerLeftMessage(GamePlayerLeftMessage&& from) noexcept - : GamePlayerLeftMessage() { - *this = ::std::move(from); - } - - inline GamePlayerLeftMessage& operator=(GamePlayerLeftMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GamePlayerLeftMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GamePlayerLeftMessage* internal_default_instance() { - return reinterpret_cast( - &_GamePlayerLeftMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - + void Swap(GamePlayerLeftMessage* other); - friend void swap(GamePlayerLeftMessage& a, GamePlayerLeftMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GamePlayerLeftMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GamePlayerLeftMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GamePlayerLeftMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GamePlayerLeftMessage& from); void MergeFrom(const GamePlayerLeftMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GamePlayerLeftMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const GamePlayerLeftReason leftOnRequest = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; + static const GamePlayerLeftReason leftKicked = GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked; + static const GamePlayerLeftReason leftError = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; static inline bool GamePlayerLeftReason_IsValid(int value) { return GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value); } @@ -5783,550 +3799,351 @@ class GamePlayerLeftMessage : GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX; static const int GamePlayerLeftReason_ARRAYSIZE = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - bool has_gameplayerleftreason() const; - void clear_gameplayerleftreason(); + inline bool has_gameplayerleftreason() const; + inline void clear_gameplayerleftreason(); static const int kGamePlayerLeftReasonFieldNumber = 3; - ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; - void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); - + inline ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; + inline void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gameplayerleftreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GamePlayerLeftMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameSpectatorJoinedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorJoinedMessage) */ { +class GameSpectatorJoinedMessage : public ::google::protobuf::MessageLite { public: GameSpectatorJoinedMessage(); virtual ~GameSpectatorJoinedMessage(); - + GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from); - + inline GameSpectatorJoinedMessage& operator=(const GameSpectatorJoinedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameSpectatorJoinedMessage(GameSpectatorJoinedMessage&& from) noexcept - : GameSpectatorJoinedMessage() { - *this = ::std::move(from); - } - - inline GameSpectatorJoinedMessage& operator=(GameSpectatorJoinedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameSpectatorJoinedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameSpectatorJoinedMessage* internal_default_instance() { - return reinterpret_cast( - &_GameSpectatorJoinedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - + void Swap(GameSpectatorJoinedMessage* other); - friend void swap(GameSpectatorJoinedMessage& a, GameSpectatorJoinedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameSpectatorJoinedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameSpectatorJoinedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameSpectatorJoinedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameSpectatorJoinedMessage& from); void MergeFrom(const GameSpectatorJoinedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameSpectatorJoinedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameSpectatorJoinedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameSpectatorJoinedMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameSpectatorLeftMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorLeftMessage) */ { +class GameSpectatorLeftMessage : public ::google::protobuf::MessageLite { public: GameSpectatorLeftMessage(); virtual ~GameSpectatorLeftMessage(); - + GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from); - + inline GameSpectatorLeftMessage& operator=(const GameSpectatorLeftMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameSpectatorLeftMessage(GameSpectatorLeftMessage&& from) noexcept - : GameSpectatorLeftMessage() { - *this = ::std::move(from); - } - - inline GameSpectatorLeftMessage& operator=(GameSpectatorLeftMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameSpectatorLeftMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameSpectatorLeftMessage* internal_default_instance() { - return reinterpret_cast( - &_GameSpectatorLeftMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - + void Swap(GameSpectatorLeftMessage* other); - friend void swap(GameSpectatorLeftMessage& a, GameSpectatorLeftMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameSpectatorLeftMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameSpectatorLeftMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameSpectatorLeftMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameSpectatorLeftMessage& from); void MergeFrom(const GameSpectatorLeftMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameSpectatorLeftMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - bool has_gamespectatorleftreason() const; - void clear_gamespectatorleftreason(); + inline bool has_gamespectatorleftreason() const; + inline void clear_gamespectatorleftreason(); static const int kGameSpectatorLeftReasonFieldNumber = 3; - ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; - void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); - + inline ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; + inline void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + // @@protoc_insertion_point(class_scope:GameSpectatorLeftMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamespectatorleftreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameSpectatorLeftMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameAdminChangedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameAdminChangedMessage) */ { +class GameAdminChangedMessage : public ::google::protobuf::MessageLite { public: GameAdminChangedMessage(); virtual ~GameAdminChangedMessage(); - + GameAdminChangedMessage(const GameAdminChangedMessage& from); - + inline GameAdminChangedMessage& operator=(const GameAdminChangedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameAdminChangedMessage(GameAdminChangedMessage&& from) noexcept - : GameAdminChangedMessage() { - *this = ::std::move(from); - } - - inline GameAdminChangedMessage& operator=(GameAdminChangedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameAdminChangedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameAdminChangedMessage* internal_default_instance() { - return reinterpret_cast( - &_GameAdminChangedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - + void Swap(GameAdminChangedMessage* other); - friend void swap(GameAdminChangedMessage& a, GameAdminChangedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameAdminChangedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameAdminChangedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameAdminChangedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameAdminChangedMessage& from); void MergeFrom(const GameAdminChangedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameAdminChangedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 newAdminPlayerId = 2; - bool has_newadminplayerid() const; - void clear_newadminplayerid(); + inline bool has_newadminplayerid() const; + inline void clear_newadminplayerid(); static const int kNewAdminPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 newadminplayerid() const; - void set_newadminplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 newadminplayerid() const; + inline void set_newadminplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_newadminplayerid(); + inline void clear_has_newadminplayerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 newadminplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameAdminChangedMessage* default_instance_; }; // ------------------------------------------------------------------- -class RemovedFromGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RemovedFromGameMessage) */ { +class RemovedFromGameMessage : public ::google::protobuf::MessageLite { public: RemovedFromGameMessage(); virtual ~RemovedFromGameMessage(); - + RemovedFromGameMessage(const RemovedFromGameMessage& from); - + inline RemovedFromGameMessage& operator=(const RemovedFromGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - RemovedFromGameMessage(RemovedFromGameMessage&& from) noexcept - : RemovedFromGameMessage() { - *this = ::std::move(from); - } - - inline RemovedFromGameMessage& operator=(RemovedFromGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const RemovedFromGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RemovedFromGameMessage* internal_default_instance() { - return reinterpret_cast( - &_RemovedFromGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - + void Swap(RemovedFromGameMessage* other); - friend void swap(RemovedFromGameMessage& a, RemovedFromGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline RemovedFromGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - RemovedFromGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + RemovedFromGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const RemovedFromGameMessage& from); void MergeFrom(const RemovedFromGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(RemovedFromGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool RemovedFromGameReason_IsValid(int value) { return RemovedFromGameMessage_RemovedFromGameReason_IsValid(value); } @@ -6336,649 +4153,405 @@ class RemovedFromGameMessage : RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX; static const int RemovedFromGameReason_ARRAYSIZE = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - bool has_removedfromgamereason() const; - void clear_removedfromgamereason(); + inline bool has_removedfromgamereason() const; + inline void clear_removedfromgamereason(); static const int kRemovedFromGameReasonFieldNumber = 2; - ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; - void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); - + inline ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; + inline void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_removedfromgamereason(); + inline void clear_has_removedfromgamereason(); + ::google::protobuf::uint32 gameid_; int removedfromgamereason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RemovedFromGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class KickPlayerRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:KickPlayerRequestMessage) */ { +class KickPlayerRequestMessage : public ::google::protobuf::MessageLite { public: KickPlayerRequestMessage(); virtual ~KickPlayerRequestMessage(); - + KickPlayerRequestMessage(const KickPlayerRequestMessage& from); - + inline KickPlayerRequestMessage& operator=(const KickPlayerRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - KickPlayerRequestMessage(KickPlayerRequestMessage&& from) noexcept - : KickPlayerRequestMessage() { - *this = ::std::move(from); - } - - inline KickPlayerRequestMessage& operator=(KickPlayerRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const KickPlayerRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KickPlayerRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_KickPlayerRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - + void Swap(KickPlayerRequestMessage* other); - friend void swap(KickPlayerRequestMessage& a, KickPlayerRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline KickPlayerRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - KickPlayerRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + KickPlayerRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const KickPlayerRequestMessage& from); void MergeFrom(const KickPlayerRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(KickPlayerRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static KickPlayerRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class LeaveGameRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:LeaveGameRequestMessage) */ { +class LeaveGameRequestMessage : public ::google::protobuf::MessageLite { public: LeaveGameRequestMessage(); virtual ~LeaveGameRequestMessage(); - + LeaveGameRequestMessage(const LeaveGameRequestMessage& from); - + inline LeaveGameRequestMessage& operator=(const LeaveGameRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - LeaveGameRequestMessage(LeaveGameRequestMessage&& from) noexcept - : LeaveGameRequestMessage() { - *this = ::std::move(from); - } - - inline LeaveGameRequestMessage& operator=(LeaveGameRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const LeaveGameRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LeaveGameRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_LeaveGameRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - + void Swap(LeaveGameRequestMessage* other); - friend void swap(LeaveGameRequestMessage& a, LeaveGameRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline LeaveGameRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - LeaveGameRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + LeaveGameRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const LeaveGameRequestMessage& from); void MergeFrom(const LeaveGameRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(LeaveGameRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + ::google::protobuf::uint32 gameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static LeaveGameRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class InvitePlayerToGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InvitePlayerToGameMessage) */ { +class InvitePlayerToGameMessage : public ::google::protobuf::MessageLite { public: InvitePlayerToGameMessage(); virtual ~InvitePlayerToGameMessage(); - + InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from); - + inline InvitePlayerToGameMessage& operator=(const InvitePlayerToGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - InvitePlayerToGameMessage(InvitePlayerToGameMessage&& from) noexcept - : InvitePlayerToGameMessage() { - *this = ::std::move(from); - } - - inline InvitePlayerToGameMessage& operator=(InvitePlayerToGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const InvitePlayerToGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InvitePlayerToGameMessage* internal_default_instance() { - return reinterpret_cast( - &_InvitePlayerToGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 40; - + void Swap(InvitePlayerToGameMessage* other); - friend void swap(InvitePlayerToGameMessage& a, InvitePlayerToGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline InvitePlayerToGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - InvitePlayerToGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + InvitePlayerToGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const InvitePlayerToGameMessage& from); void MergeFrom(const InvitePlayerToGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(InvitePlayerToGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InvitePlayerToGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class InviteNotifyMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InviteNotifyMessage) */ { +class InviteNotifyMessage : public ::google::protobuf::MessageLite { public: InviteNotifyMessage(); virtual ~InviteNotifyMessage(); - + InviteNotifyMessage(const InviteNotifyMessage& from); - + inline InviteNotifyMessage& operator=(const InviteNotifyMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - InviteNotifyMessage(InviteNotifyMessage&& from) noexcept - : InviteNotifyMessage() { - *this = ::std::move(from); - } - - inline InviteNotifyMessage& operator=(InviteNotifyMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const InviteNotifyMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InviteNotifyMessage* internal_default_instance() { - return reinterpret_cast( - &_InviteNotifyMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 41; - + void Swap(InviteNotifyMessage* other); - friend void swap(InviteNotifyMessage& a, InviteNotifyMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline InviteNotifyMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - InviteNotifyMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + InviteNotifyMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const InviteNotifyMessage& from); void MergeFrom(const InviteNotifyMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(InviteNotifyMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerIdWho = 2; - bool has_playeridwho() const; - void clear_playeridwho(); + inline bool has_playeridwho() const; + inline void clear_playeridwho(); static const int kPlayerIdWhoFieldNumber = 2; - ::google::protobuf::uint32 playeridwho() const; - void set_playeridwho(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playeridwho() const; + inline void set_playeridwho(::google::protobuf::uint32 value); + // required uint32 playerIdByWhom = 3; - bool has_playeridbywhom() const; - void clear_playeridbywhom(); + inline bool has_playeridbywhom() const; + inline void clear_playeridbywhom(); static const int kPlayerIdByWhomFieldNumber = 3; - ::google::protobuf::uint32 playeridbywhom() const; - void set_playeridbywhom(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playeridbywhom() const; + inline void set_playeridbywhom(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:InviteNotifyMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playeridwho_; ::google::protobuf::uint32 playeridbywhom_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InviteNotifyMessage* default_instance_; }; // ------------------------------------------------------------------- -class RejectGameInvitationMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejectGameInvitationMessage) */ { +class RejectGameInvitationMessage : public ::google::protobuf::MessageLite { public: RejectGameInvitationMessage(); virtual ~RejectGameInvitationMessage(); - + RejectGameInvitationMessage(const RejectGameInvitationMessage& from); - + inline RejectGameInvitationMessage& operator=(const RejectGameInvitationMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - RejectGameInvitationMessage(RejectGameInvitationMessage&& from) noexcept - : RejectGameInvitationMessage() { - *this = ::std::move(from); - } - - inline RejectGameInvitationMessage& operator=(RejectGameInvitationMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const RejectGameInvitationMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RejectGameInvitationMessage* internal_default_instance() { - return reinterpret_cast( - &_RejectGameInvitationMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 42; - + void Swap(RejectGameInvitationMessage* other); - friend void swap(RejectGameInvitationMessage& a, RejectGameInvitationMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline RejectGameInvitationMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - RejectGameInvitationMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + RejectGameInvitationMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const RejectGameInvitationMessage& from); void MergeFrom(const RejectGameInvitationMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(RejectGameInvitationMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef RejectGameInvitationMessage_RejectGameInvReason RejectGameInvReason; - static const RejectGameInvReason rejectReasonNo = - RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; - static const RejectGameInvReason rejectReasonBusy = - RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; + static const RejectGameInvReason rejectReasonNo = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; + static const RejectGameInvReason rejectReasonBusy = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; static inline bool RejectGameInvReason_IsValid(int value) { return RejectGameInvitationMessage_RejectGameInvReason_IsValid(value); } @@ -6988,276 +4561,178 @@ class RejectGameInvitationMessage : RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX; static const int RejectGameInvReason_ARRAYSIZE = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - bool has_myrejectreason() const; - void clear_myrejectreason(); + inline bool has_myrejectreason() const; + inline void clear_myrejectreason(); static const int kMyRejectReasonFieldNumber = 2; - ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; - void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); - + inline ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; + inline void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_myrejectreason(); + inline void clear_has_myrejectreason(); + ::google::protobuf::uint32 gameid_; int myrejectreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejectGameInvitationMessage* default_instance_; }; // ------------------------------------------------------------------- -class RejectInvNotifyMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejectInvNotifyMessage) */ { +class RejectInvNotifyMessage : public ::google::protobuf::MessageLite { public: RejectInvNotifyMessage(); virtual ~RejectInvNotifyMessage(); - + RejectInvNotifyMessage(const RejectInvNotifyMessage& from); - + inline RejectInvNotifyMessage& operator=(const RejectInvNotifyMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - RejectInvNotifyMessage(RejectInvNotifyMessage&& from) noexcept - : RejectInvNotifyMessage() { - *this = ::std::move(from); - } - - inline RejectInvNotifyMessage& operator=(RejectInvNotifyMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const RejectInvNotifyMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RejectInvNotifyMessage* internal_default_instance() { - return reinterpret_cast( - &_RejectInvNotifyMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 43; - + void Swap(RejectInvNotifyMessage* other); - friend void swap(RejectInvNotifyMessage& a, RejectInvNotifyMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline RejectInvNotifyMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - RejectInvNotifyMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + RejectInvNotifyMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const RejectInvNotifyMessage& from); void MergeFrom(const RejectInvNotifyMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(RejectInvNotifyMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - bool has_playerrejectreason() const; - void clear_playerrejectreason(); + inline bool has_playerrejectreason() const; + inline void clear_playerrejectreason(); static const int kPlayerRejectReasonFieldNumber = 3; - ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; - void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); - + inline ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; + inline void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int playerrejectreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejectInvNotifyMessage* default_instance_; }; // ------------------------------------------------------------------- -class StartEventMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartEventMessage) */ { +class StartEventMessage : public ::google::protobuf::MessageLite { public: StartEventMessage(); virtual ~StartEventMessage(); - + StartEventMessage(const StartEventMessage& from); - + inline StartEventMessage& operator=(const StartEventMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - StartEventMessage(StartEventMessage&& from) noexcept - : StartEventMessage() { - *this = ::std::move(from); - } - - inline StartEventMessage& operator=(StartEventMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const StartEventMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StartEventMessage* internal_default_instance() { - return reinterpret_cast( - &_StartEventMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 44; - + void Swap(StartEventMessage* other); - friend void swap(StartEventMessage& a, StartEventMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline StartEventMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - StartEventMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + StartEventMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const StartEventMessage& from); void MergeFrom(const StartEventMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(StartEventMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef StartEventMessage_StartEventType StartEventType; - static const StartEventType startEvent = - StartEventMessage_StartEventType_startEvent; - static const StartEventType rejoinEvent = - StartEventMessage_StartEventType_rejoinEvent; + static const StartEventType startEvent = StartEventMessage_StartEventType_startEvent; + static const StartEventType rejoinEvent = StartEventMessage_StartEventType_rejoinEvent; static inline bool StartEventType_IsValid(int value) { return StartEventMessage_StartEventType_IsValid(value); } @@ -7267,1279 +4742,849 @@ class StartEventMessage : StartEventMessage_StartEventType_StartEventType_MAX; static const int StartEventType_ARRAYSIZE = StartEventMessage_StartEventType_StartEventType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .StartEventMessage.StartEventType startEventType = 2; - bool has_starteventtype() const; - void clear_starteventtype(); + inline bool has_starteventtype() const; + inline void clear_starteventtype(); static const int kStartEventTypeFieldNumber = 2; - ::StartEventMessage_StartEventType starteventtype() const; - void set_starteventtype(::StartEventMessage_StartEventType value); - + inline ::StartEventMessage_StartEventType starteventtype() const; + inline void set_starteventtype(::StartEventMessage_StartEventType value); + // optional bool fillWithComputerPlayers = 3; - bool has_fillwithcomputerplayers() const; - void clear_fillwithcomputerplayers(); + inline bool has_fillwithcomputerplayers() const; + inline void clear_fillwithcomputerplayers(); static const int kFillWithComputerPlayersFieldNumber = 3; - bool fillwithcomputerplayers() const; - void set_fillwithcomputerplayers(bool value); - + inline bool fillwithcomputerplayers() const; + inline void set_fillwithcomputerplayers(bool value); + // @@protoc_insertion_point(class_scope:StartEventMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; int starteventtype_; bool fillwithcomputerplayers_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartEventMessage* default_instance_; }; // ------------------------------------------------------------------- -class StartEventAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartEventAckMessage) */ { +class StartEventAckMessage : public ::google::protobuf::MessageLite { public: StartEventAckMessage(); virtual ~StartEventAckMessage(); - + StartEventAckMessage(const StartEventAckMessage& from); - + inline StartEventAckMessage& operator=(const StartEventAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - StartEventAckMessage(StartEventAckMessage&& from) noexcept - : StartEventAckMessage() { - *this = ::std::move(from); - } - - inline StartEventAckMessage& operator=(StartEventAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const StartEventAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StartEventAckMessage* internal_default_instance() { - return reinterpret_cast( - &_StartEventAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 45; - + void Swap(StartEventAckMessage* other); - friend void swap(StartEventAckMessage& a, StartEventAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline StartEventAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - StartEventAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + StartEventAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const StartEventAckMessage& from); void MergeFrom(const StartEventAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(StartEventAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:StartEventAckMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + ::google::protobuf::uint32 gameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartEventAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameStartInitialMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartInitialMessage) */ { +class GameStartInitialMessage : public ::google::protobuf::MessageLite { public: GameStartInitialMessage(); virtual ~GameStartInitialMessage(); - + GameStartInitialMessage(const GameStartInitialMessage& from); - + inline GameStartInitialMessage& operator=(const GameStartInitialMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameStartInitialMessage(GameStartInitialMessage&& from) noexcept - : GameStartInitialMessage() { - *this = ::std::move(from); - } - - inline GameStartInitialMessage& operator=(GameStartInitialMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameStartInitialMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameStartInitialMessage* internal_default_instance() { - return reinterpret_cast( - &_GameStartInitialMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 46; - + void Swap(GameStartInitialMessage* other); - friend void swap(GameStartInitialMessage& a, GameStartInitialMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameStartInitialMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameStartInitialMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameStartInitialMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameStartInitialMessage& from); void MergeFrom(const GameStartInitialMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameStartInitialMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // repeated uint32 playerSeats = 3 [packed = true]; - int playerseats_size() const; - void clear_playerseats(); - static const int kPlayerSeatsFieldNumber = 3; - ::google::protobuf::uint32 playerseats(int index) const; - void set_playerseats(int index, ::google::protobuf::uint32 value); - void add_playerseats(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - playerseats() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_playerseats(); - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 startDealerPlayerId = 2; - bool has_startdealerplayerid() const; - void clear_startdealerplayerid(); + inline bool has_startdealerplayerid() const; + inline void clear_startdealerplayerid(); static const int kStartDealerPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 startdealerplayerid() const; - void set_startdealerplayerid(::google::protobuf::uint32 value); - + 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(); + // @@protoc_insertion_point(class_scope:GameStartInitialMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerseats_; - mutable std::atomic _playerseats_cached_byte_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_startdealerplayerid(); + inline void clear_has_startdealerplayerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 startdealerplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerseats_; + mutable int _playerseats_cached_byte_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartInitialMessage* default_instance_; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage_RejoinPlayerData : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage.RejoinPlayerData) */ { +class GameStartRejoinMessage_RejoinPlayerData : public ::google::protobuf::MessageLite { public: GameStartRejoinMessage_RejoinPlayerData(); virtual ~GameStartRejoinMessage_RejoinPlayerData(); - + GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from); - + inline GameStartRejoinMessage_RejoinPlayerData& operator=(const GameStartRejoinMessage_RejoinPlayerData& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameStartRejoinMessage_RejoinPlayerData(GameStartRejoinMessage_RejoinPlayerData&& from) noexcept - : GameStartRejoinMessage_RejoinPlayerData() { - *this = ::std::move(from); - } - - inline GameStartRejoinMessage_RejoinPlayerData& operator=(GameStartRejoinMessage_RejoinPlayerData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameStartRejoinMessage_RejoinPlayerData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameStartRejoinMessage_RejoinPlayerData* internal_default_instance() { - return reinterpret_cast( - &_GameStartRejoinMessage_RejoinPlayerData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 47; - + void Swap(GameStartRejoinMessage_RejoinPlayerData* other); - friend void swap(GameStartRejoinMessage_RejoinPlayerData& a, GameStartRejoinMessage_RejoinPlayerData& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameStartRejoinMessage_RejoinPlayerData* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameStartRejoinMessage_RejoinPlayerData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameStartRejoinMessage_RejoinPlayerData* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from); void MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameStartRejoinMessage_RejoinPlayerData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 playerId = 1; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required uint32 playerMoney = 2; - bool has_playermoney() const; - void clear_playermoney(); + inline bool has_playermoney() const; + inline void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 2; - ::google::protobuf::uint32 playermoney() const; - void set_playermoney(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartRejoinMessage_RejoinPlayerData* default_instance_; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage) */ { +class GameStartRejoinMessage : public ::google::protobuf::MessageLite { public: GameStartRejoinMessage(); virtual ~GameStartRejoinMessage(); - + GameStartRejoinMessage(const GameStartRejoinMessage& from); - + inline GameStartRejoinMessage& operator=(const GameStartRejoinMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - GameStartRejoinMessage(GameStartRejoinMessage&& from) noexcept - : GameStartRejoinMessage() { - *this = ::std::move(from); - } - - inline GameStartRejoinMessage& operator=(GameStartRejoinMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const GameStartRejoinMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GameStartRejoinMessage* internal_default_instance() { - return reinterpret_cast( - &_GameStartRejoinMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 48; - + void Swap(GameStartRejoinMessage* other); - friend void swap(GameStartRejoinMessage& a, GameStartRejoinMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline GameStartRejoinMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - GameStartRejoinMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + GameStartRejoinMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const GameStartRejoinMessage& from); void MergeFrom(const GameStartRejoinMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(GameStartRejoinMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef GameStartRejoinMessage_RejoinPlayerData RejoinPlayerData; - + // accessors ------------------------------------------------------- - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - int rejoinplayerdata_size() const; - void clear_rejoinplayerdata(); - static const int kRejoinPlayerDataFieldNumber = 4; - ::GameStartRejoinMessage_RejoinPlayerData* mutable_rejoinplayerdata(int index); - ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* - mutable_rejoinplayerdata(); - const ::GameStartRejoinMessage_RejoinPlayerData& rejoinplayerdata(int index) const; - ::GameStartRejoinMessage_RejoinPlayerData* add_rejoinplayerdata(); - const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& - rejoinplayerdata() const; - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 startDealerPlayerId = 2; - bool has_startdealerplayerid() const; - void clear_startdealerplayerid(); + inline bool has_startdealerplayerid() const; + inline void clear_startdealerplayerid(); static const int kStartDealerPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 startdealerplayerid() const; - void set_startdealerplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 startdealerplayerid() const; + inline void set_startdealerplayerid(::google::protobuf::uint32 value); + // required uint32 handNum = 3; - bool has_handnum() const; - void clear_handnum(); + inline bool has_handnum() const; + inline void clear_handnum(); static const int kHandNumFieldNumber = 3; - ::google::protobuf::uint32 handnum() const; - void set_handnum(::google::protobuf::uint32 value); - + 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(); + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; + 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< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; ::google::protobuf::uint32 handnum_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartRejoinMessage* default_instance_; }; // ------------------------------------------------------------------- -class HandStartMessage_PlainCards : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage.PlainCards) */ { +class HandStartMessage_PlainCards : public ::google::protobuf::MessageLite { public: HandStartMessage_PlainCards(); virtual ~HandStartMessage_PlainCards(); - + HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from); - + inline HandStartMessage_PlainCards& operator=(const HandStartMessage_PlainCards& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - HandStartMessage_PlainCards(HandStartMessage_PlainCards&& from) noexcept - : HandStartMessage_PlainCards() { - *this = ::std::move(from); - } - - inline HandStartMessage_PlainCards& operator=(HandStartMessage_PlainCards&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const HandStartMessage_PlainCards& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HandStartMessage_PlainCards* internal_default_instance() { - return reinterpret_cast( - &_HandStartMessage_PlainCards_default_instance_); - } - static constexpr int kIndexInFileMessages = - 49; - + void Swap(HandStartMessage_PlainCards* other); - friend void swap(HandStartMessage_PlainCards& a, HandStartMessage_PlainCards& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline HandStartMessage_PlainCards* New() const final { - return CreateMaybeMessage(nullptr); - } - - HandStartMessage_PlainCards* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + HandStartMessage_PlainCards* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const HandStartMessage_PlainCards& from); void MergeFrom(const HandStartMessage_PlainCards& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(HandStartMessage_PlainCards* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 plainCard1 = 1; - bool has_plaincard1() const; - void clear_plaincard1(); + inline bool has_plaincard1() const; + inline void clear_plaincard1(); static const int kPlainCard1FieldNumber = 1; - ::google::protobuf::uint32 plaincard1() const; - void set_plaincard1(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 plaincard1() const; + inline void set_plaincard1(::google::protobuf::uint32 value); + // required uint32 plainCard2 = 2; - bool has_plaincard2() const; - void clear_plaincard2(); + inline bool has_plaincard2() const; + inline void clear_plaincard2(); static const int kPlainCard2FieldNumber = 2; - ::google::protobuf::uint32 plaincard2() const; - void set_plaincard2(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 plaincard2() const; + inline void set_plaincard2(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_plaincard1(); + inline void clear_has_plaincard1(); + inline void set_has_plaincard2(); + inline void clear_has_plaincard2(); + ::google::protobuf::uint32 plaincard1_; ::google::protobuf::uint32 plaincard2_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static HandStartMessage_PlainCards* default_instance_; }; // ------------------------------------------------------------------- -class HandStartMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage) */ { +class HandStartMessage : public ::google::protobuf::MessageLite { public: HandStartMessage(); virtual ~HandStartMessage(); - + HandStartMessage(const HandStartMessage& from); - + inline HandStartMessage& operator=(const HandStartMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - HandStartMessage(HandStartMessage&& from) noexcept - : HandStartMessage() { - *this = ::std::move(from); - } - - inline HandStartMessage& operator=(HandStartMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const HandStartMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HandStartMessage* internal_default_instance() { - return reinterpret_cast( - &_HandStartMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 50; - + void Swap(HandStartMessage* other); - friend void swap(HandStartMessage& a, HandStartMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline HandStartMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - HandStartMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + HandStartMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const HandStartMessage& from); void MergeFrom(const HandStartMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(HandStartMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef HandStartMessage_PlainCards PlainCards; - + // accessors ------------------------------------------------------- - - // repeated .NetPlayerState seatStates = 5; - int seatstates_size() const; - void clear_seatstates(); - static const int kSeatStatesFieldNumber = 5; - ::NetPlayerState seatstates(int index) const; - void set_seatstates(int index, ::NetPlayerState value); - void add_seatstates(::NetPlayerState value); - const ::google::protobuf::RepeatedField& seatstates() const; - ::google::protobuf::RepeatedField* mutable_seatstates(); - - // optional bytes encryptedCards = 3; - bool has_encryptedcards() const; - void clear_encryptedcards(); - static const int kEncryptedCardsFieldNumber = 3; - const ::std::string& encryptedcards() const; - void set_encryptedcards(const ::std::string& value); - #if LANG_CXX11 - void set_encryptedcards(::std::string&& value); - #endif - 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); - - // optional .HandStartMessage.PlainCards plainCards = 2; - bool has_plaincards() const; - void clear_plaincards(); - static const int kPlainCardsFieldNumber = 2; - const ::HandStartMessage_PlainCards& plaincards() const; - ::HandStartMessage_PlainCards* release_plaincards(); - ::HandStartMessage_PlainCards* mutable_plaincards(); - void set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards); - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + 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(); + + // 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(); + // required uint32 smallBlind = 4; - bool has_smallblind() const; - void clear_smallblind(); + inline bool has_smallblind() const; + inline void clear_smallblind(); static const int kSmallBlindFieldNumber = 4; - ::google::protobuf::uint32 smallblind() const; - void set_smallblind(::google::protobuf::uint32 value); - + 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(); + // optional uint32 dealerPlayerId = 6; - bool has_dealerplayerid() const; - void clear_dealerplayerid(); + inline bool has_dealerplayerid() const; + inline void clear_dealerplayerid(); static const int kDealerPlayerIdFieldNumber = 6; - ::google::protobuf::uint32 dealerplayerid() const; - void set_dealerplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 dealerplayerid() const; + inline void set_dealerplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:HandStartMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField seatstates_; - ::google::protobuf::internal::ArenaStringPtr encryptedcards_; + 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(); + ::HandStartMessage_PlainCards* plaincards_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 smallblind_; + ::std::string* encryptedcards_; + ::google::protobuf::RepeatedField seatstates_; ::google::protobuf::uint32 dealerplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static HandStartMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayersTurnMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayersTurnMessage) */ { +class PlayersTurnMessage : public ::google::protobuf::MessageLite { public: PlayersTurnMessage(); virtual ~PlayersTurnMessage(); - + PlayersTurnMessage(const PlayersTurnMessage& from); - + inline PlayersTurnMessage& operator=(const PlayersTurnMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayersTurnMessage(PlayersTurnMessage&& from) noexcept - : PlayersTurnMessage() { - *this = ::std::move(from); - } - - inline PlayersTurnMessage& operator=(PlayersTurnMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayersTurnMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayersTurnMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayersTurnMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 51; - + void Swap(PlayersTurnMessage* other); - friend void swap(PlayersTurnMessage& a, PlayersTurnMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayersTurnMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayersTurnMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayersTurnMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayersTurnMessage& from); void MergeFrom(const PlayersTurnMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayersTurnMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .NetGameState gameState = 3; - bool has_gamestate() const; - void clear_gamestate(); + inline bool has_gamestate() const; + inline void clear_gamestate(); static const int kGameStateFieldNumber = 3; - ::NetGameState gamestate() const; - void set_gamestate(::NetGameState value); - + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + // @@protoc_insertion_point(class_scope:PlayersTurnMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamestate_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayersTurnMessage* default_instance_; }; // ------------------------------------------------------------------- -class MyActionRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:MyActionRequestMessage) */ { +class MyActionRequestMessage : public ::google::protobuf::MessageLite { public: MyActionRequestMessage(); virtual ~MyActionRequestMessage(); - + MyActionRequestMessage(const MyActionRequestMessage& from); - + inline MyActionRequestMessage& operator=(const MyActionRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - MyActionRequestMessage(MyActionRequestMessage&& from) noexcept - : MyActionRequestMessage() { - *this = ::std::move(from); - } - - inline MyActionRequestMessage& operator=(MyActionRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const MyActionRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MyActionRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_MyActionRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 52; - + void Swap(MyActionRequestMessage* other); - friend void swap(MyActionRequestMessage& a, MyActionRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline MyActionRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - MyActionRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + MyActionRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const MyActionRequestMessage& from); void MergeFrom(const MyActionRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(MyActionRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 handNum = 2; - bool has_handnum() const; - void clear_handnum(); + inline bool has_handnum() const; + inline void clear_handnum(); static const int kHandNumFieldNumber = 2; - ::google::protobuf::uint32 handnum() const; - void set_handnum(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 handnum() const; + inline void set_handnum(::google::protobuf::uint32 value); + // required .NetGameState gameState = 3; - bool has_gamestate() const; - void clear_gamestate(); + inline bool has_gamestate() const; + inline void clear_gamestate(); static const int kGameStateFieldNumber = 3; - ::NetGameState gamestate() const; - void set_gamestate(::NetGameState value); - + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + // required .NetPlayerAction myAction = 4; - bool has_myaction() const; - void clear_myaction(); + inline bool has_myaction() const; + inline void clear_myaction(); static const int kMyActionFieldNumber = 4; - ::NetPlayerAction myaction() const; - void set_myaction(::NetPlayerAction value); - + inline NetPlayerAction myaction() const; + inline void set_myaction(NetPlayerAction value); + // required uint32 myRelativeBet = 5; - bool has_myrelativebet() const; - void clear_myrelativebet(); + inline bool has_myrelativebet() const; + inline void clear_myrelativebet(); static const int kMyRelativeBetFieldNumber = 5; - ::google::protobuf::uint32 myrelativebet() const; - void set_myrelativebet(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 myrelativebet() const; + inline void set_myrelativebet(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:MyActionRequestMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 handnum_; int gamestate_; int myaction_; ::google::protobuf::uint32 myrelativebet_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static MyActionRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class YourActionRejectedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:YourActionRejectedMessage) */ { +class YourActionRejectedMessage : public ::google::protobuf::MessageLite { public: YourActionRejectedMessage(); virtual ~YourActionRejectedMessage(); - + YourActionRejectedMessage(const YourActionRejectedMessage& from); - + inline YourActionRejectedMessage& operator=(const YourActionRejectedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - YourActionRejectedMessage(YourActionRejectedMessage&& from) noexcept - : YourActionRejectedMessage() { - *this = ::std::move(from); - } - - inline YourActionRejectedMessage& operator=(YourActionRejectedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const YourActionRejectedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const YourActionRejectedMessage* internal_default_instance() { - return reinterpret_cast( - &_YourActionRejectedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 53; - + void Swap(YourActionRejectedMessage* other); - friend void swap(YourActionRejectedMessage& a, YourActionRejectedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline YourActionRejectedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - YourActionRejectedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + YourActionRejectedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const YourActionRejectedMessage& from); void MergeFrom(const YourActionRejectedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(YourActionRejectedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const RejectionReason rejectedInvalidGameState = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; + static const RejectionReason rejectedNotYourTurn = YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn; + static const RejectionReason rejectedActionNotAllowed = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; static inline bool RejectionReason_IsValid(int value) { return YourActionRejectedMessage_RejectionReason_IsValid(value); } @@ -8549,227 +5594,193 @@ class YourActionRejectedMessage : YourActionRejectedMessage_RejectionReason_RejectionReason_MAX; static const int RejectionReason_ARRAYSIZE = YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required .NetGameState gameState = 2; - bool has_gamestate() const; - void clear_gamestate(); + inline bool has_gamestate() const; + inline void clear_gamestate(); static const int kGameStateFieldNumber = 2; - ::NetGameState gamestate() const; - void set_gamestate(::NetGameState value); - + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + // required .NetPlayerAction yourAction = 3; - bool has_youraction() const; - void clear_youraction(); + inline bool has_youraction() const; + inline void clear_youraction(); static const int kYourActionFieldNumber = 3; - ::NetPlayerAction youraction() const; - void set_youraction(::NetPlayerAction value); - + inline NetPlayerAction youraction() const; + inline void set_youraction(NetPlayerAction value); + // required uint32 yourRelativeBet = 4; - bool has_yourrelativebet() const; - void clear_yourrelativebet(); + inline bool has_yourrelativebet() const; + inline void clear_yourrelativebet(); static const int kYourRelativeBetFieldNumber = 4; - ::google::protobuf::uint32 yourrelativebet() const; - void set_yourrelativebet(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 yourrelativebet() const; + inline void set_yourrelativebet(::google::protobuf::uint32 value); + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - bool has_rejectionreason() const; - void clear_rejectionreason(); + inline bool has_rejectionreason() const; + inline void clear_rejectionreason(); static const int kRejectionReasonFieldNumber = 5; - ::YourActionRejectedMessage_RejectionReason rejectionreason() const; - void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); - + inline ::YourActionRejectedMessage_RejectionReason rejectionreason() const; + inline void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; int gamestate_; int youraction_; ::google::protobuf::uint32 yourrelativebet_; int rejectionreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static YourActionRejectedMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayersActionDoneMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayersActionDoneMessage) */ { +class PlayersActionDoneMessage : public ::google::protobuf::MessageLite { public: PlayersActionDoneMessage(); virtual ~PlayersActionDoneMessage(); - + PlayersActionDoneMessage(const PlayersActionDoneMessage& from); - + inline PlayersActionDoneMessage& operator=(const PlayersActionDoneMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayersActionDoneMessage(PlayersActionDoneMessage&& from) noexcept - : PlayersActionDoneMessage() { - *this = ::std::move(from); - } - - inline PlayersActionDoneMessage& operator=(PlayersActionDoneMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayersActionDoneMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayersActionDoneMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayersActionDoneMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 54; - + void Swap(PlayersActionDoneMessage* other); - friend void swap(PlayersActionDoneMessage& a, PlayersActionDoneMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayersActionDoneMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayersActionDoneMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayersActionDoneMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayersActionDoneMessage& from); void MergeFrom(const PlayersActionDoneMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayersActionDoneMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .NetGameState gameState = 3; - bool has_gamestate() const; - void clear_gamestate(); + inline bool has_gamestate() const; + inline void clear_gamestate(); static const int kGameStateFieldNumber = 3; - ::NetGameState gamestate() const; - void set_gamestate(::NetGameState value); - + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + // required .NetPlayerAction playerAction = 4; - bool has_playeraction() const; - void clear_playeraction(); + inline bool has_playeraction() const; + inline void clear_playeraction(); static const int kPlayerActionFieldNumber = 4; - ::NetPlayerAction playeraction() const; - void set_playeraction(::NetPlayerAction value); - + inline NetPlayerAction playeraction() const; + inline void set_playeraction(NetPlayerAction value); + // required uint32 totalPlayerBet = 5; - bool has_totalplayerbet() const; - void clear_totalplayerbet(); + inline bool has_totalplayerbet() const; + inline void clear_totalplayerbet(); static const int kTotalPlayerBetFieldNumber = 5; - ::google::protobuf::uint32 totalplayerbet() const; - void set_totalplayerbet(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 totalplayerbet() const; + inline void set_totalplayerbet(::google::protobuf::uint32 value); + // required uint32 playerMoney = 6; - bool has_playermoney() const; - void clear_playermoney(); + inline bool has_playermoney() const; + inline void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 6; - ::google::protobuf::uint32 playermoney() const; - void set_playermoney(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + // required uint32 highestSet = 7; - bool has_highestset() const; - void clear_highestset(); + inline bool has_highestset() const; + inline void clear_highestset(); static const int kHighestSetFieldNumber = 7; - ::google::protobuf::uint32 highestset() const; - void set_highestset(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 highestset() const; + inline void set_highestset(::google::protobuf::uint32 value); + // required uint32 minimumRaise = 8; - bool has_minimumraise() const; - void clear_minimumraise(); + inline bool has_minimumraise() const; + inline void clear_minimumraise(); static const int kMinimumRaiseFieldNumber = 8; - ::google::protobuf::uint32 minimumraise() const; - void set_minimumraise(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 minimumraise() const; + inline void set_minimumraise(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamestate_; @@ -8778,1671 +5789,1043 @@ class PlayersActionDoneMessage : ::google::protobuf::uint32 playermoney_; ::google::protobuf::uint32 highestset_; ::google::protobuf::uint32 minimumraise_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayersActionDoneMessage* default_instance_; }; // ------------------------------------------------------------------- -class DealFlopCardsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealFlopCardsMessage) */ { +class DealFlopCardsMessage : public ::google::protobuf::MessageLite { public: DealFlopCardsMessage(); virtual ~DealFlopCardsMessage(); - + DealFlopCardsMessage(const DealFlopCardsMessage& from); - + inline DealFlopCardsMessage& operator=(const DealFlopCardsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - DealFlopCardsMessage(DealFlopCardsMessage&& from) noexcept - : DealFlopCardsMessage() { - *this = ::std::move(from); - } - - inline DealFlopCardsMessage& operator=(DealFlopCardsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const DealFlopCardsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DealFlopCardsMessage* internal_default_instance() { - return reinterpret_cast( - &_DealFlopCardsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 55; - + void Swap(DealFlopCardsMessage* other); - friend void swap(DealFlopCardsMessage& a, DealFlopCardsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline DealFlopCardsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - DealFlopCardsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + DealFlopCardsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DealFlopCardsMessage& from); void MergeFrom(const DealFlopCardsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(DealFlopCardsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 flopCard1 = 2; - bool has_flopcard1() const; - void clear_flopcard1(); + inline bool has_flopcard1() const; + inline void clear_flopcard1(); static const int kFlopCard1FieldNumber = 2; - ::google::protobuf::uint32 flopcard1() const; - void set_flopcard1(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 flopcard1() const; + inline void set_flopcard1(::google::protobuf::uint32 value); + // required uint32 flopCard2 = 3; - bool has_flopcard2() const; - void clear_flopcard2(); + inline bool has_flopcard2() const; + inline void clear_flopcard2(); static const int kFlopCard2FieldNumber = 3; - ::google::protobuf::uint32 flopcard2() const; - void set_flopcard2(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 flopcard2() const; + inline void set_flopcard2(::google::protobuf::uint32 value); + // required uint32 flopCard3 = 4; - bool has_flopcard3() const; - void clear_flopcard3(); + inline bool has_flopcard3() const; + inline void clear_flopcard3(); static const int kFlopCard3FieldNumber = 4; - ::google::protobuf::uint32 flopcard3() const; - void set_flopcard3(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 flopcard3() const; + inline void set_flopcard3(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 flopcard1_; ::google::protobuf::uint32 flopcard2_; ::google::protobuf::uint32 flopcard3_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealFlopCardsMessage* default_instance_; }; // ------------------------------------------------------------------- -class DealTurnCardMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealTurnCardMessage) */ { +class DealTurnCardMessage : public ::google::protobuf::MessageLite { public: DealTurnCardMessage(); virtual ~DealTurnCardMessage(); - + DealTurnCardMessage(const DealTurnCardMessage& from); - + inline DealTurnCardMessage& operator=(const DealTurnCardMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - DealTurnCardMessage(DealTurnCardMessage&& from) noexcept - : DealTurnCardMessage() { - *this = ::std::move(from); - } - - inline DealTurnCardMessage& operator=(DealTurnCardMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const DealTurnCardMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DealTurnCardMessage* internal_default_instance() { - return reinterpret_cast( - &_DealTurnCardMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 56; - + void Swap(DealTurnCardMessage* other); - friend void swap(DealTurnCardMessage& a, DealTurnCardMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline DealTurnCardMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - DealTurnCardMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + DealTurnCardMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DealTurnCardMessage& from); void MergeFrom(const DealTurnCardMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(DealTurnCardMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 turnCard = 2; - bool has_turncard() const; - void clear_turncard(); + inline bool has_turncard() const; + inline void clear_turncard(); static const int kTurnCardFieldNumber = 2; - ::google::protobuf::uint32 turncard() const; - void set_turncard(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 turncard() const; + inline void set_turncard(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:DealTurnCardMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_turncard(); + inline void clear_has_turncard(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 turncard_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealTurnCardMessage* default_instance_; }; // ------------------------------------------------------------------- -class DealRiverCardMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealRiverCardMessage) */ { +class DealRiverCardMessage : public ::google::protobuf::MessageLite { public: DealRiverCardMessage(); virtual ~DealRiverCardMessage(); - + DealRiverCardMessage(const DealRiverCardMessage& from); - + inline DealRiverCardMessage& operator=(const DealRiverCardMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - DealRiverCardMessage(DealRiverCardMessage&& from) noexcept - : DealRiverCardMessage() { - *this = ::std::move(from); - } - - inline DealRiverCardMessage& operator=(DealRiverCardMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const DealRiverCardMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DealRiverCardMessage* internal_default_instance() { - return reinterpret_cast( - &_DealRiverCardMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 57; - + void Swap(DealRiverCardMessage* other); - friend void swap(DealRiverCardMessage& a, DealRiverCardMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline DealRiverCardMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - DealRiverCardMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + DealRiverCardMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DealRiverCardMessage& from); void MergeFrom(const DealRiverCardMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(DealRiverCardMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 riverCard = 2; - bool has_rivercard() const; - void clear_rivercard(); + inline bool has_rivercard() const; + inline void clear_rivercard(); static const int kRiverCardFieldNumber = 2; - ::google::protobuf::uint32 rivercard() const; - void set_rivercard(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 rivercard() const; + inline void set_rivercard(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:DealRiverCardMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_rivercard(); + inline void clear_has_rivercard(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 rivercard_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealRiverCardMessage* default_instance_; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage_PlayerAllIn : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage.PlayerAllIn) */ { +class AllInShowCardsMessage_PlayerAllIn : public ::google::protobuf::MessageLite { public: AllInShowCardsMessage_PlayerAllIn(); virtual ~AllInShowCardsMessage_PlayerAllIn(); - + AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from); - + inline AllInShowCardsMessage_PlayerAllIn& operator=(const AllInShowCardsMessage_PlayerAllIn& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AllInShowCardsMessage_PlayerAllIn(AllInShowCardsMessage_PlayerAllIn&& from) noexcept - : AllInShowCardsMessage_PlayerAllIn() { - *this = ::std::move(from); - } - - inline AllInShowCardsMessage_PlayerAllIn& operator=(AllInShowCardsMessage_PlayerAllIn&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AllInShowCardsMessage_PlayerAllIn& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AllInShowCardsMessage_PlayerAllIn* internal_default_instance() { - return reinterpret_cast( - &_AllInShowCardsMessage_PlayerAllIn_default_instance_); - } - static constexpr int kIndexInFileMessages = - 58; - + void Swap(AllInShowCardsMessage_PlayerAllIn* other); - friend void swap(AllInShowCardsMessage_PlayerAllIn& a, AllInShowCardsMessage_PlayerAllIn& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AllInShowCardsMessage_PlayerAllIn* New() const final { - return CreateMaybeMessage(nullptr); - } - - AllInShowCardsMessage_PlayerAllIn* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AllInShowCardsMessage_PlayerAllIn* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from); void MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AllInShowCardsMessage_PlayerAllIn* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 playerId = 1; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required uint32 allInCard1 = 2; - bool has_allincard1() const; - void clear_allincard1(); + inline bool has_allincard1() const; + inline void clear_allincard1(); static const int kAllInCard1FieldNumber = 2; - ::google::protobuf::uint32 allincard1() const; - void set_allincard1(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 allincard1() const; + inline void set_allincard1(::google::protobuf::uint32 value); + // required uint32 allInCard2 = 3; - bool has_allincard2() const; - void clear_allincard2(); + inline bool has_allincard2() const; + inline void clear_allincard2(); static const int kAllInCard2FieldNumber = 3; - ::google::protobuf::uint32 allincard2() const; - void set_allincard2(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 allincard2() const; + inline void set_allincard2(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 playerid_; ::google::protobuf::uint32 allincard1_; ::google::protobuf::uint32 allincard2_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AllInShowCardsMessage_PlayerAllIn* default_instance_; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage) */ { +class AllInShowCardsMessage : public ::google::protobuf::MessageLite { public: AllInShowCardsMessage(); virtual ~AllInShowCardsMessage(); - + AllInShowCardsMessage(const AllInShowCardsMessage& from); - + inline AllInShowCardsMessage& operator=(const AllInShowCardsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AllInShowCardsMessage(AllInShowCardsMessage&& from) noexcept - : AllInShowCardsMessage() { - *this = ::std::move(from); - } - - inline AllInShowCardsMessage& operator=(AllInShowCardsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AllInShowCardsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AllInShowCardsMessage* internal_default_instance() { - return reinterpret_cast( - &_AllInShowCardsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 59; - + void Swap(AllInShowCardsMessage* other); - friend void swap(AllInShowCardsMessage& a, AllInShowCardsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AllInShowCardsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AllInShowCardsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AllInShowCardsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AllInShowCardsMessage& from); void MergeFrom(const AllInShowCardsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AllInShowCardsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef AllInShowCardsMessage_PlayerAllIn PlayerAllIn; - + // accessors ------------------------------------------------------- - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - int playersallin_size() const; - void clear_playersallin(); - static const int kPlayersAllInFieldNumber = 2; - ::AllInShowCardsMessage_PlayerAllIn* mutable_playersallin(int index); - ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* - mutable_playersallin(); - const ::AllInShowCardsMessage_PlayerAllIn& playersallin(int index) const; - ::AllInShowCardsMessage_PlayerAllIn* add_playersallin(); - const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& - playersallin() const; - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // 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 >* + mutable_playersallin(); + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn > playersallin_; ::google::protobuf::uint32 gameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AllInShowCardsMessage* default_instance_; }; // ------------------------------------------------------------------- -class EndOfHandShowCardsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandShowCardsMessage) */ { +class EndOfHandShowCardsMessage : public ::google::protobuf::MessageLite { public: EndOfHandShowCardsMessage(); virtual ~EndOfHandShowCardsMessage(); - + EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from); - + inline EndOfHandShowCardsMessage& operator=(const EndOfHandShowCardsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - EndOfHandShowCardsMessage(EndOfHandShowCardsMessage&& from) noexcept - : EndOfHandShowCardsMessage() { - *this = ::std::move(from); - } - - inline EndOfHandShowCardsMessage& operator=(EndOfHandShowCardsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const EndOfHandShowCardsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EndOfHandShowCardsMessage* internal_default_instance() { - return reinterpret_cast( - &_EndOfHandShowCardsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 60; - + void Swap(EndOfHandShowCardsMessage* other); - friend void swap(EndOfHandShowCardsMessage& a, EndOfHandShowCardsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline EndOfHandShowCardsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - EndOfHandShowCardsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + EndOfHandShowCardsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const EndOfHandShowCardsMessage& from); void MergeFrom(const EndOfHandShowCardsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(EndOfHandShowCardsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // repeated .PlayerResult playerResults = 2; - int playerresults_size() const; - void clear_playerresults(); - static const int kPlayerResultsFieldNumber = 2; - ::PlayerResult* mutable_playerresults(int index); - ::google::protobuf::RepeatedPtrField< ::PlayerResult >* - mutable_playerresults(); - const ::PlayerResult& playerresults(int index) const; - ::PlayerResult* add_playerresults(); - const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& - playerresults() const; - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // 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 >* + mutable_playerresults(); + // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + ::google::protobuf::RepeatedPtrField< ::PlayerResult > playerresults_; ::google::protobuf::uint32 gameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfHandShowCardsMessage* default_instance_; }; // ------------------------------------------------------------------- -class EndOfHandHideCardsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandHideCardsMessage) */ { +class EndOfHandHideCardsMessage : public ::google::protobuf::MessageLite { public: EndOfHandHideCardsMessage(); virtual ~EndOfHandHideCardsMessage(); - + EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from); - + inline EndOfHandHideCardsMessage& operator=(const EndOfHandHideCardsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - EndOfHandHideCardsMessage(EndOfHandHideCardsMessage&& from) noexcept - : EndOfHandHideCardsMessage() { - *this = ::std::move(from); - } - - inline EndOfHandHideCardsMessage& operator=(EndOfHandHideCardsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const EndOfHandHideCardsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EndOfHandHideCardsMessage* internal_default_instance() { - return reinterpret_cast( - &_EndOfHandHideCardsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 61; - + void Swap(EndOfHandHideCardsMessage* other); - friend void swap(EndOfHandHideCardsMessage& a, EndOfHandHideCardsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline EndOfHandHideCardsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - EndOfHandHideCardsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + EndOfHandHideCardsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const EndOfHandHideCardsMessage& from); void MergeFrom(const EndOfHandHideCardsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(EndOfHandHideCardsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required uint32 moneyWon = 3; - bool has_moneywon() const; - void clear_moneywon(); + inline bool has_moneywon() const; + inline void clear_moneywon(); static const int kMoneyWonFieldNumber = 3; - ::google::protobuf::uint32 moneywon() const; - void set_moneywon(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 moneywon() const; + inline void set_moneywon(::google::protobuf::uint32 value); + // required uint32 playerMoney = 4; - bool has_playermoney() const; - void clear_playermoney(); + inline bool has_playermoney() const; + inline void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 4; - ::google::protobuf::uint32 playermoney() const; - void set_playermoney(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; ::google::protobuf::uint32 moneywon_; ::google::protobuf::uint32 playermoney_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfHandHideCardsMessage* default_instance_; }; // ------------------------------------------------------------------- -class ShowMyCardsRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ShowMyCardsRequestMessage) */ { +class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { public: ShowMyCardsRequestMessage(); virtual ~ShowMyCardsRequestMessage(); - + ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from); - + inline ShowMyCardsRequestMessage& operator=(const ShowMyCardsRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ShowMyCardsRequestMessage(ShowMyCardsRequestMessage&& from) noexcept - : ShowMyCardsRequestMessage() { - *this = ::std::move(from); - } - - inline ShowMyCardsRequestMessage& operator=(ShowMyCardsRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ShowMyCardsRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ShowMyCardsRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_ShowMyCardsRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 62; - + void Swap(ShowMyCardsRequestMessage* other); - friend void swap(ShowMyCardsRequestMessage& a, ShowMyCardsRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ShowMyCardsRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ShowMyCardsRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ShowMyCardsRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ShowMyCardsRequestMessage& from); void MergeFrom(const ShowMyCardsRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ShowMyCardsRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pokerth_2eproto; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ShowMyCardsRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class AfterHandShowCardsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AfterHandShowCardsMessage) */ { +class AfterHandShowCardsMessage : public ::google::protobuf::MessageLite { public: AfterHandShowCardsMessage(); virtual ~AfterHandShowCardsMessage(); - + AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from); - + inline AfterHandShowCardsMessage& operator=(const AfterHandShowCardsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AfterHandShowCardsMessage(AfterHandShowCardsMessage&& from) noexcept - : AfterHandShowCardsMessage() { - *this = ::std::move(from); - } - - inline AfterHandShowCardsMessage& operator=(AfterHandShowCardsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AfterHandShowCardsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AfterHandShowCardsMessage* internal_default_instance() { - return reinterpret_cast( - &_AfterHandShowCardsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 63; - + void Swap(AfterHandShowCardsMessage* other); - friend void swap(AfterHandShowCardsMessage& a, AfterHandShowCardsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AfterHandShowCardsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AfterHandShowCardsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AfterHandShowCardsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AfterHandShowCardsMessage& from); void MergeFrom(const AfterHandShowCardsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AfterHandShowCardsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required .PlayerResult playerResult = 1; - bool has_playerresult() const; - void clear_playerresult(); + inline bool has_playerresult() const; + inline void clear_playerresult(); static const int kPlayerResultFieldNumber = 1; - const ::PlayerResult& playerresult() const; - ::PlayerResult* release_playerresult(); - ::PlayerResult* mutable_playerresult(); - void set_allocated_playerresult(::PlayerResult* playerresult); - + inline const ::PlayerResult& playerresult() const; + inline ::PlayerResult* mutable_playerresult(); + inline ::PlayerResult* release_playerresult(); + // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_playerresult(); + inline void clear_has_playerresult(); + ::PlayerResult* playerresult_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AfterHandShowCardsMessage* default_instance_; }; // ------------------------------------------------------------------- -class EndOfGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfGameMessage) */ { +class EndOfGameMessage : public ::google::protobuf::MessageLite { public: EndOfGameMessage(); virtual ~EndOfGameMessage(); - + EndOfGameMessage(const EndOfGameMessage& from); - + inline EndOfGameMessage& operator=(const EndOfGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - EndOfGameMessage(EndOfGameMessage&& from) noexcept - : EndOfGameMessage() { - *this = ::std::move(from); - } - - inline EndOfGameMessage& operator=(EndOfGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const EndOfGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EndOfGameMessage* internal_default_instance() { - return reinterpret_cast( - &_EndOfGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 64; - + void Swap(EndOfGameMessage* other); - friend void swap(EndOfGameMessage& a, EndOfGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline EndOfGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - EndOfGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + EndOfGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const EndOfGameMessage& from); void MergeFrom(const EndOfGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(EndOfGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 winnerPlayerId = 2; - bool has_winnerplayerid() const; - void clear_winnerplayerid(); + inline bool has_winnerplayerid() const; + inline void clear_winnerplayerid(); static const int kWinnerPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 winnerplayerid() const; - void set_winnerplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 winnerplayerid() const; + inline void set_winnerplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:EndOfGameMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_winnerplayerid(); + inline void clear_has_winnerplayerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 winnerplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class PlayerIdChangedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerIdChangedMessage) */ { +class PlayerIdChangedMessage : public ::google::protobuf::MessageLite { public: PlayerIdChangedMessage(); virtual ~PlayerIdChangedMessage(); - + PlayerIdChangedMessage(const PlayerIdChangedMessage& from); - + inline PlayerIdChangedMessage& operator=(const PlayerIdChangedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PlayerIdChangedMessage(PlayerIdChangedMessage&& from) noexcept - : PlayerIdChangedMessage() { - *this = ::std::move(from); - } - - inline PlayerIdChangedMessage& operator=(PlayerIdChangedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PlayerIdChangedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PlayerIdChangedMessage* internal_default_instance() { - return reinterpret_cast( - &_PlayerIdChangedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 65; - + void Swap(PlayerIdChangedMessage* other); - friend void swap(PlayerIdChangedMessage& a, PlayerIdChangedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PlayerIdChangedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PlayerIdChangedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PlayerIdChangedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PlayerIdChangedMessage& from); void MergeFrom(const PlayerIdChangedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PlayerIdChangedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 oldPlayerId = 1; - bool has_oldplayerid() const; - void clear_oldplayerid(); + inline bool has_oldplayerid() const; + inline void clear_oldplayerid(); static const int kOldPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 oldplayerid() const; - void set_oldplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 oldplayerid() const; + inline void set_oldplayerid(::google::protobuf::uint32 value); + // required uint32 newPlayerId = 2; - bool has_newplayerid() const; - void clear_newplayerid(); + inline bool has_newplayerid() const; + inline void clear_newplayerid(); static const int kNewPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 newplayerid() const; - void set_newplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 newplayerid() const; + inline void set_newplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_oldplayerid(); + inline void clear_has_oldplayerid(); + inline void set_has_newplayerid(); + inline void clear_has_newplayerid(); + ::google::protobuf::uint32 oldplayerid_; ::google::protobuf::uint32 newplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerIdChangedMessage* default_instance_; }; // ------------------------------------------------------------------- -class AskKickPlayerMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AskKickPlayerMessage) */ { +class AskKickPlayerMessage : public ::google::protobuf::MessageLite { public: AskKickPlayerMessage(); virtual ~AskKickPlayerMessage(); - + AskKickPlayerMessage(const AskKickPlayerMessage& from); - + inline AskKickPlayerMessage& operator=(const AskKickPlayerMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AskKickPlayerMessage(AskKickPlayerMessage&& from) noexcept - : AskKickPlayerMessage() { - *this = ::std::move(from); - } - - inline AskKickPlayerMessage& operator=(AskKickPlayerMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AskKickPlayerMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AskKickPlayerMessage* internal_default_instance() { - return reinterpret_cast( - &_AskKickPlayerMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 66; - + void Swap(AskKickPlayerMessage* other); - friend void swap(AskKickPlayerMessage& a, AskKickPlayerMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AskKickPlayerMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AskKickPlayerMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AskKickPlayerMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AskKickPlayerMessage& from); void MergeFrom(const AskKickPlayerMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AskKickPlayerMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AskKickPlayerMessage* default_instance_; }; // ------------------------------------------------------------------- -class AskKickDeniedMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AskKickDeniedMessage) */ { +class AskKickDeniedMessage : public ::google::protobuf::MessageLite { public: AskKickDeniedMessage(); virtual ~AskKickDeniedMessage(); - + AskKickDeniedMessage(const AskKickDeniedMessage& from); - + inline AskKickDeniedMessage& operator=(const AskKickDeniedMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AskKickDeniedMessage(AskKickDeniedMessage&& from) noexcept - : AskKickDeniedMessage() { - *this = ::std::move(from); - } - - inline AskKickDeniedMessage& operator=(AskKickDeniedMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AskKickDeniedMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AskKickDeniedMessage* internal_default_instance() { - return reinterpret_cast( - &_AskKickDeniedMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 67; - + void Swap(AskKickDeniedMessage* other); - friend void swap(AskKickDeniedMessage& a, AskKickDeniedMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AskKickDeniedMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AskKickDeniedMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AskKickDeniedMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AskKickDeniedMessage& from); void MergeFrom(const AskKickDeniedMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AskKickDeniedMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool KickDeniedReason_IsValid(int value) { return AskKickDeniedMessage_KickDeniedReason_IsValid(value); } @@ -10452,446 +6835,308 @@ class AskKickDeniedMessage : AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX; static const int KickDeniedReason_ARRAYSIZE = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - bool has_kickdeniedreason() const; - void clear_kickdeniedreason(); + inline bool has_kickdeniedreason() const; + inline void clear_kickdeniedreason(); static const int kKickDeniedReasonFieldNumber = 3; - ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; - void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); - + inline ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; + inline void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int kickdeniedreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AskKickDeniedMessage* default_instance_; }; // ------------------------------------------------------------------- -class StartKickPetitionMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartKickPetitionMessage) */ { +class StartKickPetitionMessage : public ::google::protobuf::MessageLite { public: StartKickPetitionMessage(); virtual ~StartKickPetitionMessage(); - + StartKickPetitionMessage(const StartKickPetitionMessage& from); - + inline StartKickPetitionMessage& operator=(const StartKickPetitionMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - StartKickPetitionMessage(StartKickPetitionMessage&& from) noexcept - : StartKickPetitionMessage() { - *this = ::std::move(from); - } - - inline StartKickPetitionMessage& operator=(StartKickPetitionMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const StartKickPetitionMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StartKickPetitionMessage* internal_default_instance() { - return reinterpret_cast( - &_StartKickPetitionMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 68; - + void Swap(StartKickPetitionMessage* other); - friend void swap(StartKickPetitionMessage& a, StartKickPetitionMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline StartKickPetitionMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - StartKickPetitionMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + StartKickPetitionMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const StartKickPetitionMessage& from); void MergeFrom(const StartKickPetitionMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(StartKickPetitionMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 petitionId = 2; - bool has_petitionid() const; - void clear_petitionid(); + inline bool has_petitionid() const; + inline void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - ::google::protobuf::uint32 petitionid() const; - void set_petitionid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + // required uint32 proposingPlayerId = 3; - bool has_proposingplayerid() const; - void clear_proposingplayerid(); + inline bool has_proposingplayerid() const; + inline void clear_proposingplayerid(); static const int kProposingPlayerIdFieldNumber = 3; - ::google::protobuf::uint32 proposingplayerid() const; - void set_proposingplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 proposingplayerid() const; + inline void set_proposingplayerid(::google::protobuf::uint32 value); + // required uint32 kickPlayerId = 4; - bool has_kickplayerid() const; - void clear_kickplayerid(); + inline bool has_kickplayerid() const; + inline void clear_kickplayerid(); static const int kKickPlayerIdFieldNumber = 4; - ::google::protobuf::uint32 kickplayerid() const; - void set_kickplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 kickplayerid() const; + inline void set_kickplayerid(::google::protobuf::uint32 value); + // required uint32 kickTimeoutSec = 5; - bool has_kicktimeoutsec() const; - void clear_kicktimeoutsec(); + inline bool has_kicktimeoutsec() const; + inline void clear_kicktimeoutsec(); static const int kKickTimeoutSecFieldNumber = 5; - ::google::protobuf::uint32 kicktimeoutsec() const; - void set_kicktimeoutsec(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 kicktimeoutsec() const; + inline void set_kicktimeoutsec(::google::protobuf::uint32 value); + // required uint32 numVotesNeededToKick = 6; - bool has_numvotesneededtokick() const; - void clear_numvotesneededtokick(); + inline bool has_numvotesneededtokick() const; + inline void clear_numvotesneededtokick(); static const int kNumVotesNeededToKickFieldNumber = 6; - ::google::protobuf::uint32 numvotesneededtokick() const; - void set_numvotesneededtokick(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesneededtokick() const; + inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 proposingplayerid_; ::google::protobuf::uint32 kickplayerid_; ::google::protobuf::uint32 kicktimeoutsec_; ::google::protobuf::uint32 numvotesneededtokick_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartKickPetitionMessage* default_instance_; }; // ------------------------------------------------------------------- -class VoteKickRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickRequestMessage) */ { +class VoteKickRequestMessage : public ::google::protobuf::MessageLite { public: VoteKickRequestMessage(); virtual ~VoteKickRequestMessage(); - + VoteKickRequestMessage(const VoteKickRequestMessage& from); - + inline VoteKickRequestMessage& operator=(const VoteKickRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - VoteKickRequestMessage(VoteKickRequestMessage&& from) noexcept - : VoteKickRequestMessage() { - *this = ::std::move(from); - } - - inline VoteKickRequestMessage& operator=(VoteKickRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const VoteKickRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VoteKickRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_VoteKickRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 69; - + void Swap(VoteKickRequestMessage* other); - friend void swap(VoteKickRequestMessage& a, VoteKickRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline VoteKickRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - VoteKickRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + VoteKickRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const VoteKickRequestMessage& from); void MergeFrom(const VoteKickRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(VoteKickRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 petitionId = 2; - bool has_petitionid() const; - void clear_petitionid(); + inline bool has_petitionid() const; + inline void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - ::google::protobuf::uint32 petitionid() const; - void set_petitionid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + // required bool voteKick = 3; - bool has_votekick() const; - void clear_votekick(); + inline bool has_votekick() const; + inline void clear_votekick(); static const int kVoteKickFieldNumber = 3; - bool votekick() const; - void set_votekick(bool value); - + inline bool votekick() const; + inline void set_votekick(bool value); + // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; bool votekick_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static VoteKickRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class VoteKickReplyMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickReplyMessage) */ { +class VoteKickReplyMessage : public ::google::protobuf::MessageLite { public: VoteKickReplyMessage(); virtual ~VoteKickReplyMessage(); - + VoteKickReplyMessage(const VoteKickReplyMessage& from); - + inline VoteKickReplyMessage& operator=(const VoteKickReplyMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - VoteKickReplyMessage(VoteKickReplyMessage&& from) noexcept - : VoteKickReplyMessage() { - *this = ::std::move(from); - } - - inline VoteKickReplyMessage& operator=(VoteKickReplyMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const VoteKickReplyMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VoteKickReplyMessage* internal_default_instance() { - return reinterpret_cast( - &_VoteKickReplyMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 70; - + void Swap(VoteKickReplyMessage* other); - friend void swap(VoteKickReplyMessage& a, VoteKickReplyMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline VoteKickReplyMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - VoteKickReplyMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + VoteKickReplyMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const VoteKickReplyMessage& from); void MergeFrom(const VoteKickReplyMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(VoteKickReplyMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const VoteKickReplyType voteKickAck = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; + static const VoteKickReplyType voteKickDeniedInvalid = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid; + static const VoteKickReplyType voteKickDeniedAlreadyVoted = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; static inline bool VoteKickReplyType_IsValid(int value) { return VoteKickReplyMessage_VoteKickReplyType_IsValid(value); } @@ -10901,304 +7146,210 @@ class VoteKickReplyMessage : VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX; static const int VoteKickReplyType_ARRAYSIZE = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 petitionId = 2; - bool has_petitionid() const; - void clear_petitionid(); + inline bool has_petitionid() const; + inline void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - ::google::protobuf::uint32 petitionid() const; - void set_petitionid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - bool has_votekickreplytype() const; - void clear_votekickreplytype(); + inline bool has_votekickreplytype() const; + inline void clear_votekickreplytype(); static const int kVoteKickReplyTypeFieldNumber = 3; - ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; - void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); - + inline ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; + inline void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; int votekickreplytype_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static VoteKickReplyMessage* default_instance_; }; // ------------------------------------------------------------------- -class KickPetitionUpdateMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:KickPetitionUpdateMessage) */ { +class KickPetitionUpdateMessage : public ::google::protobuf::MessageLite { public: KickPetitionUpdateMessage(); virtual ~KickPetitionUpdateMessage(); - + KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from); - + inline KickPetitionUpdateMessage& operator=(const KickPetitionUpdateMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - KickPetitionUpdateMessage(KickPetitionUpdateMessage&& from) noexcept - : KickPetitionUpdateMessage() { - *this = ::std::move(from); - } - - inline KickPetitionUpdateMessage& operator=(KickPetitionUpdateMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const KickPetitionUpdateMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KickPetitionUpdateMessage* internal_default_instance() { - return reinterpret_cast( - &_KickPetitionUpdateMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 71; - + void Swap(KickPetitionUpdateMessage* other); - friend void swap(KickPetitionUpdateMessage& a, KickPetitionUpdateMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline KickPetitionUpdateMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - KickPetitionUpdateMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + KickPetitionUpdateMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const KickPetitionUpdateMessage& from); void MergeFrom(const KickPetitionUpdateMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(KickPetitionUpdateMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 petitionId = 2; - bool has_petitionid() const; - void clear_petitionid(); + inline bool has_petitionid() const; + inline void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - ::google::protobuf::uint32 petitionid() const; - void set_petitionid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + // required uint32 numVotesAgainstKicking = 3; - bool has_numvotesagainstkicking() const; - void clear_numvotesagainstkicking(); + inline bool has_numvotesagainstkicking() const; + inline void clear_numvotesagainstkicking(); static const int kNumVotesAgainstKickingFieldNumber = 3; - ::google::protobuf::uint32 numvotesagainstkicking() const; - void set_numvotesagainstkicking(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesagainstkicking() const; + inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + // required uint32 numVotesInFavourOfKicking = 4; - bool has_numvotesinfavourofkicking() const; - void clear_numvotesinfavourofkicking(); + inline bool has_numvotesinfavourofkicking() const; + inline void clear_numvotesinfavourofkicking(); static const int kNumVotesInFavourOfKickingFieldNumber = 4; - ::google::protobuf::uint32 numvotesinfavourofkicking() const; - void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; + inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + // required uint32 numVotesNeededToKick = 5; - bool has_numvotesneededtokick() const; - void clear_numvotesneededtokick(); + inline bool has_numvotesneededtokick() const; + inline void clear_numvotesneededtokick(); static const int kNumVotesNeededToKickFieldNumber = 5; - ::google::protobuf::uint32 numvotesneededtokick() const; - void set_numvotesneededtokick(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesneededtokick() const; + inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 numvotesagainstkicking_; ::google::protobuf::uint32 numvotesinfavourofkicking_; ::google::protobuf::uint32 numvotesneededtokick_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static KickPetitionUpdateMessage* default_instance_; }; // ------------------------------------------------------------------- -class EndKickPetitionMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndKickPetitionMessage) */ { +class EndKickPetitionMessage : public ::google::protobuf::MessageLite { public: EndKickPetitionMessage(); virtual ~EndKickPetitionMessage(); - + EndKickPetitionMessage(const EndKickPetitionMessage& from); - + inline EndKickPetitionMessage& operator=(const EndKickPetitionMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - EndKickPetitionMessage(EndKickPetitionMessage&& from) noexcept - : EndKickPetitionMessage() { - *this = ::std::move(from); - } - - inline EndKickPetitionMessage& operator=(EndKickPetitionMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const EndKickPetitionMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EndKickPetitionMessage* internal_default_instance() { - return reinterpret_cast( - &_EndKickPetitionMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 72; - + void Swap(EndKickPetitionMessage* other); - friend void swap(EndKickPetitionMessage& a, EndKickPetitionMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline EndKickPetitionMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - EndKickPetitionMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + EndKickPetitionMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const EndKickPetitionMessage& from); void MergeFrom(const EndKickPetitionMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(EndKickPetitionMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool PetitionEndReason_IsValid(int value) { return EndKickPetitionMessage_PetitionEndReason_IsValid(value); } @@ -11208,170 +7359,128 @@ class EndKickPetitionMessage : EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX; static const int PetitionEndReason_ARRAYSIZE = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // required uint32 petitionId = 2; - bool has_petitionid() const; - void clear_petitionid(); + inline bool has_petitionid() const; + inline void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - ::google::protobuf::uint32 petitionid() const; - void set_petitionid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + // required uint32 numVotesAgainstKicking = 3; - bool has_numvotesagainstkicking() const; - void clear_numvotesagainstkicking(); + inline bool has_numvotesagainstkicking() const; + inline void clear_numvotesagainstkicking(); static const int kNumVotesAgainstKickingFieldNumber = 3; - ::google::protobuf::uint32 numvotesagainstkicking() const; - void set_numvotesagainstkicking(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesagainstkicking() const; + inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + // required uint32 numVotesInFavourOfKicking = 4; - bool has_numvotesinfavourofkicking() const; - void clear_numvotesinfavourofkicking(); + inline bool has_numvotesinfavourofkicking() const; + inline void clear_numvotesinfavourofkicking(); static const int kNumVotesInFavourOfKickingFieldNumber = 4; - ::google::protobuf::uint32 numvotesinfavourofkicking() const; - void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; + inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + // required uint32 resultPlayerKicked = 5; - bool has_resultplayerkicked() const; - void clear_resultplayerkicked(); + inline bool has_resultplayerkicked() const; + inline void clear_resultplayerkicked(); static const int kResultPlayerKickedFieldNumber = 5; - ::google::protobuf::uint32 resultplayerkicked() const; - void set_resultplayerkicked(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 resultplayerkicked() const; + inline void set_resultplayerkicked(::google::protobuf::uint32 value); + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - bool has_petitionendreason() const; - void clear_petitionendreason(); + inline bool has_petitionendreason() const; + inline void clear_petitionendreason(); static const int kPetitionEndReasonFieldNumber = 6; - ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; - void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); - + inline ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; + inline void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 numvotesagainstkicking_; ::google::protobuf::uint32 numvotesinfavourofkicking_; ::google::protobuf::uint32 resultplayerkicked_; int petitionendreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndKickPetitionMessage* default_instance_; }; // ------------------------------------------------------------------- -class StatisticsMessage_StatisticsData : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage.StatisticsData) */ { +class StatisticsMessage_StatisticsData : public ::google::protobuf::MessageLite { public: StatisticsMessage_StatisticsData(); virtual ~StatisticsMessage_StatisticsData(); - + StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from); - + inline StatisticsMessage_StatisticsData& operator=(const StatisticsMessage_StatisticsData& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - StatisticsMessage_StatisticsData(StatisticsMessage_StatisticsData&& from) noexcept - : StatisticsMessage_StatisticsData() { - *this = ::std::move(from); - } - - inline StatisticsMessage_StatisticsData& operator=(StatisticsMessage_StatisticsData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const StatisticsMessage_StatisticsData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StatisticsMessage_StatisticsData* internal_default_instance() { - return reinterpret_cast( - &_StatisticsMessage_StatisticsData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 73; - + void Swap(StatisticsMessage_StatisticsData* other); - friend void swap(StatisticsMessage_StatisticsData& a, StatisticsMessage_StatisticsData& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline StatisticsMessage_StatisticsData* New() const final { - return CreateMaybeMessage(nullptr); - } - - StatisticsMessage_StatisticsData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + StatisticsMessage_StatisticsData* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const StatisticsMessage_StatisticsData& from); void MergeFrom(const StatisticsMessage_StatisticsData& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(StatisticsMessage_StatisticsData* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef StatisticsMessage_StatisticsData_StatisticsType StatisticsType; - static const StatisticsType statNumberOfPlayers = - StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; + static const StatisticsType statNumberOfPlayers = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; static inline bool StatisticsType_IsValid(int value) { return StatisticsMessage_StatisticsData_StatisticsType_IsValid(value); } @@ -11381,411 +7490,259 @@ class StatisticsMessage_StatisticsData : StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX; static const int StatisticsType_ARRAYSIZE = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // required uint32 statisticsValue = 2; - bool has_statisticsvalue() const; - void clear_statisticsvalue(); - static const int kStatisticsValueFieldNumber = 2; - ::google::protobuf::uint32 statisticsvalue() const; - void set_statisticsvalue(::google::protobuf::uint32 value); - + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - bool has_statisticstype() const; - void clear_statisticstype(); + inline bool has_statisticstype() const; + inline void clear_statisticstype(); static const int kStatisticsTypeFieldNumber = 1; - ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; - void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); - + inline ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; + inline void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); + + // 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); + // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 statisticsvalue_; + inline void set_has_statisticstype(); + inline void clear_has_statisticstype(); + inline void set_has_statisticsvalue(); + inline void clear_has_statisticsvalue(); + int statisticstype_; - friend struct ::TableStruct_pokerth_2eproto; + ::google::protobuf::uint32 statisticsvalue_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StatisticsMessage_StatisticsData* default_instance_; }; // ------------------------------------------------------------------- -class StatisticsMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage) */ { +class StatisticsMessage : public ::google::protobuf::MessageLite { public: StatisticsMessage(); virtual ~StatisticsMessage(); - + StatisticsMessage(const StatisticsMessage& from); - + inline StatisticsMessage& operator=(const StatisticsMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - StatisticsMessage(StatisticsMessage&& from) noexcept - : StatisticsMessage() { - *this = ::std::move(from); - } - - inline StatisticsMessage& operator=(StatisticsMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const StatisticsMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StatisticsMessage* internal_default_instance() { - return reinterpret_cast( - &_StatisticsMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 74; - + void Swap(StatisticsMessage* other); - friend void swap(StatisticsMessage& a, StatisticsMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline StatisticsMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - StatisticsMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + StatisticsMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const StatisticsMessage& from); void MergeFrom(const StatisticsMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(StatisticsMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef StatisticsMessage_StatisticsData StatisticsData; - + // accessors ------------------------------------------------------- - + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - int statisticsdata_size() const; - void clear_statisticsdata(); + inline int statisticsdata_size() const; + inline void clear_statisticsdata(); static const int kStatisticsDataFieldNumber = 1; - ::StatisticsMessage_StatisticsData* mutable_statisticsdata(int index); - ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* - mutable_statisticsdata(); - const ::StatisticsMessage_StatisticsData& statisticsdata(int index) const; - ::StatisticsMessage_StatisticsData* add_statisticsdata(); - const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& + 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 >* + mutable_statisticsdata(); + // @@protoc_insertion_point(class_scope:StatisticsMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData > statisticsdata_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StatisticsMessage* default_instance_; }; // ------------------------------------------------------------------- -class ChatRequestMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatRequestMessage) */ { +class ChatRequestMessage : public ::google::protobuf::MessageLite { public: ChatRequestMessage(); virtual ~ChatRequestMessage(); - + ChatRequestMessage(const ChatRequestMessage& from); - + inline ChatRequestMessage& operator=(const ChatRequestMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ChatRequestMessage(ChatRequestMessage&& from) noexcept - : ChatRequestMessage() { - *this = ::std::move(from); - } - - inline ChatRequestMessage& operator=(ChatRequestMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ChatRequestMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ChatRequestMessage* internal_default_instance() { - return reinterpret_cast( - &_ChatRequestMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 75; - + void Swap(ChatRequestMessage* other); - friend void swap(ChatRequestMessage& a, ChatRequestMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ChatRequestMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ChatRequestMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ChatRequestMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ChatRequestMessage& from); void MergeFrom(const ChatRequestMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ChatRequestMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required string chatText = 3; - bool has_chattext() const; - void clear_chattext(); - static const int kChatTextFieldNumber = 3; - const ::std::string& chattext() const; - void set_chattext(const ::std::string& value); - #if LANG_CXX11 - void set_chattext(::std::string&& value); - #endif - 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); - + // optional uint32 targetGameId = 1; - bool has_targetgameid() const; - void clear_targetgameid(); + inline bool has_targetgameid() const; + inline void clear_targetgameid(); static const int kTargetGameIdFieldNumber = 1; - ::google::protobuf::uint32 targetgameid() const; - void set_targetgameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 targetgameid() const; + inline void set_targetgameid(::google::protobuf::uint32 value); + // optional uint32 targetPlayerId = 2; - bool has_targetplayerid() const; - void clear_targetplayerid(); + inline bool has_targetplayerid() const; + inline void clear_targetplayerid(); static const int kTargetPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 targetplayerid() const; - void set_targetplayerid(::google::protobuf::uint32 value); - + 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(); + // @@protoc_insertion_point(class_scope:ChatRequestMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr chattext_; + 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(); + ::google::protobuf::uint32 targetgameid_; ::google::protobuf::uint32 targetplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + ::std::string* chattext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatRequestMessage* default_instance_; }; // ------------------------------------------------------------------- -class ChatMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatMessage) */ { +class ChatMessage : public ::google::protobuf::MessageLite { public: ChatMessage(); virtual ~ChatMessage(); - + ChatMessage(const ChatMessage& from); - + inline ChatMessage& operator=(const ChatMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ChatMessage(ChatMessage&& from) noexcept - : ChatMessage() { - *this = ::std::move(from); - } - - inline ChatMessage& operator=(ChatMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ChatMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ChatMessage* internal_default_instance() { - return reinterpret_cast( - &_ChatMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 76; - + void Swap(ChatMessage* other); - friend void swap(ChatMessage& a, ChatMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ChatMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ChatMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ChatMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ChatMessage& from); void MergeFrom(const ChatMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ChatMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool ChatType_IsValid(int value) { return ChatMessage_ChatType_IsValid(value); } @@ -11795,416 +7752,260 @@ class ChatMessage : ChatMessage_ChatType_ChatType_MAX; static const int ChatType_ARRAYSIZE = ChatMessage_ChatType_ChatType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // required string chatText = 4; - bool has_chattext() const; - void clear_chattext(); - static const int kChatTextFieldNumber = 4; - const ::std::string& chattext() const; - void set_chattext(const ::std::string& value); - #if LANG_CXX11 - void set_chattext(::std::string&& value); - #endif - 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); - + // optional uint32 gameId = 1; - bool has_gameid() const; - void clear_gameid(); + inline bool has_gameid() const; + inline void clear_gameid(); static const int kGameIdFieldNumber = 1; - ::google::protobuf::uint32 gameid() const; - void set_gameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + // optional uint32 playerId = 2; - bool has_playerid() const; - void clear_playerid(); + inline bool has_playerid() const; + inline void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - ::google::protobuf::uint32 playerid() const; - void set_playerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + // required .ChatMessage.ChatType chatType = 3; - bool has_chattype() const; - void clear_chattype(); + inline bool has_chattype() const; + inline void clear_chattype(); static const int kChatTypeFieldNumber = 3; - ::ChatMessage_ChatType chattype() const; - void set_chattype(::ChatMessage_ChatType value); - + 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(); + // @@protoc_insertion_point(class_scope:ChatMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr chattext_; + 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(); + ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; + ::std::string* chattext_; int chattype_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatMessage* default_instance_; }; // ------------------------------------------------------------------- -class ChatRejectMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatRejectMessage) */ { +class ChatRejectMessage : public ::google::protobuf::MessageLite { public: ChatRejectMessage(); virtual ~ChatRejectMessage(); - + ChatRejectMessage(const ChatRejectMessage& from); - + inline ChatRejectMessage& operator=(const ChatRejectMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ChatRejectMessage(ChatRejectMessage&& from) noexcept - : ChatRejectMessage() { - *this = ::std::move(from); - } - - inline ChatRejectMessage& operator=(ChatRejectMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ChatRejectMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ChatRejectMessage* internal_default_instance() { - return reinterpret_cast( - &_ChatRejectMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 77; - + void Swap(ChatRejectMessage* other); - friend void swap(ChatRejectMessage& a, ChatRejectMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ChatRejectMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ChatRejectMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ChatRejectMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ChatRejectMessage& from); void MergeFrom(const ChatRejectMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ChatRejectMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required string chatText = 1; - bool has_chattext() const; - void clear_chattext(); + inline bool has_chattext() const; + inline void clear_chattext(); static const int kChatTextFieldNumber = 1; - const ::std::string& chattext() const; - void set_chattext(const ::std::string& value); - #if LANG_CXX11 - void set_chattext(::std::string&& value); - #endif - 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); - + 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(); + // @@protoc_insertion_point(class_scope:ChatRejectMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr chattext_; - friend struct ::TableStruct_pokerth_2eproto; + inline void set_has_chattext(); + inline void clear_has_chattext(); + + ::std::string* chattext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatRejectMessage* default_instance_; }; // ------------------------------------------------------------------- -class DialogMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DialogMessage) */ { +class DialogMessage : public ::google::protobuf::MessageLite { public: DialogMessage(); virtual ~DialogMessage(); - + DialogMessage(const DialogMessage& from); - + inline DialogMessage& operator=(const DialogMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - DialogMessage(DialogMessage&& from) noexcept - : DialogMessage() { - *this = ::std::move(from); - } - - inline DialogMessage& operator=(DialogMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const DialogMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DialogMessage* internal_default_instance() { - return reinterpret_cast( - &_DialogMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 78; - + void Swap(DialogMessage* other); - friend void swap(DialogMessage& a, DialogMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline DialogMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - DialogMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + DialogMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const DialogMessage& from); void MergeFrom(const DialogMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(DialogMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required string notificationText = 1; - bool has_notificationtext() const; - void clear_notificationtext(); + inline bool has_notificationtext() const; + inline void clear_notificationtext(); static const int kNotificationTextFieldNumber = 1; - const ::std::string& notificationtext() const; - void set_notificationtext(const ::std::string& value); - #if LANG_CXX11 - void set_notificationtext(::std::string&& value); - #endif - 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); - + 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(); + // @@protoc_insertion_point(class_scope:DialogMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr notificationtext_; - friend struct ::TableStruct_pokerth_2eproto; + inline void set_has_notificationtext(); + inline void clear_has_notificationtext(); + + ::std::string* notificationtext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DialogMessage* default_instance_; }; // ------------------------------------------------------------------- -class TimeoutWarningMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:TimeoutWarningMessage) */ { +class TimeoutWarningMessage : public ::google::protobuf::MessageLite { public: TimeoutWarningMessage(); virtual ~TimeoutWarningMessage(); - + TimeoutWarningMessage(const TimeoutWarningMessage& from); - + inline TimeoutWarningMessage& operator=(const TimeoutWarningMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - TimeoutWarningMessage(TimeoutWarningMessage&& from) noexcept - : TimeoutWarningMessage() { - *this = ::std::move(from); - } - - inline TimeoutWarningMessage& operator=(TimeoutWarningMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const TimeoutWarningMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TimeoutWarningMessage* internal_default_instance() { - return reinterpret_cast( - &_TimeoutWarningMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 79; - + void Swap(TimeoutWarningMessage* other); - friend void swap(TimeoutWarningMessage& a, TimeoutWarningMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline TimeoutWarningMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - TimeoutWarningMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + TimeoutWarningMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const TimeoutWarningMessage& from); void MergeFrom(const TimeoutWarningMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(TimeoutWarningMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const TimeoutReason timeoutNoDataReceived = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; + static const TimeoutReason timeoutInactiveGame = TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame; + static const TimeoutReason timeoutKickAfterAutofold = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; static inline bool TimeoutReason_IsValid(int value) { return TimeoutWarningMessage_TimeoutReason_IsValid(value); } @@ -12214,387 +8015,232 @@ class TimeoutWarningMessage : TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX; static const int TimeoutReason_ARRAYSIZE = TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - bool has_timeoutreason() const; - void clear_timeoutreason(); + inline bool has_timeoutreason() const; + inline void clear_timeoutreason(); static const int kTimeoutReasonFieldNumber = 1; - ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; - void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); - + inline ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; + inline void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + // required uint32 remainingSeconds = 2; - bool has_remainingseconds() const; - void clear_remainingseconds(); + inline bool has_remainingseconds() const; + inline void clear_remainingseconds(); static const int kRemainingSecondsFieldNumber = 2; - ::google::protobuf::uint32 remainingseconds() const; - void set_remainingseconds(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 remainingseconds() const; + inline void set_remainingseconds(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_timeoutreason(); + inline void clear_has_timeoutreason(); + inline void set_has_remainingseconds(); + inline void clear_has_remainingseconds(); + int timeoutreason_; ::google::protobuf::uint32 remainingseconds_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static TimeoutWarningMessage* default_instance_; }; // ------------------------------------------------------------------- -class ResetTimeoutMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ResetTimeoutMessage) */ { +class ResetTimeoutMessage : public ::google::protobuf::MessageLite { public: ResetTimeoutMessage(); virtual ~ResetTimeoutMessage(); - + ResetTimeoutMessage(const ResetTimeoutMessage& from); - + inline ResetTimeoutMessage& operator=(const ResetTimeoutMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ResetTimeoutMessage(ResetTimeoutMessage&& from) noexcept - : ResetTimeoutMessage() { - *this = ::std::move(from); - } - - inline ResetTimeoutMessage& operator=(ResetTimeoutMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ResetTimeoutMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResetTimeoutMessage* internal_default_instance() { - return reinterpret_cast( - &_ResetTimeoutMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 80; - + void Swap(ResetTimeoutMessage* other); - friend void swap(ResetTimeoutMessage& a, ResetTimeoutMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ResetTimeoutMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ResetTimeoutMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ResetTimeoutMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ResetTimeoutMessage& from); void MergeFrom(const ResetTimeoutMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ResetTimeoutMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_pokerth_2eproto; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ResetTimeoutMessage* default_instance_; }; // ------------------------------------------------------------------- -class ReportAvatarMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarMessage) */ { +class ReportAvatarMessage : public ::google::protobuf::MessageLite { public: ReportAvatarMessage(); virtual ~ReportAvatarMessage(); - + ReportAvatarMessage(const ReportAvatarMessage& from); - + inline ReportAvatarMessage& operator=(const ReportAvatarMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ReportAvatarMessage(ReportAvatarMessage&& from) noexcept - : ReportAvatarMessage() { - *this = ::std::move(from); - } - - inline ReportAvatarMessage& operator=(ReportAvatarMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ReportAvatarMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReportAvatarMessage* internal_default_instance() { - return reinterpret_cast( - &_ReportAvatarMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 81; - + void Swap(ReportAvatarMessage* other); - friend void swap(ReportAvatarMessage& a, ReportAvatarMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ReportAvatarMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReportAvatarMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ReportAvatarMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ReportAvatarMessage& from); void MergeFrom(const ReportAvatarMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ReportAvatarMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - - // required bytes reportedAvatarHash = 2; - bool has_reportedavatarhash() const; - void clear_reportedavatarhash(); - static const int kReportedAvatarHashFieldNumber = 2; - const ::std::string& reportedavatarhash() const; - void set_reportedavatarhash(const ::std::string& value); - #if LANG_CXX11 - void set_reportedavatarhash(::std::string&& value); - #endif - 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); - + // required uint32 reportedPlayerId = 1; - bool has_reportedplayerid() const; - void clear_reportedplayerid(); + inline bool has_reportedplayerid() const; + inline void clear_reportedplayerid(); static const int kReportedPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 reportedplayerid() const; - void set_reportedplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 reportedplayerid() const; + inline void set_reportedplayerid(::google::protobuf::uint32 value); + + // 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(); + // @@protoc_insertion_point(class_scope:ReportAvatarMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr reportedavatarhash_; + inline void set_has_reportedplayerid(); + inline void clear_has_reportedplayerid(); + inline void set_has_reportedavatarhash(); + inline void clear_has_reportedavatarhash(); + + ::std::string* reportedavatarhash_; ::google::protobuf::uint32 reportedplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportAvatarMessage* default_instance_; }; // ------------------------------------------------------------------- -class ReportAvatarAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarAckMessage) */ { +class ReportAvatarAckMessage : public ::google::protobuf::MessageLite { public: ReportAvatarAckMessage(); virtual ~ReportAvatarAckMessage(); - + ReportAvatarAckMessage(const ReportAvatarAckMessage& from); - + inline ReportAvatarAckMessage& operator=(const ReportAvatarAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ReportAvatarAckMessage(ReportAvatarAckMessage&& from) noexcept - : ReportAvatarAckMessage() { - *this = ::std::move(from); - } - - inline ReportAvatarAckMessage& operator=(ReportAvatarAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ReportAvatarAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReportAvatarAckMessage* internal_default_instance() { - return reinterpret_cast( - &_ReportAvatarAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 82; - + void Swap(ReportAvatarAckMessage* other); - friend void swap(ReportAvatarAckMessage& a, ReportAvatarAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ReportAvatarAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReportAvatarAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ReportAvatarAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ReportAvatarAckMessage& from); void MergeFrom(const ReportAvatarAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ReportAvatarAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const ReportAvatarResult avatarReportAccepted = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; + static const ReportAvatarResult avatarReportDuplicate = ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate; + static const ReportAvatarResult avatarReportInvalid = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; static inline bool ReportAvatarResult_IsValid(int value) { return ReportAvatarAckMessage_ReportAvatarResult_IsValid(value); } @@ -12604,259 +8250,159 @@ class ReportAvatarAckMessage : ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX; static const int ReportAvatarResult_ARRAYSIZE = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 reportedPlayerId = 1; - bool has_reportedplayerid() const; - void clear_reportedplayerid(); + inline bool has_reportedplayerid() const; + inline void clear_reportedplayerid(); static const int kReportedPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 reportedplayerid() const; - void set_reportedplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 reportedplayerid() const; + inline void set_reportedplayerid(::google::protobuf::uint32 value); + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - bool has_reportavatarresult() const; - void clear_reportavatarresult(); + inline bool has_reportavatarresult() const; + inline void clear_reportavatarresult(); static const int kReportAvatarResultFieldNumber = 2; - ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; - void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); - + inline ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; + inline void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_reportedplayerid(); + inline void clear_has_reportedplayerid(); + inline void set_has_reportavatarresult(); + inline void clear_has_reportavatarresult(); + ::google::protobuf::uint32 reportedplayerid_; int reportavatarresult_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportAvatarAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class ReportGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameMessage) */ { +class ReportGameMessage : public ::google::protobuf::MessageLite { public: ReportGameMessage(); virtual ~ReportGameMessage(); - + ReportGameMessage(const ReportGameMessage& from); - + inline ReportGameMessage& operator=(const ReportGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ReportGameMessage(ReportGameMessage&& from) noexcept - : ReportGameMessage() { - *this = ::std::move(from); - } - - inline ReportGameMessage& operator=(ReportGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ReportGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReportGameMessage* internal_default_instance() { - return reinterpret_cast( - &_ReportGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 83; - + void Swap(ReportGameMessage* other); - friend void swap(ReportGameMessage& a, ReportGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ReportGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReportGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ReportGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ReportGameMessage& from); void MergeFrom(const ReportGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ReportGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 reportedGameId = 1; - bool has_reportedgameid() const; - void clear_reportedgameid(); + inline bool has_reportedgameid() const; + inline void clear_reportedgameid(); static const int kReportedGameIdFieldNumber = 1; - ::google::protobuf::uint32 reportedgameid() const; - void set_reportedgameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 reportedgameid() const; + inline void set_reportedgameid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:ReportGameMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_reportedgameid(); + inline void clear_has_reportedgameid(); + ::google::protobuf::uint32 reportedgameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class ReportGameAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameAckMessage) */ { +class ReportGameAckMessage : public ::google::protobuf::MessageLite { public: ReportGameAckMessage(); virtual ~ReportGameAckMessage(); - + ReportGameAckMessage(const ReportGameAckMessage& from); - + inline ReportGameAckMessage& operator=(const ReportGameAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ReportGameAckMessage(ReportGameAckMessage&& from) noexcept - : ReportGameAckMessage() { - *this = ::std::move(from); - } - - inline ReportGameAckMessage& operator=(ReportGameAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ReportGameAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReportGameAckMessage* internal_default_instance() { - return reinterpret_cast( - &_ReportGameAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 84; - + void Swap(ReportGameAckMessage* other); - friend void swap(ReportGameAckMessage& a, ReportGameAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ReportGameAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReportGameAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ReportGameAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ReportGameAckMessage& from); void MergeFrom(const ReportGameAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ReportGameAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 const ReportGameResult gameReportAccepted = ReportGameAckMessage_ReportGameResult_gameReportAccepted; + static const ReportGameResult gameReportDuplicate = ReportGameAckMessage_ReportGameResult_gameReportDuplicate; + static const ReportGameResult gameReportInvalid = ReportGameAckMessage_ReportGameResult_gameReportInvalid; static inline bool ReportGameResult_IsValid(int value) { return ReportGameAckMessage_ReportGameResult_IsValid(value); } @@ -12866,166 +8412,102 @@ class ReportGameAckMessage : ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX; static const int ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 reportedGameId = 1; - bool has_reportedgameid() const; - void clear_reportedgameid(); + inline bool has_reportedgameid() const; + inline void clear_reportedgameid(); static const int kReportedGameIdFieldNumber = 1; - ::google::protobuf::uint32 reportedgameid() const; - void set_reportedgameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 reportedgameid() const; + inline void set_reportedgameid(::google::protobuf::uint32 value); + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - bool has_reportgameresult() const; - void clear_reportgameresult(); + inline bool has_reportgameresult() const; + inline void clear_reportgameresult(); static const int kReportGameResultFieldNumber = 2; - ::ReportGameAckMessage_ReportGameResult reportgameresult() const; - void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); - + inline ::ReportGameAckMessage_ReportGameResult reportgameresult() const; + inline void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + // @@protoc_insertion_point(class_scope:ReportGameAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_reportedgameid(); + inline void clear_has_reportedgameid(); + inline void set_has_reportgameresult(); + inline void clear_has_reportgameresult(); + ::google::protobuf::uint32 reportedgameid_; int reportgameresult_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportGameAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class ErrorMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ErrorMessage) */ { +class ErrorMessage : public ::google::protobuf::MessageLite { public: ErrorMessage(); virtual ~ErrorMessage(); - + ErrorMessage(const ErrorMessage& from); - + inline ErrorMessage& operator=(const ErrorMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - ErrorMessage(ErrorMessage&& from) noexcept - : ErrorMessage() { - *this = ::std::move(from); - } - - inline ErrorMessage& operator=(ErrorMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const ErrorMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ErrorMessage* internal_default_instance() { - return reinterpret_cast( - &_ErrorMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 85; - + void Swap(ErrorMessage* other); - friend void swap(ErrorMessage& a, ErrorMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline ErrorMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - ErrorMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + ErrorMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const ErrorMessage& from); void MergeFrom(const ErrorMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(ErrorMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool ErrorReason_IsValid(int value) { return ErrorMessage_ErrorReason_IsValid(value); } @@ -13035,246 +8517,148 @@ class ErrorMessage : ErrorMessage_ErrorReason_ErrorReason_MAX; static const int ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required .ErrorMessage.ErrorReason errorReason = 1; - bool has_errorreason() const; - void clear_errorreason(); + inline bool has_errorreason() const; + inline void clear_errorreason(); static const int kErrorReasonFieldNumber = 1; - ::ErrorMessage_ErrorReason errorreason() const; - void set_errorreason(::ErrorMessage_ErrorReason value); - + inline ::ErrorMessage_ErrorReason errorreason() const; + inline void set_errorreason(::ErrorMessage_ErrorReason value); + // @@protoc_insertion_point(class_scope:ErrorMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_errorreason(); + inline void clear_has_errorreason(); + int errorreason_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ErrorMessage* default_instance_; }; // ------------------------------------------------------------------- -class AdminRemoveGameMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameMessage) */ { +class AdminRemoveGameMessage : public ::google::protobuf::MessageLite { public: AdminRemoveGameMessage(); virtual ~AdminRemoveGameMessage(); - + AdminRemoveGameMessage(const AdminRemoveGameMessage& from); - + inline AdminRemoveGameMessage& operator=(const AdminRemoveGameMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AdminRemoveGameMessage(AdminRemoveGameMessage&& from) noexcept - : AdminRemoveGameMessage() { - *this = ::std::move(from); - } - - inline AdminRemoveGameMessage& operator=(AdminRemoveGameMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AdminRemoveGameMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AdminRemoveGameMessage* internal_default_instance() { - return reinterpret_cast( - &_AdminRemoveGameMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 86; - + void Swap(AdminRemoveGameMessage* other); - friend void swap(AdminRemoveGameMessage& a, AdminRemoveGameMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AdminRemoveGameMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AdminRemoveGameMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AdminRemoveGameMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AdminRemoveGameMessage& from); void MergeFrom(const AdminRemoveGameMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AdminRemoveGameMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 removeGameId = 1; - bool has_removegameid() const; - void clear_removegameid(); + inline bool has_removegameid() const; + inline void clear_removegameid(); static const int kRemoveGameIdFieldNumber = 1; - ::google::protobuf::uint32 removegameid() const; - void set_removegameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 removegameid() const; + inline void set_removegameid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AdminRemoveGameMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_removegameid(); + inline void clear_has_removegameid(); + ::google::protobuf::uint32 removegameid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AdminRemoveGameMessage* default_instance_; }; // ------------------------------------------------------------------- -class AdminRemoveGameAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameAckMessage) */ { +class AdminRemoveGameAckMessage : public ::google::protobuf::MessageLite { public: AdminRemoveGameAckMessage(); virtual ~AdminRemoveGameAckMessage(); - + AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from); - + inline AdminRemoveGameAckMessage& operator=(const AdminRemoveGameAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AdminRemoveGameAckMessage(AdminRemoveGameAckMessage&& from) noexcept - : AdminRemoveGameAckMessage() { - *this = ::std::move(from); - } - - inline AdminRemoveGameAckMessage& operator=(AdminRemoveGameAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AdminRemoveGameAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AdminRemoveGameAckMessage* internal_default_instance() { - return reinterpret_cast( - &_AdminRemoveGameAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 87; - + void Swap(AdminRemoveGameAckMessage* other); - friend void swap(AdminRemoveGameAckMessage& a, AdminRemoveGameAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AdminRemoveGameAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AdminRemoveGameAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AdminRemoveGameAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AdminRemoveGameAckMessage& from); void MergeFrom(const AdminRemoveGameAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AdminRemoveGameAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + typedef AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameResult; - static const AdminRemoveGameResult gameRemoveAccepted = - AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; - static const AdminRemoveGameResult gameRemoveInvalid = - AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; + static const AdminRemoveGameResult gameRemoveAccepted = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; + static const AdminRemoveGameResult gameRemoveInvalid = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; static inline bool AdminRemoveGameResult_IsValid(int value) { return AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value); } @@ -13284,263 +8668,161 @@ class AdminRemoveGameAckMessage : AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_MAX; static const int AdminRemoveGameResult_ARRAYSIZE = AdminRemoveGameAckMessage_AdminRemoveGameResult_AdminRemoveGameResult_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 removeGameId = 1; - bool has_removegameid() const; - void clear_removegameid(); + inline bool has_removegameid() const; + inline void clear_removegameid(); static const int kRemoveGameIdFieldNumber = 1; - ::google::protobuf::uint32 removegameid() const; - void set_removegameid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 removegameid() const; + inline void set_removegameid(::google::protobuf::uint32 value); + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - bool has_removegameresult() const; - void clear_removegameresult(); + inline bool has_removegameresult() const; + inline void clear_removegameresult(); static const int kRemoveGameResultFieldNumber = 2; - ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; - void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); - + inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; + inline void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); + // @@protoc_insertion_point(class_scope:AdminRemoveGameAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_removegameid(); + inline void clear_has_removegameid(); + inline void set_has_removegameresult(); + inline void clear_has_removegameresult(); + ::google::protobuf::uint32 removegameid_; int removegameresult_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AdminRemoveGameAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class AdminBanPlayerMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerMessage) */ { +class AdminBanPlayerMessage : public ::google::protobuf::MessageLite { public: AdminBanPlayerMessage(); virtual ~AdminBanPlayerMessage(); - + AdminBanPlayerMessage(const AdminBanPlayerMessage& from); - + inline AdminBanPlayerMessage& operator=(const AdminBanPlayerMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AdminBanPlayerMessage(AdminBanPlayerMessage&& from) noexcept - : AdminBanPlayerMessage() { - *this = ::std::move(from); - } - - inline AdminBanPlayerMessage& operator=(AdminBanPlayerMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AdminBanPlayerMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AdminBanPlayerMessage* internal_default_instance() { - return reinterpret_cast( - &_AdminBanPlayerMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 88; - + void Swap(AdminBanPlayerMessage* other); - friend void swap(AdminBanPlayerMessage& a, AdminBanPlayerMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AdminBanPlayerMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AdminBanPlayerMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AdminBanPlayerMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AdminBanPlayerMessage& from); void MergeFrom(const AdminBanPlayerMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AdminBanPlayerMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // nested types ---------------------------------------------------- - + // accessors ------------------------------------------------------- - + // required uint32 banPlayerId = 1; - bool has_banplayerid() const; - void clear_banplayerid(); + inline bool has_banplayerid() const; + inline void clear_banplayerid(); static const int kBanPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 banplayerid() const; - void set_banplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 banplayerid() const; + inline void set_banplayerid(::google::protobuf::uint32 value); + // @@protoc_insertion_point(class_scope:AdminBanPlayerMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_banplayerid(); + inline void clear_has_banplayerid(); + ::google::protobuf::uint32 banplayerid_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AdminBanPlayerMessage* default_instance_; }; // ------------------------------------------------------------------- -class AdminBanPlayerAckMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerAckMessage) */ { +class AdminBanPlayerAckMessage : public ::google::protobuf::MessageLite { public: AdminBanPlayerAckMessage(); virtual ~AdminBanPlayerAckMessage(); - + AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from); - + inline AdminBanPlayerAckMessage& operator=(const AdminBanPlayerAckMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - AdminBanPlayerAckMessage(AdminBanPlayerAckMessage&& from) noexcept - : AdminBanPlayerAckMessage() { - *this = ::std::move(from); - } - - inline AdminBanPlayerAckMessage& operator=(AdminBanPlayerAckMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const AdminBanPlayerAckMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AdminBanPlayerAckMessage* internal_default_instance() { - return reinterpret_cast( - &_AdminBanPlayerAckMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 89; - + void Swap(AdminBanPlayerAckMessage* other); - friend void swap(AdminBanPlayerAckMessage& a, AdminBanPlayerAckMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline AdminBanPlayerAckMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - AdminBanPlayerAckMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + AdminBanPlayerAckMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const AdminBanPlayerAckMessage& from); void MergeFrom(const AdminBanPlayerAckMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(AdminBanPlayerAckMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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 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 inline bool AdminBanPlayerResult_IsValid(int value) { return AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value); } @@ -13550,298 +8832,168 @@ class AdminBanPlayerAckMessage : AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_MAX; static const int AdminBanPlayerResult_ARRAYSIZE = AdminBanPlayerAckMessage_AdminBanPlayerResult_AdminBanPlayerResult_ARRAYSIZE; - + // accessors ------------------------------------------------------- - + // required uint32 banPlayerId = 1; - bool has_banplayerid() const; - void clear_banplayerid(); + inline bool has_banplayerid() const; + inline void clear_banplayerid(); static const int kBanPlayerIdFieldNumber = 1; - ::google::protobuf::uint32 banplayerid() const; - void set_banplayerid(::google::protobuf::uint32 value); - + inline ::google::protobuf::uint32 banplayerid() const; + inline void set_banplayerid(::google::protobuf::uint32 value); + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - bool has_banplayerresult() const; - void clear_banplayerresult(); + inline bool has_banplayerresult() const; + inline void clear_banplayerresult(); static const int kBanPlayerResultFieldNumber = 2; - ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; - void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); - + inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; + inline void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); + // @@protoc_insertion_point(class_scope:AdminBanPlayerAckMessage) private: - class HasBitSetters; - - // helper for ByteSizeLong() - size_t RequiredFieldsByteSizeFallback() const; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + inline void set_has_banplayerid(); + inline void clear_has_banplayerid(); + inline void set_has_banplayerresult(); + inline void clear_has_banplayerresult(); + ::google::protobuf::uint32 banplayerid_; int banplayerresult_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AdminBanPlayerAckMessage* default_instance_; }; // ------------------------------------------------------------------- -class PokerTHMessage : - public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PokerTHMessage) */ { +class PokerTHMessage : public ::google::protobuf::MessageLite { public: PokerTHMessage(); virtual ~PokerTHMessage(); - + PokerTHMessage(const PokerTHMessage& from); - + inline PokerTHMessage& operator=(const PokerTHMessage& from) { CopyFrom(from); return *this; } - #if LANG_CXX11 - PokerTHMessage(PokerTHMessage&& from) noexcept - : PokerTHMessage() { - *this = ::std::move(from); - } - - inline PokerTHMessage& operator=(PokerTHMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline const ::std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(); - } - inline ::std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - + static const PokerTHMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PokerTHMessage* internal_default_instance() { - return reinterpret_cast( - &_PokerTHMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 90; - + void Swap(PokerTHMessage* other); - friend void swap(PokerTHMessage& a, PokerTHMessage& b) { - a.Swap(&b); - } - + // implements Message ---------------------------------------------- - - inline PokerTHMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - PokerTHMessage* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) - final; + + PokerTHMessage* New() const; + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); void CopyFrom(const PokerTHMessage& from); void MergeFrom(const PokerTHMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } - #else + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - void DiscardUnknownFields(); - int GetCachedSize() const final { return _cached_size_.Get(); } - + ::google::protobuf::io::CodedOutputStream* output) const; + int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; - void InternalSwap(PokerTHMessage* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return nullptr; - } - inline void* MaybeArenaPtr() const { - return nullptr; - } public: - - ::std::string GetTypeName() const final; - + + ::std::string GetTypeName() const; + // 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_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 inline bool PokerTHMessageType_IsValid(int value) { return PokerTHMessage_PokerTHMessageType_IsValid(value); } @@ -13851,752 +9003,831 @@ class PokerTHMessage : PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX; static const int PokerTHMessageType_ARRAYSIZE = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE; - + // accessors ------------------------------------------------------- - - // optional .AnnounceMessage announceMessage = 2; - bool has_announcemessage() const; - void clear_announcemessage(); - static const int kAnnounceMessageFieldNumber = 2; - const ::AnnounceMessage& announcemessage() const; - ::AnnounceMessage* release_announcemessage(); - ::AnnounceMessage* mutable_announcemessage(); - void set_allocated_announcemessage(::AnnounceMessage* announcemessage); - - // optional .InitMessage initMessage = 3; - bool has_initmessage() const; - void clear_initmessage(); - static const int kInitMessageFieldNumber = 3; - const ::InitMessage& initmessage() const; - ::InitMessage* release_initmessage(); - ::InitMessage* mutable_initmessage(); - void set_allocated_initmessage(::InitMessage* initmessage); - - // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - bool has_authserverchallengemessage() const; - void clear_authserverchallengemessage(); - static const int kAuthServerChallengeMessageFieldNumber = 4; - const ::AuthServerChallengeMessage& authserverchallengemessage() const; - ::AuthServerChallengeMessage* release_authserverchallengemessage(); - ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); - void set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage); - - // optional .AuthClientResponseMessage authClientResponseMessage = 5; - bool has_authclientresponsemessage() const; - void clear_authclientresponsemessage(); - static const int kAuthClientResponseMessageFieldNumber = 5; - const ::AuthClientResponseMessage& authclientresponsemessage() const; - ::AuthClientResponseMessage* release_authclientresponsemessage(); - ::AuthClientResponseMessage* mutable_authclientresponsemessage(); - void set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage); - - // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - bool has_authserververificationmessage() const; - void clear_authserververificationmessage(); - static const int kAuthServerVerificationMessageFieldNumber = 6; - const ::AuthServerVerificationMessage& authserververificationmessage() const; - ::AuthServerVerificationMessage* release_authserververificationmessage(); - ::AuthServerVerificationMessage* mutable_authserververificationmessage(); - void set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage); - - // optional .InitAckMessage initAckMessage = 7; - bool has_initackmessage() const; - void clear_initackmessage(); - static const int kInitAckMessageFieldNumber = 7; - const ::InitAckMessage& initackmessage() const; - ::InitAckMessage* release_initackmessage(); - ::InitAckMessage* mutable_initackmessage(); - void set_allocated_initackmessage(::InitAckMessage* initackmessage); - - // optional .AvatarRequestMessage avatarRequestMessage = 8; - bool has_avatarrequestmessage() const; - void clear_avatarrequestmessage(); - static const int kAvatarRequestMessageFieldNumber = 8; - const ::AvatarRequestMessage& avatarrequestmessage() const; - ::AvatarRequestMessage* release_avatarrequestmessage(); - ::AvatarRequestMessage* mutable_avatarrequestmessage(); - void set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage); - - // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - bool has_avatarheadermessage() const; - void clear_avatarheadermessage(); - static const int kAvatarHeaderMessageFieldNumber = 9; - const ::AvatarHeaderMessage& avatarheadermessage() const; - ::AvatarHeaderMessage* release_avatarheadermessage(); - ::AvatarHeaderMessage* mutable_avatarheadermessage(); - void set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage); - - // optional .AvatarDataMessage avatarDataMessage = 10; - bool has_avatardatamessage() const; - void clear_avatardatamessage(); - static const int kAvatarDataMessageFieldNumber = 10; - const ::AvatarDataMessage& avatardatamessage() const; - ::AvatarDataMessage* release_avatardatamessage(); - ::AvatarDataMessage* mutable_avatardatamessage(); - void set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage); - - // optional .AvatarEndMessage avatarEndMessage = 11; - bool has_avatarendmessage() const; - void clear_avatarendmessage(); - static const int kAvatarEndMessageFieldNumber = 11; - const ::AvatarEndMessage& avatarendmessage() const; - ::AvatarEndMessage* release_avatarendmessage(); - ::AvatarEndMessage* mutable_avatarendmessage(); - void set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage); - - // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - bool has_unknownavatarmessage() const; - void clear_unknownavatarmessage(); - static const int kUnknownAvatarMessageFieldNumber = 12; - const ::UnknownAvatarMessage& unknownavatarmessage() const; - ::UnknownAvatarMessage* release_unknownavatarmessage(); - ::UnknownAvatarMessage* mutable_unknownavatarmessage(); - void set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage); - - // optional .PlayerListMessage playerListMessage = 13; - bool has_playerlistmessage() const; - void clear_playerlistmessage(); - static const int kPlayerListMessageFieldNumber = 13; - const ::PlayerListMessage& playerlistmessage() const; - ::PlayerListMessage* release_playerlistmessage(); - ::PlayerListMessage* mutable_playerlistmessage(); - void set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage); - - // optional .GameListNewMessage gameListNewMessage = 14; - bool has_gamelistnewmessage() const; - void clear_gamelistnewmessage(); - static const int kGameListNewMessageFieldNumber = 14; - const ::GameListNewMessage& gamelistnewmessage() const; - ::GameListNewMessage* release_gamelistnewmessage(); - ::GameListNewMessage* mutable_gamelistnewmessage(); - void set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage); - - // optional .GameListUpdateMessage gameListUpdateMessage = 15; - bool has_gamelistupdatemessage() const; - void clear_gamelistupdatemessage(); - static const int kGameListUpdateMessageFieldNumber = 15; - const ::GameListUpdateMessage& gamelistupdatemessage() const; - ::GameListUpdateMessage* release_gamelistupdatemessage(); - ::GameListUpdateMessage* mutable_gamelistupdatemessage(); - void set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage); - - // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - bool has_gamelistplayerjoinedmessage() const; - void clear_gamelistplayerjoinedmessage(); - static const int kGameListPlayerJoinedMessageFieldNumber = 16; - const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; - ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); - ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); - void set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); - - // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - bool has_gamelistplayerleftmessage() const; - void clear_gamelistplayerleftmessage(); - static const int kGameListPlayerLeftMessageFieldNumber = 17; - const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; - ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); - ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); - void set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage); - - // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - bool has_gamelistadminchangedmessage() const; - void clear_gamelistadminchangedmessage(); - static const int kGameListAdminChangedMessageFieldNumber = 18; - const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; - ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); - ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); - void set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage); - - // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - bool has_playerinforequestmessage() const; - void clear_playerinforequestmessage(); - static const int kPlayerInfoRequestMessageFieldNumber = 19; - const ::PlayerInfoRequestMessage& playerinforequestmessage() const; - ::PlayerInfoRequestMessage* release_playerinforequestmessage(); - ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); - void set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage); - - // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - bool has_playerinforeplymessage() const; - void clear_playerinforeplymessage(); - static const int kPlayerInfoReplyMessageFieldNumber = 20; - const ::PlayerInfoReplyMessage& playerinforeplymessage() const; - ::PlayerInfoReplyMessage* release_playerinforeplymessage(); - ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); - void set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage); - - // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - bool has_subscriptionrequestmessage() const; - void clear_subscriptionrequestmessage(); - static const int kSubscriptionRequestMessageFieldNumber = 21; - const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; - ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); - ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); - void set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage); - - // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - bool has_joinexistinggamemessage() const; - void clear_joinexistinggamemessage(); - static const int kJoinExistingGameMessageFieldNumber = 22; - const ::JoinExistingGameMessage& joinexistinggamemessage() const; - ::JoinExistingGameMessage* release_joinexistinggamemessage(); - ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); - void set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage); - - // optional .JoinNewGameMessage joinNewGameMessage = 23; - bool has_joinnewgamemessage() const; - void clear_joinnewgamemessage(); - static const int kJoinNewGameMessageFieldNumber = 23; - const ::JoinNewGameMessage& joinnewgamemessage() const; - ::JoinNewGameMessage* release_joinnewgamemessage(); - ::JoinNewGameMessage* mutable_joinnewgamemessage(); - void set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage); - - // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - bool has_rejoinexistinggamemessage() const; - void clear_rejoinexistinggamemessage(); - static const int kRejoinExistingGameMessageFieldNumber = 24; - const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; - ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); - ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); - void set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage); - - // optional .JoinGameAckMessage joinGameAckMessage = 25; - bool has_joingameackmessage() const; - void clear_joingameackmessage(); - static const int kJoinGameAckMessageFieldNumber = 25; - const ::JoinGameAckMessage& joingameackmessage() const; - ::JoinGameAckMessage* release_joingameackmessage(); - ::JoinGameAckMessage* mutable_joingameackmessage(); - void set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage); - - // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - bool has_joingamefailedmessage() const; - void clear_joingamefailedmessage(); - static const int kJoinGameFailedMessageFieldNumber = 26; - const ::JoinGameFailedMessage& joingamefailedmessage() const; - ::JoinGameFailedMessage* release_joingamefailedmessage(); - ::JoinGameFailedMessage* mutable_joingamefailedmessage(); - void set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage); - - // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - bool has_gameplayerjoinedmessage() const; - void clear_gameplayerjoinedmessage(); - static const int kGamePlayerJoinedMessageFieldNumber = 27; - const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; - ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); - ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); - void set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage); - - // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - bool has_gameplayerleftmessage() const; - void clear_gameplayerleftmessage(); - static const int kGamePlayerLeftMessageFieldNumber = 28; - const ::GamePlayerLeftMessage& gameplayerleftmessage() const; - ::GamePlayerLeftMessage* release_gameplayerleftmessage(); - ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); - void set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage); - - // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - bool has_gameadminchangedmessage() const; - void clear_gameadminchangedmessage(); - static const int kGameAdminChangedMessageFieldNumber = 29; - const ::GameAdminChangedMessage& gameadminchangedmessage() const; - ::GameAdminChangedMessage* release_gameadminchangedmessage(); - ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); - void set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage); - - // optional .RemovedFromGameMessage removedFromGameMessage = 30; - bool has_removedfromgamemessage() const; - void clear_removedfromgamemessage(); - static const int kRemovedFromGameMessageFieldNumber = 30; - const ::RemovedFromGameMessage& removedfromgamemessage() const; - ::RemovedFromGameMessage* release_removedfromgamemessage(); - ::RemovedFromGameMessage* mutable_removedfromgamemessage(); - void set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage); - - // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - bool has_kickplayerrequestmessage() const; - void clear_kickplayerrequestmessage(); - static const int kKickPlayerRequestMessageFieldNumber = 31; - const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; - ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); - ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); - void set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage); - - // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - bool has_leavegamerequestmessage() const; - void clear_leavegamerequestmessage(); - static const int kLeaveGameRequestMessageFieldNumber = 32; - const ::LeaveGameRequestMessage& leavegamerequestmessage() const; - ::LeaveGameRequestMessage* release_leavegamerequestmessage(); - ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); - void set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage); - - // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - bool has_inviteplayertogamemessage() const; - void clear_inviteplayertogamemessage(); - static const int kInvitePlayerToGameMessageFieldNumber = 33; - const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; - ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); - ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); - void set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage); - - // optional .InviteNotifyMessage inviteNotifyMessage = 34; - bool has_invitenotifymessage() const; - void clear_invitenotifymessage(); - static const int kInviteNotifyMessageFieldNumber = 34; - const ::InviteNotifyMessage& invitenotifymessage() const; - ::InviteNotifyMessage* release_invitenotifymessage(); - ::InviteNotifyMessage* mutable_invitenotifymessage(); - void set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage); - - // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - bool has_rejectgameinvitationmessage() const; - void clear_rejectgameinvitationmessage(); - static const int kRejectGameInvitationMessageFieldNumber = 35; - const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; - ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); - ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); - void set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage); - - // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - bool has_rejectinvnotifymessage() const; - void clear_rejectinvnotifymessage(); - static const int kRejectInvNotifyMessageFieldNumber = 36; - const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; - ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); - ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); - void set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage); - - // optional .StartEventMessage startEventMessage = 37; - bool has_starteventmessage() const; - void clear_starteventmessage(); - static const int kStartEventMessageFieldNumber = 37; - const ::StartEventMessage& starteventmessage() const; - ::StartEventMessage* release_starteventmessage(); - ::StartEventMessage* mutable_starteventmessage(); - void set_allocated_starteventmessage(::StartEventMessage* starteventmessage); - - // optional .StartEventAckMessage startEventAckMessage = 38; - bool has_starteventackmessage() const; - void clear_starteventackmessage(); - static const int kStartEventAckMessageFieldNumber = 38; - const ::StartEventAckMessage& starteventackmessage() const; - ::StartEventAckMessage* release_starteventackmessage(); - ::StartEventAckMessage* mutable_starteventackmessage(); - void set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage); - - // optional .GameStartInitialMessage gameStartInitialMessage = 39; - bool has_gamestartinitialmessage() const; - void clear_gamestartinitialmessage(); - static const int kGameStartInitialMessageFieldNumber = 39; - const ::GameStartInitialMessage& gamestartinitialmessage() const; - ::GameStartInitialMessage* release_gamestartinitialmessage(); - ::GameStartInitialMessage* mutable_gamestartinitialmessage(); - void set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage); - - // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - bool has_gamestartrejoinmessage() const; - void clear_gamestartrejoinmessage(); - static const int kGameStartRejoinMessageFieldNumber = 40; - const ::GameStartRejoinMessage& gamestartrejoinmessage() const; - ::GameStartRejoinMessage* release_gamestartrejoinmessage(); - ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); - void set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage); - - // optional .HandStartMessage handStartMessage = 41; - bool has_handstartmessage() const; - void clear_handstartmessage(); - static const int kHandStartMessageFieldNumber = 41; - const ::HandStartMessage& handstartmessage() const; - ::HandStartMessage* release_handstartmessage(); - ::HandStartMessage* mutable_handstartmessage(); - void set_allocated_handstartmessage(::HandStartMessage* handstartmessage); - - // optional .PlayersTurnMessage playersTurnMessage = 42; - bool has_playersturnmessage() const; - void clear_playersturnmessage(); - static const int kPlayersTurnMessageFieldNumber = 42; - const ::PlayersTurnMessage& playersturnmessage() const; - ::PlayersTurnMessage* release_playersturnmessage(); - ::PlayersTurnMessage* mutable_playersturnmessage(); - void set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage); - - // optional .MyActionRequestMessage myActionRequestMessage = 43; - bool has_myactionrequestmessage() const; - void clear_myactionrequestmessage(); - static const int kMyActionRequestMessageFieldNumber = 43; - const ::MyActionRequestMessage& myactionrequestmessage() const; - ::MyActionRequestMessage* release_myactionrequestmessage(); - ::MyActionRequestMessage* mutable_myactionrequestmessage(); - void set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage); - - // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - bool has_youractionrejectedmessage() const; - void clear_youractionrejectedmessage(); - static const int kYourActionRejectedMessageFieldNumber = 44; - const ::YourActionRejectedMessage& youractionrejectedmessage() const; - ::YourActionRejectedMessage* release_youractionrejectedmessage(); - ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); - void set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage); - - // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - bool has_playersactiondonemessage() const; - void clear_playersactiondonemessage(); - static const int kPlayersActionDoneMessageFieldNumber = 45; - const ::PlayersActionDoneMessage& playersactiondonemessage() const; - ::PlayersActionDoneMessage* release_playersactiondonemessage(); - ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); - void set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage); - - // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - bool has_dealflopcardsmessage() const; - void clear_dealflopcardsmessage(); - static const int kDealFlopCardsMessageFieldNumber = 46; - const ::DealFlopCardsMessage& dealflopcardsmessage() const; - ::DealFlopCardsMessage* release_dealflopcardsmessage(); - ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); - void set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage); - - // optional .DealTurnCardMessage dealTurnCardMessage = 47; - bool has_dealturncardmessage() const; - void clear_dealturncardmessage(); - static const int kDealTurnCardMessageFieldNumber = 47; - const ::DealTurnCardMessage& dealturncardmessage() const; - ::DealTurnCardMessage* release_dealturncardmessage(); - ::DealTurnCardMessage* mutable_dealturncardmessage(); - void set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage); - - // optional .DealRiverCardMessage dealRiverCardMessage = 48; - bool has_dealrivercardmessage() const; - void clear_dealrivercardmessage(); - static const int kDealRiverCardMessageFieldNumber = 48; - const ::DealRiverCardMessage& dealrivercardmessage() const; - ::DealRiverCardMessage* release_dealrivercardmessage(); - ::DealRiverCardMessage* mutable_dealrivercardmessage(); - void set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage); - - // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - bool has_allinshowcardsmessage() const; - void clear_allinshowcardsmessage(); - static const int kAllInShowCardsMessageFieldNumber = 49; - const ::AllInShowCardsMessage& allinshowcardsmessage() const; - ::AllInShowCardsMessage* release_allinshowcardsmessage(); - ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); - void set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage); - - // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - bool has_endofhandshowcardsmessage() const; - void clear_endofhandshowcardsmessage(); - static const int kEndOfHandShowCardsMessageFieldNumber = 50; - const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; - ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); - ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); - void set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage); - - // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - bool has_endofhandhidecardsmessage() const; - void clear_endofhandhidecardsmessage(); - static const int kEndOfHandHideCardsMessageFieldNumber = 51; - const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; - ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); - ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); - void set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage); - - // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - bool has_showmycardsrequestmessage() const; - void clear_showmycardsrequestmessage(); - static const int kShowMyCardsRequestMessageFieldNumber = 52; - const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; - ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); - ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); - void set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage); - - // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - bool has_afterhandshowcardsmessage() const; - void clear_afterhandshowcardsmessage(); - static const int kAfterHandShowCardsMessageFieldNumber = 53; - const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; - ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); - ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); - void set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage); - - // optional .EndOfGameMessage endOfGameMessage = 54; - bool has_endofgamemessage() const; - void clear_endofgamemessage(); - static const int kEndOfGameMessageFieldNumber = 54; - const ::EndOfGameMessage& endofgamemessage() const; - ::EndOfGameMessage* release_endofgamemessage(); - ::EndOfGameMessage* mutable_endofgamemessage(); - void set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage); - - // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - bool has_playeridchangedmessage() const; - void clear_playeridchangedmessage(); - static const int kPlayerIdChangedMessageFieldNumber = 55; - const ::PlayerIdChangedMessage& playeridchangedmessage() const; - ::PlayerIdChangedMessage* release_playeridchangedmessage(); - ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); - void set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage); - - // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - bool has_askkickplayermessage() const; - void clear_askkickplayermessage(); - static const int kAskKickPlayerMessageFieldNumber = 56; - const ::AskKickPlayerMessage& askkickplayermessage() const; - ::AskKickPlayerMessage* release_askkickplayermessage(); - ::AskKickPlayerMessage* mutable_askkickplayermessage(); - void set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage); - - // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - bool has_askkickdeniedmessage() const; - void clear_askkickdeniedmessage(); - static const int kAskKickDeniedMessageFieldNumber = 57; - const ::AskKickDeniedMessage& askkickdeniedmessage() const; - ::AskKickDeniedMessage* release_askkickdeniedmessage(); - ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); - void set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage); - - // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - bool has_startkickpetitionmessage() const; - void clear_startkickpetitionmessage(); - static const int kStartKickPetitionMessageFieldNumber = 58; - const ::StartKickPetitionMessage& startkickpetitionmessage() const; - ::StartKickPetitionMessage* release_startkickpetitionmessage(); - ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); - void set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage); - - // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - bool has_votekickrequestmessage() const; - void clear_votekickrequestmessage(); - static const int kVoteKickRequestMessageFieldNumber = 59; - const ::VoteKickRequestMessage& votekickrequestmessage() const; - ::VoteKickRequestMessage* release_votekickrequestmessage(); - ::VoteKickRequestMessage* mutable_votekickrequestmessage(); - void set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage); - - // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - bool has_votekickreplymessage() const; - void clear_votekickreplymessage(); - static const int kVoteKickReplyMessageFieldNumber = 60; - const ::VoteKickReplyMessage& votekickreplymessage() const; - ::VoteKickReplyMessage* release_votekickreplymessage(); - ::VoteKickReplyMessage* mutable_votekickreplymessage(); - void set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage); - - // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - bool has_kickpetitionupdatemessage() const; - void clear_kickpetitionupdatemessage(); - static const int kKickPetitionUpdateMessageFieldNumber = 61; - const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; - ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); - ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); - void set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage); - - // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - bool has_endkickpetitionmessage() const; - void clear_endkickpetitionmessage(); - static const int kEndKickPetitionMessageFieldNumber = 62; - const ::EndKickPetitionMessage& endkickpetitionmessage() const; - ::EndKickPetitionMessage* release_endkickpetitionmessage(); - ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); - void set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage); - - // optional .StatisticsMessage statisticsMessage = 63; - bool has_statisticsmessage() const; - void clear_statisticsmessage(); - static const int kStatisticsMessageFieldNumber = 63; - const ::StatisticsMessage& statisticsmessage() const; - ::StatisticsMessage* release_statisticsmessage(); - ::StatisticsMessage* mutable_statisticsmessage(); - void set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage); - - // optional .ChatRequestMessage chatRequestMessage = 64; - bool has_chatrequestmessage() const; - void clear_chatrequestmessage(); - static const int kChatRequestMessageFieldNumber = 64; - const ::ChatRequestMessage& chatrequestmessage() const; - ::ChatRequestMessage* release_chatrequestmessage(); - ::ChatRequestMessage* mutable_chatrequestmessage(); - void set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage); - - // optional .ChatMessage chatMessage = 65; - bool has_chatmessage() const; - void clear_chatmessage(); - static const int kChatMessageFieldNumber = 65; - const ::ChatMessage& chatmessage() const; - ::ChatMessage* release_chatmessage(); - ::ChatMessage* mutable_chatmessage(); - void set_allocated_chatmessage(::ChatMessage* chatmessage); - - // optional .ChatRejectMessage chatRejectMessage = 66; - bool has_chatrejectmessage() const; - void clear_chatrejectmessage(); - static const int kChatRejectMessageFieldNumber = 66; - const ::ChatRejectMessage& chatrejectmessage() const; - ::ChatRejectMessage* release_chatrejectmessage(); - ::ChatRejectMessage* mutable_chatrejectmessage(); - void set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage); - - // optional .DialogMessage dialogMessage = 67; - bool has_dialogmessage() const; - void clear_dialogmessage(); - static const int kDialogMessageFieldNumber = 67; - const ::DialogMessage& dialogmessage() const; - ::DialogMessage* release_dialogmessage(); - ::DialogMessage* mutable_dialogmessage(); - void set_allocated_dialogmessage(::DialogMessage* dialogmessage); - - // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - bool has_timeoutwarningmessage() const; - void clear_timeoutwarningmessage(); - static const int kTimeoutWarningMessageFieldNumber = 68; - const ::TimeoutWarningMessage& timeoutwarningmessage() const; - ::TimeoutWarningMessage* release_timeoutwarningmessage(); - ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); - void set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage); - - // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - bool has_resettimeoutmessage() const; - void clear_resettimeoutmessage(); - static const int kResetTimeoutMessageFieldNumber = 69; - const ::ResetTimeoutMessage& resettimeoutmessage() const; - ::ResetTimeoutMessage* release_resettimeoutmessage(); - ::ResetTimeoutMessage* mutable_resettimeoutmessage(); - void set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage); - - // optional .ReportAvatarMessage reportAvatarMessage = 70; - bool has_reportavatarmessage() const; - void clear_reportavatarmessage(); - static const int kReportAvatarMessageFieldNumber = 70; - const ::ReportAvatarMessage& reportavatarmessage() const; - ::ReportAvatarMessage* release_reportavatarmessage(); - ::ReportAvatarMessage* mutable_reportavatarmessage(); - void set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage); - - // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - bool has_reportavatarackmessage() const; - void clear_reportavatarackmessage(); - static const int kReportAvatarAckMessageFieldNumber = 71; - const ::ReportAvatarAckMessage& reportavatarackmessage() const; - ::ReportAvatarAckMessage* release_reportavatarackmessage(); - ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); - void set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage); - - // optional .ReportGameMessage reportGameMessage = 72; - bool has_reportgamemessage() const; - void clear_reportgamemessage(); - static const int kReportGameMessageFieldNumber = 72; - const ::ReportGameMessage& reportgamemessage() const; - ::ReportGameMessage* release_reportgamemessage(); - ::ReportGameMessage* mutable_reportgamemessage(); - void set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage); - - // optional .ReportGameAckMessage reportGameAckMessage = 73; - bool has_reportgameackmessage() const; - void clear_reportgameackmessage(); - static const int kReportGameAckMessageFieldNumber = 73; - const ::ReportGameAckMessage& reportgameackmessage() const; - ::ReportGameAckMessage* release_reportgameackmessage(); - ::ReportGameAckMessage* mutable_reportgameackmessage(); - void set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage); - - // optional .ErrorMessage errorMessage = 74; - bool has_errormessage() const; - void clear_errormessage(); - static const int kErrorMessageFieldNumber = 74; - const ::ErrorMessage& errormessage() const; - ::ErrorMessage* release_errormessage(); - ::ErrorMessage* mutable_errormessage(); - void set_allocated_errormessage(::ErrorMessage* errormessage); - - // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - bool has_adminremovegamemessage() const; - void clear_adminremovegamemessage(); - static const int kAdminRemoveGameMessageFieldNumber = 75; - const ::AdminRemoveGameMessage& adminremovegamemessage() const; - ::AdminRemoveGameMessage* release_adminremovegamemessage(); - ::AdminRemoveGameMessage* mutable_adminremovegamemessage(); - void set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage); - - // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - bool has_adminremovegameackmessage() const; - void clear_adminremovegameackmessage(); - static const int kAdminRemoveGameAckMessageFieldNumber = 76; - const ::AdminRemoveGameAckMessage& adminremovegameackmessage() const; - ::AdminRemoveGameAckMessage* release_adminremovegameackmessage(); - ::AdminRemoveGameAckMessage* mutable_adminremovegameackmessage(); - void set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage); - - // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - bool has_adminbanplayermessage() const; - void clear_adminbanplayermessage(); - static const int kAdminBanPlayerMessageFieldNumber = 77; - const ::AdminBanPlayerMessage& adminbanplayermessage() const; - ::AdminBanPlayerMessage* release_adminbanplayermessage(); - ::AdminBanPlayerMessage* mutable_adminbanplayermessage(); - void set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage); - - // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - bool has_adminbanplayerackmessage() const; - void clear_adminbanplayerackmessage(); - static const int kAdminBanPlayerAckMessageFieldNumber = 78; - const ::AdminBanPlayerAckMessage& adminbanplayerackmessage() const; - ::AdminBanPlayerAckMessage* release_adminbanplayerackmessage(); - ::AdminBanPlayerAckMessage* mutable_adminbanplayerackmessage(); - void set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage); - - // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - bool has_gamelistspectatorjoinedmessage() const; - void clear_gamelistspectatorjoinedmessage(); - static const int kGameListSpectatorJoinedMessageFieldNumber = 79; - const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage() const; - ::GameListSpectatorJoinedMessage* release_gamelistspectatorjoinedmessage(); - ::GameListSpectatorJoinedMessage* mutable_gamelistspectatorjoinedmessage(); - void set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); - - // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - bool has_gamelistspectatorleftmessage() const; - void clear_gamelistspectatorleftmessage(); - static const int kGameListSpectatorLeftMessageFieldNumber = 80; - const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage() const; - ::GameListSpectatorLeftMessage* release_gamelistspectatorleftmessage(); - ::GameListSpectatorLeftMessage* mutable_gamelistspectatorleftmessage(); - void set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); - - // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - bool has_gamespectatorjoinedmessage() const; - void clear_gamespectatorjoinedmessage(); - static const int kGameSpectatorJoinedMessageFieldNumber = 81; - const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage() const; - ::GameSpectatorJoinedMessage* release_gamespectatorjoinedmessage(); - ::GameSpectatorJoinedMessage* mutable_gamespectatorjoinedmessage(); - void set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); - - // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - bool has_gamespectatorleftmessage() const; - void clear_gamespectatorleftmessage(); - static const int kGameSpectatorLeftMessageFieldNumber = 82; - const ::GameSpectatorLeftMessage& gamespectatorleftmessage() const; - ::GameSpectatorLeftMessage* release_gamespectatorleftmessage(); - ::GameSpectatorLeftMessage* mutable_gamespectatorleftmessage(); - void set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage); - + // required .PokerTHMessage.PokerTHMessageType messageType = 1; - bool has_messagetype() const; - void clear_messagetype(); + inline bool has_messagetype() const; + inline void clear_messagetype(); static const int kMessageTypeFieldNumber = 1; - ::PokerTHMessage_PokerTHMessageType messagetype() const; - void set_messagetype(::PokerTHMessage_PokerTHMessageType value); - + inline ::PokerTHMessage_PokerTHMessageType messagetype() const; + inline void set_messagetype(::PokerTHMessage_PokerTHMessageType value); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + + // 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(); + // @@protoc_insertion_point(class_scope:PokerTHMessage) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; - ::google::protobuf::internal::HasBits<3> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + 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(); + ::AnnounceMessage* announcemessage_; ::InitMessage* initmessage_; ::AuthServerChallengeMessage* authserverchallengemessage_; @@ -14679,296 +9910,347 @@ class PokerTHMessage : ::GameSpectatorJoinedMessage* gamespectatorjoinedmessage_; ::GameSpectatorLeftMessage* gamespectatorleftmessage_; int messagetype_; - friend struct ::TableStruct_pokerth_2eproto; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(82 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PokerTHMessage* default_instance_; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ // NetGameInfo // required string gameName = 1; inline bool NetGameInfo::has_gamename() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void NetGameInfo::clear_gamename() { - gamename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void NetGameInfo::set_has_gamename() { + _has_bits_[0] |= 0x00000001u; +} +inline void NetGameInfo::clear_has_gamename() { _has_bits_[0] &= ~0x00000001u; } +inline void NetGameInfo::clear_gamename() { + if (gamename_ != &::google::protobuf::internal::kEmptyString) { + gamename_->clear(); + } + clear_has_gamename(); +} inline const ::std::string& NetGameInfo::gamename() const { - // @@protoc_insertion_point(field_get:NetGameInfo.gameName) - return gamename_.GetNoArena(); + return *gamename_; } inline void NetGameInfo::set_gamename(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - gamename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:NetGameInfo.gameName) + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(value); } -#if LANG_CXX11 -inline void NetGameInfo::set_gamename(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - gamename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:NetGameInfo.gameName) -} -#endif inline void NetGameInfo::set_gamename(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - gamename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:NetGameInfo.gameName) + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(value); } inline void NetGameInfo::set_gamename(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - gamename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:NetGameInfo.gameName) + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(reinterpret_cast(value), size); } inline ::std::string* NetGameInfo::mutable_gamename() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:NetGameInfo.gameName) - return gamename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + return gamename_; } inline ::std::string* NetGameInfo::release_gamename() { - // @@protoc_insertion_point(field_release:NetGameInfo.gameName) - if (!has_gamename()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return gamename_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NetGameInfo::set_allocated_gamename(::std::string* gamename) { - if (gamename != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = gamename_; + gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - gamename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gamename); - // @@protoc_insertion_point(field_set_allocated:NetGameInfo.gameName) } // required .NetGameInfo.NetGameType netGameType = 2; inline bool NetGameInfo::has_netgametype() const { - return (_has_bits_[0] & 0x00000400u) != 0; + 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; } inline void NetGameInfo::clear_netgametype() { netgametype_ = 1; - _has_bits_[0] &= ~0x00000400u; + clear_has_netgametype(); } inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { - // @@protoc_insertion_point(field_get:NetGameInfo.netGameType) return static_cast< ::NetGameInfo_NetGameType >(netgametype_); } inline void NetGameInfo::set_netgametype(::NetGameInfo_NetGameType value) { - assert(::NetGameInfo_NetGameType_IsValid(value)); - _has_bits_[0] |= 0x00000400u; + GOOGLE_DCHECK(::NetGameInfo_NetGameType_IsValid(value)); + set_has_netgametype(); netgametype_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.netGameType) } // required uint32 maxNumPlayers = 3; inline bool NetGameInfo::has_maxnumplayers() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void NetGameInfo::clear_maxnumplayers() { maxnumplayers_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_maxnumplayers(); } inline ::google::protobuf::uint32 NetGameInfo::maxnumplayers() const { - // @@protoc_insertion_point(field_get:NetGameInfo.maxNumPlayers) return maxnumplayers_; } inline void NetGameInfo::set_maxnumplayers(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_maxnumplayers(); maxnumplayers_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.maxNumPlayers) } // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; inline bool NetGameInfo::has_raiseintervalmode() const { - return (_has_bits_[0] & 0x00000800u) != 0; + 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; } inline void NetGameInfo::clear_raiseintervalmode() { raiseintervalmode_ = 1; - _has_bits_[0] &= ~0x00000800u; + clear_has_raiseintervalmode(); } inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { - // @@protoc_insertion_point(field_get:NetGameInfo.raiseIntervalMode) return static_cast< ::NetGameInfo_RaiseIntervalMode >(raiseintervalmode_); } inline void NetGameInfo::set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { - assert(::NetGameInfo_RaiseIntervalMode_IsValid(value)); - _has_bits_[0] |= 0x00000800u; + GOOGLE_DCHECK(::NetGameInfo_RaiseIntervalMode_IsValid(value)); + set_has_raiseintervalmode(); raiseintervalmode_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.raiseIntervalMode) } // optional uint32 raiseEveryHands = 5; inline bool NetGameInfo::has_raiseeveryhands() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void NetGameInfo::clear_raiseeveryhands() { raiseeveryhands_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_raiseeveryhands(); } inline ::google::protobuf::uint32 NetGameInfo::raiseeveryhands() const { - // @@protoc_insertion_point(field_get:NetGameInfo.raiseEveryHands) return raiseeveryhands_; } inline void NetGameInfo::set_raiseeveryhands(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_raiseeveryhands(); raiseeveryhands_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryHands) } // optional uint32 raiseEveryMinutes = 6; inline bool NetGameInfo::has_raiseeveryminutes() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void NetGameInfo::clear_raiseeveryminutes() { raiseeveryminutes_ = 0u; - _has_bits_[0] &= ~0x00000008u; + clear_has_raiseeveryminutes(); } inline ::google::protobuf::uint32 NetGameInfo::raiseeveryminutes() const { - // @@protoc_insertion_point(field_get:NetGameInfo.raiseEveryMinutes) return raiseeveryminutes_; } inline void NetGameInfo::set_raiseeveryminutes(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_raiseeveryminutes(); raiseeveryminutes_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryMinutes) } // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; inline bool NetGameInfo::has_endraisemode() const { - return (_has_bits_[0] & 0x00001000u) != 0; + 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; } inline void NetGameInfo::clear_endraisemode() { endraisemode_ = 1; - _has_bits_[0] &= ~0x00001000u; + clear_has_endraisemode(); } inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { - // @@protoc_insertion_point(field_get:NetGameInfo.endRaiseMode) return static_cast< ::NetGameInfo_EndRaiseMode >(endraisemode_); } inline void NetGameInfo::set_endraisemode(::NetGameInfo_EndRaiseMode value) { - assert(::NetGameInfo_EndRaiseMode_IsValid(value)); - _has_bits_[0] |= 0x00001000u; + GOOGLE_DCHECK(::NetGameInfo_EndRaiseMode_IsValid(value)); + set_has_endraisemode(); endraisemode_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseMode) } // optional uint32 endRaiseSmallBlindValue = 8; inline bool NetGameInfo::has_endraisesmallblindvalue() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void NetGameInfo::clear_endraisesmallblindvalue() { endraisesmallblindvalue_ = 0u; - _has_bits_[0] &= ~0x00000010u; + clear_has_endraisesmallblindvalue(); } inline ::google::protobuf::uint32 NetGameInfo::endraisesmallblindvalue() const { - // @@protoc_insertion_point(field_get:NetGameInfo.endRaiseSmallBlindValue) return endraisesmallblindvalue_; } inline void NetGameInfo::set_endraisesmallblindvalue(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_endraisesmallblindvalue(); endraisesmallblindvalue_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseSmallBlindValue) } // required uint32 proposedGuiSpeed = 9; inline bool NetGameInfo::has_proposedguispeed() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void NetGameInfo::clear_proposedguispeed() { proposedguispeed_ = 0u; - _has_bits_[0] &= ~0x00000020u; + clear_has_proposedguispeed(); } inline ::google::protobuf::uint32 NetGameInfo::proposedguispeed() const { - // @@protoc_insertion_point(field_get:NetGameInfo.proposedGuiSpeed) return proposedguispeed_; } inline void NetGameInfo::set_proposedguispeed(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000020u; + set_has_proposedguispeed(); proposedguispeed_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.proposedGuiSpeed) } // required uint32 delayBetweenHands = 10; inline bool NetGameInfo::has_delaybetweenhands() const { - return (_has_bits_[0] & 0x00000040u) != 0; + 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; } inline void NetGameInfo::clear_delaybetweenhands() { delaybetweenhands_ = 0u; - _has_bits_[0] &= ~0x00000040u; + clear_has_delaybetweenhands(); } inline ::google::protobuf::uint32 NetGameInfo::delaybetweenhands() const { - // @@protoc_insertion_point(field_get:NetGameInfo.delayBetweenHands) return delaybetweenhands_; } inline void NetGameInfo::set_delaybetweenhands(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000040u; + set_has_delaybetweenhands(); delaybetweenhands_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.delayBetweenHands) } // required uint32 playerActionTimeout = 11; inline bool NetGameInfo::has_playeractiontimeout() const { - return (_has_bits_[0] & 0x00000080u) != 0; + 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; } inline void NetGameInfo::clear_playeractiontimeout() { playeractiontimeout_ = 0u; - _has_bits_[0] &= ~0x00000080u; + clear_has_playeractiontimeout(); } inline ::google::protobuf::uint32 NetGameInfo::playeractiontimeout() const { - // @@protoc_insertion_point(field_get:NetGameInfo.playerActionTimeout) return playeractiontimeout_; } inline void NetGameInfo::set_playeractiontimeout(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000080u; + set_has_playeractiontimeout(); playeractiontimeout_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.playerActionTimeout) } // required uint32 firstSmallBlind = 12; inline bool NetGameInfo::has_firstsmallblind() const { - return (_has_bits_[0] & 0x00000100u) != 0; + 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; } inline void NetGameInfo::clear_firstsmallblind() { firstsmallblind_ = 0u; - _has_bits_[0] &= ~0x00000100u; + clear_has_firstsmallblind(); } inline ::google::protobuf::uint32 NetGameInfo::firstsmallblind() const { - // @@protoc_insertion_point(field_get:NetGameInfo.firstSmallBlind) return firstsmallblind_; } inline void NetGameInfo::set_firstsmallblind(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000100u; + set_has_firstsmallblind(); firstsmallblind_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.firstSmallBlind) } // required uint32 startMoney = 13; inline bool NetGameInfo::has_startmoney() const { - return (_has_bits_[0] & 0x00000200u) != 0; + 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; } inline void NetGameInfo::clear_startmoney() { startmoney_ = 0u; - _has_bits_[0] &= ~0x00000200u; + clear_has_startmoney(); } inline ::google::protobuf::uint32 NetGameInfo::startmoney() const { - // @@protoc_insertion_point(field_get:NetGameInfo.startMoney) return startmoney_; } inline void NetGameInfo::set_startmoney(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000200u; + set_has_startmoney(); startmoney_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.startMoney) } // repeated uint32 manualBlinds = 14 [packed = true]; @@ -14979,44 +10261,43 @@ inline void NetGameInfo::clear_manualblinds() { manualblinds_.Clear(); } inline ::google::protobuf::uint32 NetGameInfo::manualblinds(int index) const { - // @@protoc_insertion_point(field_get:NetGameInfo.manualBlinds) return manualblinds_.Get(index); } inline void NetGameInfo::set_manualblinds(int index, ::google::protobuf::uint32 value) { manualblinds_.Set(index, value); - // @@protoc_insertion_point(field_set:NetGameInfo.manualBlinds) } inline void NetGameInfo::add_manualblinds(::google::protobuf::uint32 value) { manualblinds_.Add(value); - // @@protoc_insertion_point(field_add:NetGameInfo.manualBlinds) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& NetGameInfo::manualblinds() const { - // @@protoc_insertion_point(field_list:NetGameInfo.manualBlinds) return manualblinds_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* NetGameInfo::mutable_manualblinds() { - // @@protoc_insertion_point(field_mutable_list:NetGameInfo.manualBlinds) return &manualblinds_; } // optional bool allowSpectators = 15 [default = true]; inline bool NetGameInfo::has_allowspectators() const { - return (_has_bits_[0] & 0x00002000u) != 0; + 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; } inline void NetGameInfo::clear_allowspectators() { allowspectators_ = true; - _has_bits_[0] &= ~0x00002000u; + clear_has_allowspectators(); } inline bool NetGameInfo::allowspectators() const { - // @@protoc_insertion_point(field_get:NetGameInfo.allowSpectators) return allowspectators_; } inline void NetGameInfo::set_allowspectators(bool value) { - _has_bits_[0] |= 0x00002000u; + set_has_allowspectators(); allowspectators_ = value; - // @@protoc_insertion_point(field_set:NetGameInfo.allowSpectators) } // ------------------------------------------------------------------- @@ -15027,54 +10308,66 @@ inline void NetGameInfo::set_allowspectators(bool value) { inline bool PlayerResult::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerResult::clear_playerid() { - playerid_ = 0u; +inline void PlayerResult::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerResult::clear_has_playerid() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayerResult::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 PlayerResult::playerid() const { - // @@protoc_insertion_point(field_get:PlayerResult.playerId) return playerid_; } inline void PlayerResult::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.playerId) } // required uint32 resultCard1 = 2; inline bool PlayerResult::has_resultcard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerResult::clear_resultcard1() { - resultcard1_ = 0u; +inline void PlayerResult::set_has_resultcard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerResult::clear_has_resultcard1() { _has_bits_[0] &= ~0x00000002u; } +inline void PlayerResult::clear_resultcard1() { + resultcard1_ = 0u; + clear_has_resultcard1(); +} inline ::google::protobuf::uint32 PlayerResult::resultcard1() const { - // @@protoc_insertion_point(field_get:PlayerResult.resultCard1) return resultcard1_; } inline void PlayerResult::set_resultcard1(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_resultcard1(); resultcard1_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.resultCard1) } // required uint32 resultCard2 = 3; inline bool PlayerResult::has_resultcard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayerResult::clear_resultcard2() { - resultcard2_ = 0u; +inline void PlayerResult::set_has_resultcard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayerResult::clear_has_resultcard2() { _has_bits_[0] &= ~0x00000004u; } +inline void PlayerResult::clear_resultcard2() { + resultcard2_ = 0u; + clear_has_resultcard2(); +} inline ::google::protobuf::uint32 PlayerResult::resultcard2() const { - // @@protoc_insertion_point(field_get:PlayerResult.resultCard2) return resultcard2_; } inline void PlayerResult::set_resultcard2(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_resultcard2(); resultcard2_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.resultCard2) } // repeated uint32 bestHandPosition = 4 [packed = true]; @@ -15085,80 +10378,87 @@ inline void PlayerResult::clear_besthandposition() { besthandposition_.Clear(); } inline ::google::protobuf::uint32 PlayerResult::besthandposition(int index) const { - // @@protoc_insertion_point(field_get:PlayerResult.bestHandPosition) return besthandposition_.Get(index); } inline void PlayerResult::set_besthandposition(int index, ::google::protobuf::uint32 value) { besthandposition_.Set(index, value); - // @@protoc_insertion_point(field_set:PlayerResult.bestHandPosition) } inline void PlayerResult::add_besthandposition(::google::protobuf::uint32 value) { besthandposition_.Add(value); - // @@protoc_insertion_point(field_add:PlayerResult.bestHandPosition) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& PlayerResult::besthandposition() const { - // @@protoc_insertion_point(field_list:PlayerResult.bestHandPosition) return besthandposition_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* PlayerResult::mutable_besthandposition() { - // @@protoc_insertion_point(field_mutable_list:PlayerResult.bestHandPosition) return &besthandposition_; } // required uint32 moneyWon = 5; inline bool PlayerResult::has_moneywon() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void PlayerResult::clear_moneywon() { moneywon_ = 0u; - _has_bits_[0] &= ~0x00000008u; + clear_has_moneywon(); } inline ::google::protobuf::uint32 PlayerResult::moneywon() const { - // @@protoc_insertion_point(field_get:PlayerResult.moneyWon) return moneywon_; } inline void PlayerResult::set_moneywon(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_moneywon(); moneywon_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.moneyWon) } // required uint32 playerMoney = 6; inline bool PlayerResult::has_playermoney() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void PlayerResult::clear_playermoney() { playermoney_ = 0u; - _has_bits_[0] &= ~0x00000010u; + clear_has_playermoney(); } inline ::google::protobuf::uint32 PlayerResult::playermoney() const { - // @@protoc_insertion_point(field_get:PlayerResult.playerMoney) return playermoney_; } inline void PlayerResult::set_playermoney(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_playermoney(); playermoney_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.playerMoney) } // optional uint32 cardsValue = 7; inline bool PlayerResult::has_cardsvalue() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void PlayerResult::clear_cardsvalue() { cardsvalue_ = 0u; - _has_bits_[0] &= ~0x00000020u; + clear_has_cardsvalue(); } inline ::google::protobuf::uint32 PlayerResult::cardsvalue() const { - // @@protoc_insertion_point(field_get:PlayerResult.cardsValue) return cardsvalue_; } inline void PlayerResult::set_cardsvalue(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000020u; + set_has_cardsvalue(); cardsvalue_ = value; - // @@protoc_insertion_point(field_set:PlayerResult.cardsValue) } // ------------------------------------------------------------------- @@ -15169,36 +10469,44 @@ inline void PlayerResult::set_cardsvalue(::google::protobuf::uint32 value) { inline bool AnnounceMessage_Version::has_majorversion() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AnnounceMessage_Version::clear_majorversion() { - majorversion_ = 0u; +inline void AnnounceMessage_Version::set_has_majorversion() { + _has_bits_[0] |= 0x00000001u; +} +inline void AnnounceMessage_Version::clear_has_majorversion() { _has_bits_[0] &= ~0x00000001u; } +inline void AnnounceMessage_Version::clear_majorversion() { + majorversion_ = 0u; + clear_has_majorversion(); +} inline ::google::protobuf::uint32 AnnounceMessage_Version::majorversion() const { - // @@protoc_insertion_point(field_get:AnnounceMessage.Version.majorVersion) return majorversion_; } inline void AnnounceMessage_Version::set_majorversion(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_majorversion(); majorversion_ = value; - // @@protoc_insertion_point(field_set:AnnounceMessage.Version.majorVersion) } // required uint32 minorVersion = 2; inline bool AnnounceMessage_Version::has_minorversion() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AnnounceMessage_Version::clear_minorversion() { - minorversion_ = 0u; +inline void AnnounceMessage_Version::set_has_minorversion() { + _has_bits_[0] |= 0x00000002u; +} +inline void AnnounceMessage_Version::clear_has_minorversion() { _has_bits_[0] &= ~0x00000002u; } +inline void AnnounceMessage_Version::clear_minorversion() { + minorversion_ = 0u; + clear_has_minorversion(); +} inline ::google::protobuf::uint32 AnnounceMessage_Version::minorversion() const { - // @@protoc_insertion_point(field_get:AnnounceMessage.Version.minorVersion) return minorversion_; } inline void AnnounceMessage_Version::set_minorversion(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_minorversion(); minorversion_ = value; - // @@protoc_insertion_point(field_set:AnnounceMessage.Version.minorVersion) } // ------------------------------------------------------------------- @@ -15209,153 +10517,125 @@ inline void AnnounceMessage_Version::set_minorversion(::google::protobuf::uint32 inline bool AnnounceMessage::has_protocolversion() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AnnounceMessage::clear_protocolversion() { - if (protocolversion_ != nullptr) protocolversion_->Clear(); +inline void AnnounceMessage::set_has_protocolversion() { + _has_bits_[0] |= 0x00000001u; +} +inline void AnnounceMessage::clear_has_protocolversion() { _has_bits_[0] &= ~0x00000001u; } +inline void AnnounceMessage::clear_protocolversion() { + if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); + clear_has_protocolversion(); +} inline const ::AnnounceMessage_Version& AnnounceMessage::protocolversion() const { - const ::AnnounceMessage_Version* p = protocolversion_; - // @@protoc_insertion_point(field_get:AnnounceMessage.protocolVersion) - return p != nullptr ? *p : *reinterpret_cast( - &::_AnnounceMessage_Version_default_instance_); -} -inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { - // @@protoc_insertion_point(field_release:AnnounceMessage.protocolVersion) - _has_bits_[0] &= ~0x00000001u; - ::AnnounceMessage_Version* temp = protocolversion_; - protocolversion_ = nullptr; - return temp; + return protocolversion_ != NULL ? *protocolversion_ : *default_instance_->protocolversion_; } inline ::AnnounceMessage_Version* AnnounceMessage::mutable_protocolversion() { - _has_bits_[0] |= 0x00000001u; - if (protocolversion_ == nullptr) { - auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); - protocolversion_ = p; - } - // @@protoc_insertion_point(field_mutable:AnnounceMessage.protocolVersion) + set_has_protocolversion(); + if (protocolversion_ == NULL) protocolversion_ = new ::AnnounceMessage_Version; return protocolversion_; } -inline void AnnounceMessage::set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete protocolversion_; - } - if (protocolversion) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - protocolversion = ::google::protobuf::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) +inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { + clear_has_protocolversion(); + ::AnnounceMessage_Version* temp = protocolversion_; + protocolversion_ = NULL; + return temp; } // required .AnnounceMessage.Version latestGameVersion = 2; inline bool AnnounceMessage::has_latestgameversion() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AnnounceMessage::clear_latestgameversion() { - if (latestgameversion_ != nullptr) latestgameversion_->Clear(); +inline void AnnounceMessage::set_has_latestgameversion() { + _has_bits_[0] |= 0x00000002u; +} +inline void AnnounceMessage::clear_has_latestgameversion() { _has_bits_[0] &= ~0x00000002u; } +inline void AnnounceMessage::clear_latestgameversion() { + if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); + clear_has_latestgameversion(); +} inline const ::AnnounceMessage_Version& AnnounceMessage::latestgameversion() const { - const ::AnnounceMessage_Version* p = latestgameversion_; - // @@protoc_insertion_point(field_get:AnnounceMessage.latestGameVersion) - return p != nullptr ? *p : *reinterpret_cast( - &::_AnnounceMessage_Version_default_instance_); -} -inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { - // @@protoc_insertion_point(field_release:AnnounceMessage.latestGameVersion) - _has_bits_[0] &= ~0x00000002u; - ::AnnounceMessage_Version* temp = latestgameversion_; - latestgameversion_ = nullptr; - return temp; + return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance_->latestgameversion_; } inline ::AnnounceMessage_Version* AnnounceMessage::mutable_latestgameversion() { - _has_bits_[0] |= 0x00000002u; - if (latestgameversion_ == nullptr) { - auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); - latestgameversion_ = p; - } - // @@protoc_insertion_point(field_mutable:AnnounceMessage.latestGameVersion) + set_has_latestgameversion(); + if (latestgameversion_ == NULL) latestgameversion_ = new ::AnnounceMessage_Version; return latestgameversion_; } -inline void AnnounceMessage::set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete latestgameversion_; - } - if (latestgameversion) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - latestgameversion = ::google::protobuf::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) +inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { + clear_has_latestgameversion(); + ::AnnounceMessage_Version* temp = latestgameversion_; + latestgameversion_ = NULL; + return temp; } // required uint32 latestBetaRevision = 3; inline bool AnnounceMessage::has_latestbetarevision() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AnnounceMessage::clear_latestbetarevision() { - latestbetarevision_ = 0u; +inline void AnnounceMessage::set_has_latestbetarevision() { + _has_bits_[0] |= 0x00000004u; +} +inline void AnnounceMessage::clear_has_latestbetarevision() { _has_bits_[0] &= ~0x00000004u; } +inline void AnnounceMessage::clear_latestbetarevision() { + latestbetarevision_ = 0u; + clear_has_latestbetarevision(); +} inline ::google::protobuf::uint32 AnnounceMessage::latestbetarevision() const { - // @@protoc_insertion_point(field_get:AnnounceMessage.latestBetaRevision) return latestbetarevision_; } inline void AnnounceMessage::set_latestbetarevision(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_latestbetarevision(); latestbetarevision_ = value; - // @@protoc_insertion_point(field_set:AnnounceMessage.latestBetaRevision) } // required .AnnounceMessage.ServerType serverType = 4; inline bool AnnounceMessage::has_servertype() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void AnnounceMessage::clear_servertype() { - servertype_ = 0; +inline void AnnounceMessage::set_has_servertype() { + _has_bits_[0] |= 0x00000008u; +} +inline void AnnounceMessage::clear_has_servertype() { _has_bits_[0] &= ~0x00000008u; } +inline void AnnounceMessage::clear_servertype() { + servertype_ = 0; + clear_has_servertype(); +} inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { - // @@protoc_insertion_point(field_get:AnnounceMessage.serverType) return static_cast< ::AnnounceMessage_ServerType >(servertype_); } inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) { - assert(::AnnounceMessage_ServerType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; + GOOGLE_DCHECK(::AnnounceMessage_ServerType_IsValid(value)); + set_has_servertype(); servertype_ = value; - // @@protoc_insertion_point(field_set:AnnounceMessage.serverType) } // required uint32 numPlayersOnServer = 5; inline bool AnnounceMessage::has_numplayersonserver() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void AnnounceMessage::clear_numplayersonserver() { - numplayersonserver_ = 0u; +inline void AnnounceMessage::set_has_numplayersonserver() { + _has_bits_[0] |= 0x00000010u; +} +inline void AnnounceMessage::clear_has_numplayersonserver() { _has_bits_[0] &= ~0x00000010u; } +inline void AnnounceMessage::clear_numplayersonserver() { + numplayersonserver_ = 0u; + clear_has_numplayersonserver(); +} inline ::google::protobuf::uint32 AnnounceMessage::numplayersonserver() const { - // @@protoc_insertion_point(field_get:AnnounceMessage.numPlayersOnServer) return numplayersonserver_; } inline void AnnounceMessage::set_numplayersonserver(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_numplayersonserver(); numplayersonserver_ = value; - // @@protoc_insertion_point(field_set:AnnounceMessage.numPlayersOnServer) } // ------------------------------------------------------------------- @@ -15364,388 +10644,366 @@ inline void AnnounceMessage::set_numplayersonserver(::google::protobuf::uint32 v // required .AnnounceMessage.Version requestedVersion = 1; inline bool InitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void InitMessage::clear_requestedversion() { - if (requestedversion_ != nullptr) requestedversion_->Clear(); - _has_bits_[0] &= ~0x00000020u; + if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); + clear_has_requestedversion(); } inline const ::AnnounceMessage_Version& InitMessage::requestedversion() const { - const ::AnnounceMessage_Version* p = requestedversion_; - // @@protoc_insertion_point(field_get:InitMessage.requestedVersion) - return p != nullptr ? *p : *reinterpret_cast( - &::_AnnounceMessage_Version_default_instance_); -} -inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { - // @@protoc_insertion_point(field_release:InitMessage.requestedVersion) - _has_bits_[0] &= ~0x00000020u; - ::AnnounceMessage_Version* temp = requestedversion_; - requestedversion_ = nullptr; - return temp; + return requestedversion_ != NULL ? *requestedversion_ : *default_instance_->requestedversion_; } inline ::AnnounceMessage_Version* InitMessage::mutable_requestedversion() { - _has_bits_[0] |= 0x00000020u; - if (requestedversion_ == nullptr) { - auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); - requestedversion_ = p; - } - // @@protoc_insertion_point(field_mutable:InitMessage.requestedVersion) + set_has_requestedversion(); + if (requestedversion_ == NULL) requestedversion_ = new ::AnnounceMessage_Version; return requestedversion_; } -inline void InitMessage::set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete requestedversion_; - } - if (requestedversion) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - requestedversion = ::google::protobuf::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) +inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { + clear_has_requestedversion(); + ::AnnounceMessage_Version* temp = requestedversion_; + requestedversion_ = NULL; + return temp; } // required uint32 buildId = 2; inline bool InitMessage::has_buildid() const { - return (_has_bits_[0] & 0x00000040u) != 0; + 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; } inline void InitMessage::clear_buildid() { buildid_ = 0u; - _has_bits_[0] &= ~0x00000040u; + clear_has_buildid(); } inline ::google::protobuf::uint32 InitMessage::buildid() const { - // @@protoc_insertion_point(field_get:InitMessage.buildId) return buildid_; } inline void InitMessage::set_buildid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000040u; + set_has_buildid(); buildid_ = value; - // @@protoc_insertion_point(field_set:InitMessage.buildId) } // optional bytes myLastSessionId = 3; inline bool InitMessage::has_mylastsessionid() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void InitMessage::clear_mylastsessionid() { - mylastsessionid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { + mylastsessionid_->clear(); + } + clear_has_mylastsessionid(); } inline const ::std::string& InitMessage::mylastsessionid() const { - // @@protoc_insertion_point(field_get:InitMessage.myLastSessionId) - return mylastsessionid_.GetNoArena(); + return *mylastsessionid_; } inline void InitMessage::set_mylastsessionid(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - mylastsessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitMessage.myLastSessionId) + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(value); } -#if LANG_CXX11 -inline void InitMessage::set_mylastsessionid(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - mylastsessionid_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitMessage.myLastSessionId) -} -#endif inline void InitMessage::set_mylastsessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - mylastsessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitMessage.myLastSessionId) + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(value); } inline void InitMessage::set_mylastsessionid(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - mylastsessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitMessage.myLastSessionId) + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(reinterpret_cast(value), size); } inline ::std::string* InitMessage::mutable_mylastsessionid() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:InitMessage.myLastSessionId) - return mylastsessionid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + return mylastsessionid_; } inline ::std::string* InitMessage::release_mylastsessionid() { - // @@protoc_insertion_point(field_release:InitMessage.myLastSessionId) - if (!has_mylastsessionid()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return mylastsessionid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitMessage::set_allocated_mylastsessionid(::std::string* mylastsessionid) { - if (mylastsessionid != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = mylastsessionid_; + mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - mylastsessionid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mylastsessionid); - // @@protoc_insertion_point(field_set_allocated:InitMessage.myLastSessionId) } // optional string authServerPassword = 4; inline bool InitMessage::has_authserverpassword() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void InitMessage::clear_authserverpassword() { - authserverpassword_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000002u; + if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { + authserverpassword_->clear(); + } + clear_has_authserverpassword(); } inline const ::std::string& InitMessage::authserverpassword() const { - // @@protoc_insertion_point(field_get:InitMessage.authServerPassword) - return authserverpassword_.GetNoArena(); + return *authserverpassword_; } inline void InitMessage::set_authserverpassword(const ::std::string& value) { - _has_bits_[0] |= 0x00000002u; - authserverpassword_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitMessage.authServerPassword) + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(value); } -#if LANG_CXX11 -inline void InitMessage::set_authserverpassword(::std::string&& value) { - _has_bits_[0] |= 0x00000002u; - authserverpassword_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitMessage.authServerPassword) -} -#endif inline void InitMessage::set_authserverpassword(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - authserverpassword_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitMessage.authServerPassword) + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(value); } inline void InitMessage::set_authserverpassword(const char* value, size_t size) { - _has_bits_[0] |= 0x00000002u; - authserverpassword_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitMessage.authServerPassword) + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(reinterpret_cast(value), size); } inline ::std::string* InitMessage::mutable_authserverpassword() { - _has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_mutable:InitMessage.authServerPassword) - return authserverpassword_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + return authserverpassword_; } inline ::std::string* InitMessage::release_authserverpassword() { - // @@protoc_insertion_point(field_release:InitMessage.authServerPassword) - if (!has_authserverpassword()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return authserverpassword_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitMessage::set_allocated_authserverpassword(::std::string* authserverpassword) { - if (authserverpassword != nullptr) { - _has_bits_[0] |= 0x00000002u; + clear_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000002u; + ::std::string* temp = authserverpassword_; + authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - authserverpassword_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), authserverpassword); - // @@protoc_insertion_point(field_set_allocated:InitMessage.authServerPassword) } // required .InitMessage.LoginType login = 5; inline bool InitMessage::has_login() const { - return (_has_bits_[0] & 0x00000080u) != 0; + 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; } inline void InitMessage::clear_login() { login_ = 0; - _has_bits_[0] &= ~0x00000080u; + clear_has_login(); } inline ::InitMessage_LoginType InitMessage::login() const { - // @@protoc_insertion_point(field_get:InitMessage.login) return static_cast< ::InitMessage_LoginType >(login_); } inline void InitMessage::set_login(::InitMessage_LoginType value) { - assert(::InitMessage_LoginType_IsValid(value)); - _has_bits_[0] |= 0x00000080u; + GOOGLE_DCHECK(::InitMessage_LoginType_IsValid(value)); + set_has_login(); login_ = value; - // @@protoc_insertion_point(field_set:InitMessage.login) } // optional string nickName = 6; inline bool InitMessage::has_nickname() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void InitMessage::clear_nickname() { - nickname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000004u; + if (nickname_ != &::google::protobuf::internal::kEmptyString) { + nickname_->clear(); + } + clear_has_nickname(); } inline const ::std::string& InitMessage::nickname() const { - // @@protoc_insertion_point(field_get:InitMessage.nickName) - return nickname_.GetNoArena(); + return *nickname_; } inline void InitMessage::set_nickname(const ::std::string& value) { - _has_bits_[0] |= 0x00000004u; - nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitMessage.nickName) + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(value); } -#if LANG_CXX11 -inline void InitMessage::set_nickname(::std::string&& value) { - _has_bits_[0] |= 0x00000004u; - nickname_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitMessage.nickName) -} -#endif inline void InitMessage::set_nickname(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000004u; - nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitMessage.nickName) + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(value); } inline void InitMessage::set_nickname(const char* value, size_t size) { - _has_bits_[0] |= 0x00000004u; - nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitMessage.nickName) + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(reinterpret_cast(value), size); } inline ::std::string* InitMessage::mutable_nickname() { - _has_bits_[0] |= 0x00000004u; - // @@protoc_insertion_point(field_mutable:InitMessage.nickName) - return nickname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + return nickname_; } inline ::std::string* InitMessage::release_nickname() { - // @@protoc_insertion_point(field_release:InitMessage.nickName) - if (!has_nickname()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - return nickname_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitMessage::set_allocated_nickname(::std::string* nickname) { - if (nickname != nullptr) { - _has_bits_[0] |= 0x00000004u; + clear_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000004u; + ::std::string* temp = nickname_; + nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - nickname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nickname); - // @@protoc_insertion_point(field_set_allocated:InitMessage.nickName) } // optional bytes clientUserData = 7; inline bool InitMessage::has_clientuserdata() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void InitMessage::clear_clientuserdata() { - clientuserdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000008u; + if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { + clientuserdata_->clear(); + } + clear_has_clientuserdata(); } inline const ::std::string& InitMessage::clientuserdata() const { - // @@protoc_insertion_point(field_get:InitMessage.clientUserData) - return clientuserdata_.GetNoArena(); + return *clientuserdata_; } inline void InitMessage::set_clientuserdata(const ::std::string& value) { - _has_bits_[0] |= 0x00000008u; - clientuserdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitMessage.clientUserData) + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(value); } -#if LANG_CXX11 -inline void InitMessage::set_clientuserdata(::std::string&& value) { - _has_bits_[0] |= 0x00000008u; - clientuserdata_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitMessage.clientUserData) -} -#endif inline void InitMessage::set_clientuserdata(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000008u; - clientuserdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitMessage.clientUserData) + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(value); } inline void InitMessage::set_clientuserdata(const void* value, size_t size) { - _has_bits_[0] |= 0x00000008u; - clientuserdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitMessage.clientUserData) + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(reinterpret_cast(value), size); } inline ::std::string* InitMessage::mutable_clientuserdata() { - _has_bits_[0] |= 0x00000008u; - // @@protoc_insertion_point(field_mutable:InitMessage.clientUserData) - return clientuserdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + return clientuserdata_; } inline ::std::string* InitMessage::release_clientuserdata() { - // @@protoc_insertion_point(field_release:InitMessage.clientUserData) - if (!has_clientuserdata()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - return clientuserdata_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitMessage::set_allocated_clientuserdata(::std::string* clientuserdata) { - if (clientuserdata != nullptr) { - _has_bits_[0] |= 0x00000008u; + clear_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000008u; + ::std::string* temp = clientuserdata_; + clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - clientuserdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clientuserdata); - // @@protoc_insertion_point(field_set_allocated:InitMessage.clientUserData) } // optional bytes avatarHash = 8; inline bool InitMessage::has_avatarhash() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void InitMessage::clear_avatarhash() { - avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000010u; + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); } inline const ::std::string& InitMessage::avatarhash() const { - // @@protoc_insertion_point(field_get:InitMessage.avatarHash) - return avatarhash_.GetNoArena(); + return *avatarhash_; } inline void InitMessage::set_avatarhash(const ::std::string& value) { - _has_bits_[0] |= 0x00000010u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } -#if LANG_CXX11 -inline void InitMessage::set_avatarhash(::std::string&& value) { - _has_bits_[0] |= 0x00000010u; - avatarhash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitMessage.avatarHash) -} -#endif inline void InitMessage::set_avatarhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000010u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } inline void InitMessage::set_avatarhash(const void* value, size_t size) { - _has_bits_[0] |= 0x00000010u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); } inline ::std::string* InitMessage::mutable_avatarhash() { - _has_bits_[0] |= 0x00000010u; - // @@protoc_insertion_point(field_mutable:InitMessage.avatarHash) - return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; } inline ::std::string* InitMessage::release_avatarhash() { - // @@protoc_insertion_point(field_release:InitMessage.avatarHash) - if (!has_avatarhash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000010u; - return avatarhash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitMessage::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash != nullptr) { - _has_bits_[0] |= 0x00000010u; + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000010u; + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); - // @@protoc_insertion_point(field_set_allocated:InitMessage.avatarHash) } // ------------------------------------------------------------------- @@ -15756,60 +11014,58 @@ inline void InitMessage::set_allocated_avatarhash(::std::string* avatarhash) { inline bool AuthServerChallengeMessage::has_serverchallenge() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthServerChallengeMessage::clear_serverchallenge() { - serverchallenge_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void AuthServerChallengeMessage::set_has_serverchallenge() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthServerChallengeMessage::clear_has_serverchallenge() { _has_bits_[0] &= ~0x00000001u; } +inline void AuthServerChallengeMessage::clear_serverchallenge() { + if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { + serverchallenge_->clear(); + } + clear_has_serverchallenge(); +} inline const ::std::string& AuthServerChallengeMessage::serverchallenge() const { - // @@protoc_insertion_point(field_get:AuthServerChallengeMessage.serverChallenge) - return serverchallenge_.GetNoArena(); + return *serverchallenge_; } inline void AuthServerChallengeMessage::set_serverchallenge(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - serverchallenge_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:AuthServerChallengeMessage.serverChallenge) + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(value); } -#if LANG_CXX11 -inline void AuthServerChallengeMessage::set_serverchallenge(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - serverchallenge_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:AuthServerChallengeMessage.serverChallenge) -} -#endif inline void AuthServerChallengeMessage::set_serverchallenge(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - serverchallenge_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:AuthServerChallengeMessage.serverChallenge) + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(value); } inline void AuthServerChallengeMessage::set_serverchallenge(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - serverchallenge_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:AuthServerChallengeMessage.serverChallenge) + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(reinterpret_cast(value), size); } inline ::std::string* AuthServerChallengeMessage::mutable_serverchallenge() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:AuthServerChallengeMessage.serverChallenge) - return serverchallenge_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + return serverchallenge_; } inline ::std::string* AuthServerChallengeMessage::release_serverchallenge() { - // @@protoc_insertion_point(field_release:AuthServerChallengeMessage.serverChallenge) - if (!has_serverchallenge()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return serverchallenge_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AuthServerChallengeMessage::set_allocated_serverchallenge(::std::string* serverchallenge) { - if (serverchallenge != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = serverchallenge_; + serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - serverchallenge_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serverchallenge); - // @@protoc_insertion_point(field_set_allocated:AuthServerChallengeMessage.serverChallenge) } // ------------------------------------------------------------------- @@ -15820,60 +11076,58 @@ inline void AuthServerChallengeMessage::set_allocated_serverchallenge(::std::str inline bool AuthClientResponseMessage::has_clientresponse() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthClientResponseMessage::clear_clientresponse() { - clientresponse_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void AuthClientResponseMessage::set_has_clientresponse() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthClientResponseMessage::clear_has_clientresponse() { _has_bits_[0] &= ~0x00000001u; } +inline void AuthClientResponseMessage::clear_clientresponse() { + if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { + clientresponse_->clear(); + } + clear_has_clientresponse(); +} inline const ::std::string& AuthClientResponseMessage::clientresponse() const { - // @@protoc_insertion_point(field_get:AuthClientResponseMessage.clientResponse) - return clientresponse_.GetNoArena(); + return *clientresponse_; } inline void AuthClientResponseMessage::set_clientresponse(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - clientresponse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:AuthClientResponseMessage.clientResponse) + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(value); } -#if LANG_CXX11 -inline void AuthClientResponseMessage::set_clientresponse(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - clientresponse_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:AuthClientResponseMessage.clientResponse) -} -#endif inline void AuthClientResponseMessage::set_clientresponse(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - clientresponse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:AuthClientResponseMessage.clientResponse) + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(value); } inline void AuthClientResponseMessage::set_clientresponse(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - clientresponse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:AuthClientResponseMessage.clientResponse) + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(reinterpret_cast(value), size); } inline ::std::string* AuthClientResponseMessage::mutable_clientresponse() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:AuthClientResponseMessage.clientResponse) - return clientresponse_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + return clientresponse_; } inline ::std::string* AuthClientResponseMessage::release_clientresponse() { - // @@protoc_insertion_point(field_release:AuthClientResponseMessage.clientResponse) - if (!has_clientresponse()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return clientresponse_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AuthClientResponseMessage::set_allocated_clientresponse(::std::string* clientresponse) { - if (clientresponse != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = clientresponse_; + clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - clientresponse_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clientresponse); - // @@protoc_insertion_point(field_set_allocated:AuthClientResponseMessage.clientResponse) } // ------------------------------------------------------------------- @@ -15884,60 +11138,58 @@ inline void AuthClientResponseMessage::set_allocated_clientresponse(::std::strin inline bool AuthServerVerificationMessage::has_serververification() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthServerVerificationMessage::clear_serververification() { - serververification_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void AuthServerVerificationMessage::set_has_serververification() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthServerVerificationMessage::clear_has_serververification() { _has_bits_[0] &= ~0x00000001u; } +inline void AuthServerVerificationMessage::clear_serververification() { + if (serververification_ != &::google::protobuf::internal::kEmptyString) { + serververification_->clear(); + } + clear_has_serververification(); +} inline const ::std::string& AuthServerVerificationMessage::serververification() const { - // @@protoc_insertion_point(field_get:AuthServerVerificationMessage.serverVerification) - return serververification_.GetNoArena(); + return *serververification_; } inline void AuthServerVerificationMessage::set_serververification(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - serververification_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:AuthServerVerificationMessage.serverVerification) + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(value); } -#if LANG_CXX11 -inline void AuthServerVerificationMessage::set_serververification(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - serververification_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:AuthServerVerificationMessage.serverVerification) -} -#endif inline void AuthServerVerificationMessage::set_serververification(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - serververification_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:AuthServerVerificationMessage.serverVerification) + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(value); } inline void AuthServerVerificationMessage::set_serververification(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - serververification_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:AuthServerVerificationMessage.serverVerification) + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(reinterpret_cast(value), size); } inline ::std::string* AuthServerVerificationMessage::mutable_serververification() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:AuthServerVerificationMessage.serverVerification) - return serververification_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + return serververification_; } inline ::std::string* AuthServerVerificationMessage::release_serververification() { - // @@protoc_insertion_point(field_release:AuthServerVerificationMessage.serverVerification) - if (!has_serververification()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return serververification_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AuthServerVerificationMessage::set_allocated_serververification(::std::string* serververification) { - if (serververification != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = serververification_; + serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - serververification_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serververification); - // @@protoc_insertion_point(field_set_allocated:AuthServerVerificationMessage.serverVerification) } // ------------------------------------------------------------------- @@ -15948,156 +11200,160 @@ inline void AuthServerVerificationMessage::set_allocated_serververification(::st inline bool InitAckMessage::has_yoursessionid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InitAckMessage::clear_yoursessionid() { - yoursessionid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void InitAckMessage::set_has_yoursessionid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InitAckMessage::clear_has_yoursessionid() { _has_bits_[0] &= ~0x00000001u; } +inline void InitAckMessage::clear_yoursessionid() { + if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { + yoursessionid_->clear(); + } + clear_has_yoursessionid(); +} inline const ::std::string& InitAckMessage::yoursessionid() const { - // @@protoc_insertion_point(field_get:InitAckMessage.yourSessionId) - return yoursessionid_.GetNoArena(); + return *yoursessionid_; } inline void InitAckMessage::set_yoursessionid(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - yoursessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitAckMessage.yourSessionId) + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(value); } -#if LANG_CXX11 -inline void InitAckMessage::set_yoursessionid(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - yoursessionid_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitAckMessage.yourSessionId) -} -#endif inline void InitAckMessage::set_yoursessionid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - yoursessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitAckMessage.yourSessionId) + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(value); } inline void InitAckMessage::set_yoursessionid(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - yoursessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitAckMessage.yourSessionId) + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(reinterpret_cast(value), size); } inline ::std::string* InitAckMessage::mutable_yoursessionid() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:InitAckMessage.yourSessionId) - return yoursessionid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + return yoursessionid_; } inline ::std::string* InitAckMessage::release_yoursessionid() { - // @@protoc_insertion_point(field_release:InitAckMessage.yourSessionId) - if (!has_yoursessionid()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return yoursessionid_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitAckMessage::set_allocated_yoursessionid(::std::string* yoursessionid) { - if (yoursessionid != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = yoursessionid_; + yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - yoursessionid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), yoursessionid); - // @@protoc_insertion_point(field_set_allocated:InitAckMessage.yourSessionId) } // required uint32 yourPlayerId = 2; inline bool InitAckMessage::has_yourplayerid() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void InitAckMessage::clear_yourplayerid() { yourplayerid_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_yourplayerid(); } inline ::google::protobuf::uint32 InitAckMessage::yourplayerid() const { - // @@protoc_insertion_point(field_get:InitAckMessage.yourPlayerId) return yourplayerid_; } inline void InitAckMessage::set_yourplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_yourplayerid(); yourplayerid_ = value; - // @@protoc_insertion_point(field_set:InitAckMessage.yourPlayerId) } // optional bytes yourAvatarHash = 3; inline bool InitAckMessage::has_youravatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void InitAckMessage::clear_youravatarhash() { - youravatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000002u; + if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { + youravatarhash_->clear(); + } + clear_has_youravatarhash(); } inline const ::std::string& InitAckMessage::youravatarhash() const { - // @@protoc_insertion_point(field_get:InitAckMessage.yourAvatarHash) - return youravatarhash_.GetNoArena(); + return *youravatarhash_; } inline void InitAckMessage::set_youravatarhash(const ::std::string& value) { - _has_bits_[0] |= 0x00000002u; - youravatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:InitAckMessage.yourAvatarHash) + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(value); } -#if LANG_CXX11 -inline void InitAckMessage::set_youravatarhash(::std::string&& value) { - _has_bits_[0] |= 0x00000002u; - youravatarhash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:InitAckMessage.yourAvatarHash) -} -#endif inline void InitAckMessage::set_youravatarhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - youravatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:InitAckMessage.yourAvatarHash) + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(value); } inline void InitAckMessage::set_youravatarhash(const void* value, size_t size) { - _has_bits_[0] |= 0x00000002u; - youravatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:InitAckMessage.yourAvatarHash) + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(reinterpret_cast(value), size); } inline ::std::string* InitAckMessage::mutable_youravatarhash() { - _has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_mutable:InitAckMessage.yourAvatarHash) - return youravatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + return youravatarhash_; } inline ::std::string* InitAckMessage::release_youravatarhash() { - // @@protoc_insertion_point(field_release:InitAckMessage.yourAvatarHash) - if (!has_youravatarhash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return youravatarhash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InitAckMessage::set_allocated_youravatarhash(::std::string* youravatarhash) { - if (youravatarhash != nullptr) { - _has_bits_[0] |= 0x00000002u; + clear_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000002u; + ::std::string* temp = youravatarhash_; + youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - youravatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), youravatarhash); - // @@protoc_insertion_point(field_set_allocated:InitAckMessage.yourAvatarHash) } // optional uint32 rejoinGameId = 4; inline bool InitAckMessage::has_rejoingameid() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void InitAckMessage::clear_rejoingameid() { - rejoingameid_ = 0u; +inline void InitAckMessage::set_has_rejoingameid() { + _has_bits_[0] |= 0x00000008u; +} +inline void InitAckMessage::clear_has_rejoingameid() { _has_bits_[0] &= ~0x00000008u; } +inline void InitAckMessage::clear_rejoingameid() { + rejoingameid_ = 0u; + clear_has_rejoingameid(); +} inline ::google::protobuf::uint32 InitAckMessage::rejoingameid() const { - // @@protoc_insertion_point(field_get:InitAckMessage.rejoinGameId) return rejoingameid_; } inline void InitAckMessage::set_rejoingameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_rejoingameid(); rejoingameid_ = value; - // @@protoc_insertion_point(field_set:InitAckMessage.rejoinGameId) } // ------------------------------------------------------------------- @@ -16106,80 +11362,82 @@ inline void InitAckMessage::set_rejoingameid(::google::protobuf::uint32 value) { // required uint32 requestId = 1; inline bool AvatarRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void AvatarRequestMessage::clear_requestid() { requestid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_requestid(); } inline ::google::protobuf::uint32 AvatarRequestMessage::requestid() const { - // @@protoc_insertion_point(field_get:AvatarRequestMessage.requestId) return requestid_; } inline void AvatarRequestMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:AvatarRequestMessage.requestId) } // required bytes avatarHash = 2; inline bool AvatarRequestMessage::has_avatarhash() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void AvatarRequestMessage::clear_avatarhash() { - avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); } inline const ::std::string& AvatarRequestMessage::avatarhash() const { - // @@protoc_insertion_point(field_get:AvatarRequestMessage.avatarHash) - return avatarhash_.GetNoArena(); + return *avatarhash_; } inline void AvatarRequestMessage::set_avatarhash(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:AvatarRequestMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } -#if LANG_CXX11 -inline void AvatarRequestMessage::set_avatarhash(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:AvatarRequestMessage.avatarHash) -} -#endif inline void AvatarRequestMessage::set_avatarhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:AvatarRequestMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } inline void AvatarRequestMessage::set_avatarhash(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:AvatarRequestMessage.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); } inline ::std::string* AvatarRequestMessage::mutable_avatarhash() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:AvatarRequestMessage.avatarHash) - return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; } inline ::std::string* AvatarRequestMessage::release_avatarhash() { - // @@protoc_insertion_point(field_release:AvatarRequestMessage.avatarHash) - if (!has_avatarhash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return avatarhash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AvatarRequestMessage::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); - // @@protoc_insertion_point(field_set_allocated:AvatarRequestMessage.avatarHash) } // ------------------------------------------------------------------- @@ -16190,55 +11448,67 @@ inline void AvatarRequestMessage::set_allocated_avatarhash(::std::string* avatar inline bool AvatarHeaderMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AvatarHeaderMessage::clear_requestid() { - requestid_ = 0u; +inline void AvatarHeaderMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarHeaderMessage::clear_has_requestid() { _has_bits_[0] &= ~0x00000001u; } +inline void AvatarHeaderMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} inline ::google::protobuf::uint32 AvatarHeaderMessage::requestid() const { - // @@protoc_insertion_point(field_get:AvatarHeaderMessage.requestId) return requestid_; } inline void AvatarHeaderMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:AvatarHeaderMessage.requestId) } // required .NetAvatarType avatarType = 2; inline bool AvatarHeaderMessage::has_avatartype() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void AvatarHeaderMessage::clear_avatartype() { avatartype_ = 1; - _has_bits_[0] &= ~0x00000004u; + clear_has_avatartype(); } -inline ::NetAvatarType AvatarHeaderMessage::avatartype() const { - // @@protoc_insertion_point(field_get:AvatarHeaderMessage.avatarType) - return static_cast< ::NetAvatarType >(avatartype_); +inline NetAvatarType AvatarHeaderMessage::avatartype() const { + return static_cast< NetAvatarType >(avatartype_); } -inline void AvatarHeaderMessage::set_avatartype(::NetAvatarType value) { - assert(::NetAvatarType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline void AvatarHeaderMessage::set_avatartype(NetAvatarType value) { + GOOGLE_DCHECK(NetAvatarType_IsValid(value)); + set_has_avatartype(); avatartype_ = value; - // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarType) } // required uint32 avatarSize = 3; inline bool AvatarHeaderMessage::has_avatarsize() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void AvatarHeaderMessage::clear_avatarsize() { avatarsize_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_avatarsize(); } inline ::google::protobuf::uint32 AvatarHeaderMessage::avatarsize() const { - // @@protoc_insertion_point(field_get:AvatarHeaderMessage.avatarSize) return avatarsize_; } inline void AvatarHeaderMessage::set_avatarsize(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_avatarsize(); avatarsize_ = value; - // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarSize) } // ------------------------------------------------------------------- @@ -16247,80 +11517,82 @@ inline void AvatarHeaderMessage::set_avatarsize(::google::protobuf::uint32 value // required uint32 requestId = 1; inline bool AvatarDataMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void AvatarDataMessage::clear_requestid() { requestid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_requestid(); } inline ::google::protobuf::uint32 AvatarDataMessage::requestid() const { - // @@protoc_insertion_point(field_get:AvatarDataMessage.requestId) return requestid_; } inline void AvatarDataMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:AvatarDataMessage.requestId) } // required bytes avatarBlock = 2; inline bool AvatarDataMessage::has_avatarblock() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void AvatarDataMessage::clear_avatarblock() { - avatarblock_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { + avatarblock_->clear(); + } + clear_has_avatarblock(); } inline const ::std::string& AvatarDataMessage::avatarblock() const { - // @@protoc_insertion_point(field_get:AvatarDataMessage.avatarBlock) - return avatarblock_.GetNoArena(); + return *avatarblock_; } inline void AvatarDataMessage::set_avatarblock(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - avatarblock_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:AvatarDataMessage.avatarBlock) + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(value); } -#if LANG_CXX11 -inline void AvatarDataMessage::set_avatarblock(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - avatarblock_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:AvatarDataMessage.avatarBlock) -} -#endif inline void AvatarDataMessage::set_avatarblock(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - avatarblock_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:AvatarDataMessage.avatarBlock) + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(value); } inline void AvatarDataMessage::set_avatarblock(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - avatarblock_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:AvatarDataMessage.avatarBlock) + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(reinterpret_cast(value), size); } inline ::std::string* AvatarDataMessage::mutable_avatarblock() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:AvatarDataMessage.avatarBlock) - return avatarblock_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + return avatarblock_; } inline ::std::string* AvatarDataMessage::release_avatarblock() { - // @@protoc_insertion_point(field_release:AvatarDataMessage.avatarBlock) - if (!has_avatarblock()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return avatarblock_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AvatarDataMessage::set_allocated_avatarblock(::std::string* avatarblock) { - if (avatarblock != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = avatarblock_; + avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - avatarblock_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarblock); - // @@protoc_insertion_point(field_set_allocated:AvatarDataMessage.avatarBlock) } // ------------------------------------------------------------------- @@ -16331,18 +11603,22 @@ inline void AvatarDataMessage::set_allocated_avatarblock(::std::string* avatarbl inline bool AvatarEndMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AvatarEndMessage::clear_requestid() { - requestid_ = 0u; +inline void AvatarEndMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarEndMessage::clear_has_requestid() { _has_bits_[0] &= ~0x00000001u; } +inline void AvatarEndMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} inline ::google::protobuf::uint32 AvatarEndMessage::requestid() const { - // @@protoc_insertion_point(field_get:AvatarEndMessage.requestId) return requestid_; } inline void AvatarEndMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:AvatarEndMessage.requestId) } // ------------------------------------------------------------------- @@ -16353,18 +11629,22 @@ inline void AvatarEndMessage::set_requestid(::google::protobuf::uint32 value) { inline bool UnknownAvatarMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void UnknownAvatarMessage::clear_requestid() { - requestid_ = 0u; +inline void UnknownAvatarMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void UnknownAvatarMessage::clear_has_requestid() { _has_bits_[0] &= ~0x00000001u; } +inline void UnknownAvatarMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} inline ::google::protobuf::uint32 UnknownAvatarMessage::requestid() const { - // @@protoc_insertion_point(field_get:UnknownAvatarMessage.requestId) return requestid_; } inline void UnknownAvatarMessage::set_requestid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_requestid(); requestid_ = value; - // @@protoc_insertion_point(field_set:UnknownAvatarMessage.requestId) } // ------------------------------------------------------------------- @@ -16375,37 +11655,45 @@ inline void UnknownAvatarMessage::set_requestid(::google::protobuf::uint32 value inline bool PlayerListMessage::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerListMessage::clear_playerid() { - playerid_ = 0u; +inline void PlayerListMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerListMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayerListMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 PlayerListMessage::playerid() const { - // @@protoc_insertion_point(field_get:PlayerListMessage.playerId) return playerid_; } inline void PlayerListMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:PlayerListMessage.playerId) } // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; inline bool PlayerListMessage::has_playerlistnotification() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerListMessage::clear_playerlistnotification() { - playerlistnotification_ = 0; +inline void PlayerListMessage::set_has_playerlistnotification() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerListMessage::clear_has_playerlistnotification() { _has_bits_[0] &= ~0x00000002u; } +inline void PlayerListMessage::clear_playerlistnotification() { + playerlistnotification_ = 0; + clear_has_playerlistnotification(); +} inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistnotification() const { - // @@protoc_insertion_point(field_get:PlayerListMessage.playerListNotification) return static_cast< ::PlayerListMessage_PlayerListNotification >(playerlistnotification_); } inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { - assert(::PlayerListMessage_PlayerListNotification_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::PlayerListMessage_PlayerListNotification_IsValid(value)); + set_has_playerlistnotification(); playerlistnotification_ = value; - // @@protoc_insertion_point(field_set:PlayerListMessage.playerListNotification) } // ------------------------------------------------------------------- @@ -16414,57 +11702,69 @@ inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_Pl // required uint32 gameId = 1; inline bool GameListNewMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void GameListNewMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_gameid(); } inline ::google::protobuf::uint32 GameListNewMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListNewMessage.gameId) return gameid_; } inline void GameListNewMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListNewMessage.gameId) } // required .NetGameMode gameMode = 2; inline bool GameListNewMessage::has_gamemode() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void GameListNewMessage::clear_gamemode() { gamemode_ = 1; - _has_bits_[0] &= ~0x00000010u; + clear_has_gamemode(); } -inline ::NetGameMode GameListNewMessage::gamemode() const { - // @@protoc_insertion_point(field_get:GameListNewMessage.gameMode) - return static_cast< ::NetGameMode >(gamemode_); +inline NetGameMode GameListNewMessage::gamemode() const { + return static_cast< NetGameMode >(gamemode_); } -inline void GameListNewMessage::set_gamemode(::NetGameMode value) { - assert(::NetGameMode_IsValid(value)); - _has_bits_[0] |= 0x00000010u; +inline void GameListNewMessage::set_gamemode(NetGameMode value) { + GOOGLE_DCHECK(NetGameMode_IsValid(value)); + set_has_gamemode(); gamemode_ = value; - // @@protoc_insertion_point(field_set:GameListNewMessage.gameMode) } // required bool isPrivate = 3; inline bool GameListNewMessage::has_isprivate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameListNewMessage::clear_isprivate() { - isprivate_ = false; +inline void GameListNewMessage::set_has_isprivate() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameListNewMessage::clear_has_isprivate() { _has_bits_[0] &= ~0x00000004u; } +inline void GameListNewMessage::clear_isprivate() { + isprivate_ = false; + clear_has_isprivate(); +} inline bool GameListNewMessage::isprivate() const { - // @@protoc_insertion_point(field_get:GameListNewMessage.isPrivate) return isprivate_; } inline void GameListNewMessage::set_isprivate(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_isprivate(); isprivate_ = value; - // @@protoc_insertion_point(field_set:GameListNewMessage.isPrivate) } // repeated uint32 playerIds = 4 [packed = true]; @@ -16475,93 +11775,72 @@ inline void GameListNewMessage::clear_playerids() { playerids_.Clear(); } inline ::google::protobuf::uint32 GameListNewMessage::playerids(int index) const { - // @@protoc_insertion_point(field_get:GameListNewMessage.playerIds) return playerids_.Get(index); } inline void GameListNewMessage::set_playerids(int index, ::google::protobuf::uint32 value) { playerids_.Set(index, value); - // @@protoc_insertion_point(field_set:GameListNewMessage.playerIds) } inline void GameListNewMessage::add_playerids(::google::protobuf::uint32 value) { playerids_.Add(value); - // @@protoc_insertion_point(field_add:GameListNewMessage.playerIds) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& GameListNewMessage::playerids() const { - // @@protoc_insertion_point(field_list:GameListNewMessage.playerIds) return playerids_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* GameListNewMessage::mutable_playerids() { - // @@protoc_insertion_point(field_mutable_list:GameListNewMessage.playerIds) return &playerids_; } // required uint32 adminPlayerId = 5; inline bool GameListNewMessage::has_adminplayerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void GameListNewMessage::clear_adminplayerid() { adminplayerid_ = 0u; - _has_bits_[0] &= ~0x00000008u; + clear_has_adminplayerid(); } inline ::google::protobuf::uint32 GameListNewMessage::adminplayerid() const { - // @@protoc_insertion_point(field_get:GameListNewMessage.adminPlayerId) return adminplayerid_; } inline void GameListNewMessage::set_adminplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_adminplayerid(); adminplayerid_ = value; - // @@protoc_insertion_point(field_set:GameListNewMessage.adminPlayerId) } // required .NetGameInfo gameInfo = 6; inline bool GameListNewMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void GameListNewMessage::clear_gameinfo() { - if (gameinfo_ != nullptr) gameinfo_->Clear(); - _has_bits_[0] &= ~0x00000001u; + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); } inline const ::NetGameInfo& GameListNewMessage::gameinfo() const { - const ::NetGameInfo* p = gameinfo_; - // @@protoc_insertion_point(field_get:GameListNewMessage.gameInfo) - return p != nullptr ? *p : *reinterpret_cast( - &::_NetGameInfo_default_instance_); -} -inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { - // @@protoc_insertion_point(field_release:GameListNewMessage.gameInfo) - _has_bits_[0] &= ~0x00000001u; - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = nullptr; - return temp; + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; } inline ::NetGameInfo* GameListNewMessage::mutable_gameinfo() { - _has_bits_[0] |= 0x00000001u; - if (gameinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); - gameinfo_ = p; - } - // @@protoc_insertion_point(field_mutable:GameListNewMessage.gameInfo) + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; return gameinfo_; } -inline void GameListNewMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameinfo_; - } - if (gameinfo) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameinfo = ::google::protobuf::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) +inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; } // repeated uint32 spectatorIds = 7 [packed = true]; @@ -16572,25 +11851,20 @@ inline void GameListNewMessage::clear_spectatorids() { spectatorids_.Clear(); } inline ::google::protobuf::uint32 GameListNewMessage::spectatorids(int index) const { - // @@protoc_insertion_point(field_get:GameListNewMessage.spectatorIds) return spectatorids_.Get(index); } inline void GameListNewMessage::set_spectatorids(int index, ::google::protobuf::uint32 value) { spectatorids_.Set(index, value); - // @@protoc_insertion_point(field_set:GameListNewMessage.spectatorIds) } inline void GameListNewMessage::add_spectatorids(::google::protobuf::uint32 value) { spectatorids_.Add(value); - // @@protoc_insertion_point(field_add:GameListNewMessage.spectatorIds) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& GameListNewMessage::spectatorids() const { - // @@protoc_insertion_point(field_list:GameListNewMessage.spectatorIds) return spectatorids_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* GameListNewMessage::mutable_spectatorids() { - // @@protoc_insertion_point(field_mutable_list:GameListNewMessage.spectatorIds) return &spectatorids_; } @@ -16602,37 +11876,45 @@ GameListNewMessage::mutable_spectatorids() { inline bool GameListUpdateMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListUpdateMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListUpdateMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListUpdateMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListUpdateMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListUpdateMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListUpdateMessage.gameId) return gameid_; } inline void GameListUpdateMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameId) } // required .NetGameMode gameMode = 2; inline bool GameListUpdateMessage::has_gamemode() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListUpdateMessage::clear_gamemode() { - gamemode_ = 1; +inline void GameListUpdateMessage::set_has_gamemode() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListUpdateMessage::clear_has_gamemode() { _has_bits_[0] &= ~0x00000002u; } -inline ::NetGameMode GameListUpdateMessage::gamemode() const { - // @@protoc_insertion_point(field_get:GameListUpdateMessage.gameMode) - return static_cast< ::NetGameMode >(gamemode_); +inline void GameListUpdateMessage::clear_gamemode() { + gamemode_ = 1; + clear_has_gamemode(); } -inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { - assert(::NetGameMode_IsValid(value)); - _has_bits_[0] |= 0x00000002u; +inline NetGameMode GameListUpdateMessage::gamemode() const { + return static_cast< NetGameMode >(gamemode_); +} +inline void GameListUpdateMessage::set_gamemode(NetGameMode value) { + GOOGLE_DCHECK(NetGameMode_IsValid(value)); + set_has_gamemode(); gamemode_ = value; - // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameMode) } // ------------------------------------------------------------------- @@ -16643,36 +11925,44 @@ inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { inline bool GameListPlayerJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListPlayerJoinedMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListPlayerJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListPlayerJoinedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListPlayerJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListPlayerJoinedMessage.gameId) return gameid_; } inline void GameListPlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.gameId) } // required uint32 playerId = 2; inline bool GameListPlayerJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListPlayerJoinedMessage::clear_playerid() { - playerid_ = 0u; +inline void GameListPlayerJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListPlayerJoinedMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameListPlayerJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameListPlayerJoinedMessage.playerId) return playerid_; } inline void GameListPlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.playerId) } // ------------------------------------------------------------------- @@ -16683,36 +11973,44 @@ inline void GameListPlayerJoinedMessage::set_playerid(::google::protobuf::uint32 inline bool GameListPlayerLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListPlayerLeftMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListPlayerLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListPlayerLeftMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListPlayerLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListPlayerLeftMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListPlayerLeftMessage.gameId) return gameid_; } inline void GameListPlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.gameId) } // required uint32 playerId = 2; inline bool GameListPlayerLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListPlayerLeftMessage::clear_playerid() { - playerid_ = 0u; +inline void GameListPlayerLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListPlayerLeftMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameListPlayerLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameListPlayerLeftMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameListPlayerLeftMessage.playerId) return playerid_; } inline void GameListPlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.playerId) } // ------------------------------------------------------------------- @@ -16723,36 +12021,44 @@ inline void GameListPlayerLeftMessage::set_playerid(::google::protobuf::uint32 v inline bool GameListSpectatorJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListSpectatorJoinedMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListSpectatorJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListSpectatorJoinedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListSpectatorJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListSpectatorJoinedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListSpectatorJoinedMessage.gameId) return gameid_; } inline void GameListSpectatorJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.gameId) } // required uint32 playerId = 2; inline bool GameListSpectatorJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListSpectatorJoinedMessage::clear_playerid() { - playerid_ = 0u; +inline void GameListSpectatorJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListSpectatorJoinedMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameListSpectatorJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameListSpectatorJoinedMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameListSpectatorJoinedMessage.playerId) return playerid_; } inline void GameListSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.playerId) } // ------------------------------------------------------------------- @@ -16763,36 +12069,44 @@ inline void GameListSpectatorJoinedMessage::set_playerid(::google::protobuf::uin inline bool GameListSpectatorLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListSpectatorLeftMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListSpectatorLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListSpectatorLeftMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListSpectatorLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListSpectatorLeftMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListSpectatorLeftMessage.gameId) return gameid_; } inline void GameListSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.gameId) } // required uint32 playerId = 2; inline bool GameListSpectatorLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListSpectatorLeftMessage::clear_playerid() { - playerid_ = 0u; +inline void GameListSpectatorLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListSpectatorLeftMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameListSpectatorLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameListSpectatorLeftMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameListSpectatorLeftMessage.playerId) return playerid_; } inline void GameListSpectatorLeftMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.playerId) } // ------------------------------------------------------------------- @@ -16803,36 +12117,44 @@ inline void GameListSpectatorLeftMessage::set_playerid(::google::protobuf::uint3 inline bool GameListAdminChangedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListAdminChangedMessage::clear_gameid() { - gameid_ = 0u; +inline void GameListAdminChangedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListAdminChangedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameListAdminChangedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameListAdminChangedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameListAdminChangedMessage.gameId) return gameid_; } inline void GameListAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.gameId) } // required uint32 newAdminPlayerId = 2; inline bool GameListAdminChangedMessage::has_newadminplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListAdminChangedMessage::clear_newadminplayerid() { - newadminplayerid_ = 0u; +inline void GameListAdminChangedMessage::set_has_newadminplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListAdminChangedMessage::clear_has_newadminplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameListAdminChangedMessage::clear_newadminplayerid() { + newadminplayerid_ = 0u; + clear_has_newadminplayerid(); +} inline ::google::protobuf::uint32 GameListAdminChangedMessage::newadminplayerid() const { - // @@protoc_insertion_point(field_get:GameListAdminChangedMessage.newAdminPlayerId) return newadminplayerid_; } inline void GameListAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_newadminplayerid(); newadminplayerid_ = value; - // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.newAdminPlayerId) } // ------------------------------------------------------------------- @@ -16847,25 +12169,20 @@ inline void PlayerInfoRequestMessage::clear_playerid() { playerid_.Clear(); } inline ::google::protobuf::uint32 PlayerInfoRequestMessage::playerid(int index) const { - // @@protoc_insertion_point(field_get:PlayerInfoRequestMessage.playerId) return playerid_.Get(index); } inline void PlayerInfoRequestMessage::set_playerid(int index, ::google::protobuf::uint32 value) { playerid_.Set(index, value); - // @@protoc_insertion_point(field_set:PlayerInfoRequestMessage.playerId) } inline void PlayerInfoRequestMessage::add_playerid(::google::protobuf::uint32 value) { playerid_.Add(value); - // @@protoc_insertion_point(field_add:PlayerInfoRequestMessage.playerId) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& PlayerInfoRequestMessage::playerid() const { - // @@protoc_insertion_point(field_list:PlayerInfoRequestMessage.playerId) return playerid_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* PlayerInfoRequestMessage::mutable_playerid() { - // @@protoc_insertion_point(field_mutable_list:PlayerInfoRequestMessage.playerId) return &playerid_; } @@ -16875,81 +12192,83 @@ PlayerInfoRequestMessage::mutable_playerid() { // required .NetAvatarType avatarType = 1; inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatartype() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatartype() { avatartype_ = 1; - _has_bits_[0] &= ~0x00000002u; + clear_has_avatartype(); } -inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarType) - return static_cast< ::NetAvatarType >(avatartype_); +inline NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { + return static_cast< NetAvatarType >(avatartype_); } -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(::NetAvatarType value) { - assert(::NetAvatarType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(NetAvatarType value) { + GOOGLE_DCHECK(NetAvatarType_IsValid(value)); + set_has_avatartype(); avatartype_ = value; - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarType) } // required bytes avatarHash = 2; inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatarhash() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatarhash() { - avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); } inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatarhash() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) - return avatarhash_.GetNoArena(); + return *avatarhash_; } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } -#if LANG_CXX11 -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) -} -#endif inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::mutable_avatarhash() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) - return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::release_avatarhash() { - // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) - if (!has_avatarhash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return avatarhash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_allocated_avatarhash(::std::string* avatarhash) { - if (avatarhash != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); - // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } // ------------------------------------------------------------------- @@ -16960,206 +12279,190 @@ inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_allocated_avat inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playername() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playername() { - playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playername() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playername() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playername() { + if (playername_ != &::google::protobuf::internal::kEmptyString) { + playername_->clear(); + } + clear_has_playername(); +} inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::playername() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerName) - return playername_.GetNoArena(); + return *playername_; } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); } -#if LANG_CXX11 -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.playerName) -} -#endif inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.playerName) + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(reinterpret_cast(value), size); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_playername() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.playerName) - return playername_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + return playername_; } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_playername() { - // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.playerName) - if (!has_playername()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return playername_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_playername(::std::string* playername) { - if (playername != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = playername_; + playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - playername_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), playername); - // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.playerName) } // required bool isHuman = 2; inline bool PlayerInfoReplyMessage_PlayerInfoData::has_ishuman() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_ishuman() { ishuman_ = false; - _has_bits_[0] &= ~0x00000008u; + clear_has_ishuman(); } inline bool PlayerInfoReplyMessage_PlayerInfoData::ishuman() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.isHuman) return ishuman_; } inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { - _has_bits_[0] |= 0x00000008u; + set_has_ishuman(); ishuman_ = value; - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.isHuman) } // required .NetPlayerInfoRights playerRights = 3; inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() { playerrights_ = 1; - _has_bits_[0] &= ~0x00000010u; + clear_has_playerrights(); } -inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerRights) - return static_cast< ::NetPlayerInfoRights >(playerrights_); +inline NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { + return static_cast< NetPlayerInfoRights >(playerrights_); } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(::NetPlayerInfoRights value) { - assert(::NetPlayerInfoRights_IsValid(value)); - _has_bits_[0] |= 0x00000010u; +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(NetPlayerInfoRights value) { + GOOGLE_DCHECK(NetPlayerInfoRights_IsValid(value)); + set_has_playerrights(); playerrights_ = value; - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.playerRights) } // optional string countryCode = 4; inline bool PlayerInfoReplyMessage_PlayerInfoData::has_countrycode() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_countrycode() { - countrycode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000002u; + if (countrycode_ != &::google::protobuf::internal::kEmptyString) { + countrycode_->clear(); + } + clear_has_countrycode(); } inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::countrycode() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.countryCode) - return countrycode_.GetNoArena(); + return *countrycode_; } inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const ::std::string& value) { - _has_bits_[0] |= 0x00000002u; - countrycode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(value); } -#if LANG_CXX11 -inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(::std::string&& value) { - _has_bits_[0] |= 0x00000002u; - countrycode_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:PlayerInfoReplyMessage.PlayerInfoData.countryCode) -} -#endif inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - countrycode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(value); } inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value, size_t size) { - _has_bits_[0] |= 0x00000002u; - countrycode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:PlayerInfoReplyMessage.PlayerInfoData.countryCode) + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(reinterpret_cast(value), size); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_countrycode() { - _has_bits_[0] |= 0x00000002u; - // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.countryCode) - return countrycode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + return countrycode_; } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_countrycode() { - // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.countryCode) - if (!has_countrycode()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - return countrycode_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_countrycode(::std::string* countrycode) { - if (countrycode != nullptr) { - _has_bits_[0] |= 0x00000002u; + clear_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000002u; + ::std::string* temp = countrycode_; + countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - countrycode_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), countrycode); - // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; inline bool PlayerInfoReplyMessage_PlayerInfoData::has_avatardata() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_avatardata() { - if (avatardata_ != nullptr) avatardata_->Clear(); - _has_bits_[0] &= ~0x00000004u; + if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); + clear_has_avatardata(); } inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData::avatardata() const { - const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* p = avatardata_; - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.avatarData) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_); -} -inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { - // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.PlayerInfoData.avatarData) - _has_bits_[0] &= ~0x00000004u; - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; - avatardata_ = nullptr; - return temp; + return avatardata_ != NULL ? *avatardata_ : *default_instance_->avatardata_; } inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::mutable_avatardata() { - _has_bits_[0] |= 0x00000004u; - if (avatardata_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData_AvatarData>(GetArenaNoVirtual()); - avatardata_ = p; - } - // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.avatarData) + set_has_avatardata(); + if (avatardata_ == NULL) avatardata_ = new ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData; return avatardata_; } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete avatardata_; - } - if (avatardata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - avatardata = ::google::protobuf::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) +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { + clear_has_avatardata(); + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; + avatardata_ = NULL; + return temp; } // ------------------------------------------------------------------- @@ -17168,69 +12471,53 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::Pl // required uint32 playerId = 1; inline bool PlayerInfoReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void PlayerInfoReplyMessage::clear_playerid() { playerid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_playerid(); } inline ::google::protobuf::uint32 PlayerInfoReplyMessage::playerid() const { - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.playerId) return playerid_; } inline void PlayerInfoReplyMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.playerId) } // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; inline bool PlayerInfoReplyMessage::has_playerinfodata() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void PlayerInfoReplyMessage::clear_playerinfodata() { - if (playerinfodata_ != nullptr) playerinfodata_->Clear(); - _has_bits_[0] &= ~0x00000001u; + if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); + clear_has_playerinfodata(); } inline const ::PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage::playerinfodata() const { - const ::PlayerInfoReplyMessage_PlayerInfoData* p = playerinfodata_; - // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.playerInfoData) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerInfoReplyMessage_PlayerInfoData_default_instance_); -} -inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { - // @@protoc_insertion_point(field_release:PlayerInfoReplyMessage.playerInfoData) - _has_bits_[0] &= ~0x00000001u; - ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; - playerinfodata_ = nullptr; - return temp; + return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance_->playerinfodata_; } inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::mutable_playerinfodata() { - _has_bits_[0] |= 0x00000001u; - if (playerinfodata_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData>(GetArenaNoVirtual()); - playerinfodata_ = p; - } - // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.playerInfoData) + set_has_playerinfodata(); + if (playerinfodata_ == NULL) playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData; return playerinfodata_; } -inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playerinfodata_; - } - if (playerinfodata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playerinfodata = ::google::protobuf::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) +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { + clear_has_playerinfodata(); + ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; + playerinfodata_ = NULL; + return temp; } // ------------------------------------------------------------------- @@ -17241,19 +12528,23 @@ inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoRep inline bool SubscriptionRequestMessage::has_subscriptionaction() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void SubscriptionRequestMessage::clear_subscriptionaction() { - subscriptionaction_ = 1; +inline void SubscriptionRequestMessage::set_has_subscriptionaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void SubscriptionRequestMessage::clear_has_subscriptionaction() { _has_bits_[0] &= ~0x00000001u; } +inline void SubscriptionRequestMessage::clear_subscriptionaction() { + subscriptionaction_ = 1; + clear_has_subscriptionaction(); +} inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::subscriptionaction() const { - // @@protoc_insertion_point(field_get:SubscriptionRequestMessage.subscriptionAction) return static_cast< ::SubscriptionRequestMessage_SubscriptionAction >(subscriptionaction_); } inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { - assert(::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)); - _has_bits_[0] |= 0x00000001u; + GOOGLE_DCHECK(::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)); + set_has_subscriptionaction(); subscriptionaction_ = value; - // @@protoc_insertion_point(field_set:SubscriptionRequestMessage.subscriptionAction) } // ------------------------------------------------------------------- @@ -17262,116 +12553,126 @@ inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionReq // required uint32 gameId = 1; inline bool JoinExistingGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void JoinExistingGameMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_gameid(); } inline ::google::protobuf::uint32 JoinExistingGameMessage::gameid() const { - // @@protoc_insertion_point(field_get:JoinExistingGameMessage.gameId) return gameid_; } inline void JoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:JoinExistingGameMessage.gameId) } // optional string password = 2; inline bool JoinExistingGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void JoinExistingGameMessage::clear_password() { - password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); } inline const ::std::string& JoinExistingGameMessage::password() const { - // @@protoc_insertion_point(field_get:JoinExistingGameMessage.password) - return password_.GetNoArena(); + return *password_; } inline void JoinExistingGameMessage::set_password(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:JoinExistingGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); } -#if LANG_CXX11 -inline void JoinExistingGameMessage::set_password(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:JoinExistingGameMessage.password) -} -#endif inline void JoinExistingGameMessage::set_password(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:JoinExistingGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); } inline void JoinExistingGameMessage::set_password(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:JoinExistingGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); } inline ::std::string* JoinExistingGameMessage::mutable_password() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:JoinExistingGameMessage.password) - return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; } inline ::std::string* JoinExistingGameMessage::release_password() { - // @@protoc_insertion_point(field_release:JoinExistingGameMessage.password) - if (!has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return password_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void JoinExistingGameMessage::set_allocated_password(::std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); - // @@protoc_insertion_point(field_set_allocated:JoinExistingGameMessage.password) } // optional bool autoLeave = 3 [default = false]; inline bool JoinExistingGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void JoinExistingGameMessage::clear_autoleave() { - autoleave_ = false; +inline void JoinExistingGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000004u; +} +inline void JoinExistingGameMessage::clear_has_autoleave() { _has_bits_[0] &= ~0x00000004u; } +inline void JoinExistingGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} inline bool JoinExistingGameMessage::autoleave() const { - // @@protoc_insertion_point(field_get:JoinExistingGameMessage.autoLeave) return autoleave_; } inline void JoinExistingGameMessage::set_autoleave(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_autoleave(); autoleave_ = value; - // @@protoc_insertion_point(field_set:JoinExistingGameMessage.autoLeave) } // optional bool spectateOnly = 4 [default = false]; inline bool JoinExistingGameMessage::has_spectateonly() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void JoinExistingGameMessage::clear_spectateonly() { - spectateonly_ = false; +inline void JoinExistingGameMessage::set_has_spectateonly() { + _has_bits_[0] |= 0x00000008u; +} +inline void JoinExistingGameMessage::clear_has_spectateonly() { _has_bits_[0] &= ~0x00000008u; } +inline void JoinExistingGameMessage::clear_spectateonly() { + spectateonly_ = false; + clear_has_spectateonly(); +} inline bool JoinExistingGameMessage::spectateonly() const { - // @@protoc_insertion_point(field_get:JoinExistingGameMessage.spectateOnly) return spectateonly_; } inline void JoinExistingGameMessage::set_spectateonly(bool value) { - _has_bits_[0] |= 0x00000008u; + set_has_spectateonly(); spectateonly_ = value; - // @@protoc_insertion_point(field_set:JoinExistingGameMessage.spectateOnly) } // ------------------------------------------------------------------- @@ -17380,129 +12681,111 @@ inline void JoinExistingGameMessage::set_spectateonly(bool value) { // required .NetGameInfo gameInfo = 1; inline bool JoinNewGameMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void JoinNewGameMessage::clear_gameinfo() { - if (gameinfo_ != nullptr) gameinfo_->Clear(); - _has_bits_[0] &= ~0x00000002u; + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); } inline const ::NetGameInfo& JoinNewGameMessage::gameinfo() const { - const ::NetGameInfo* p = gameinfo_; - // @@protoc_insertion_point(field_get:JoinNewGameMessage.gameInfo) - return p != nullptr ? *p : *reinterpret_cast( - &::_NetGameInfo_default_instance_); -} -inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { - // @@protoc_insertion_point(field_release:JoinNewGameMessage.gameInfo) - _has_bits_[0] &= ~0x00000002u; - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = nullptr; - return temp; + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; } inline ::NetGameInfo* JoinNewGameMessage::mutable_gameinfo() { - _has_bits_[0] |= 0x00000002u; - if (gameinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); - gameinfo_ = p; - } - // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.gameInfo) + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; return gameinfo_; } -inline void JoinNewGameMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameinfo_; - } - if (gameinfo) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameinfo = ::google::protobuf::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) +inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; } // optional string password = 2; inline bool JoinNewGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void JoinNewGameMessage::clear_password() { - password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); } inline const ::std::string& JoinNewGameMessage::password() const { - // @@protoc_insertion_point(field_get:JoinNewGameMessage.password) - return password_.GetNoArena(); + return *password_; } inline void JoinNewGameMessage::set_password(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:JoinNewGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); } -#if LANG_CXX11 -inline void JoinNewGameMessage::set_password(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:JoinNewGameMessage.password) -} -#endif inline void JoinNewGameMessage::set_password(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:JoinNewGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); } inline void JoinNewGameMessage::set_password(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:JoinNewGameMessage.password) + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); } inline ::std::string* JoinNewGameMessage::mutable_password() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.password) - return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; } inline ::std::string* JoinNewGameMessage::release_password() { - // @@protoc_insertion_point(field_release:JoinNewGameMessage.password) - if (!has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return password_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void JoinNewGameMessage::set_allocated_password(::std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); - // @@protoc_insertion_point(field_set_allocated:JoinNewGameMessage.password) } // optional bool autoLeave = 3; inline bool JoinNewGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void JoinNewGameMessage::clear_autoleave() { - autoleave_ = false; +inline void JoinNewGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000004u; +} +inline void JoinNewGameMessage::clear_has_autoleave() { _has_bits_[0] &= ~0x00000004u; } +inline void JoinNewGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} inline bool JoinNewGameMessage::autoleave() const { - // @@protoc_insertion_point(field_get:JoinNewGameMessage.autoLeave) return autoleave_; } inline void JoinNewGameMessage::set_autoleave(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_autoleave(); autoleave_ = value; - // @@protoc_insertion_point(field_set:JoinNewGameMessage.autoLeave) } // ------------------------------------------------------------------- @@ -17513,36 +12796,44 @@ inline void JoinNewGameMessage::set_autoleave(bool value) { inline bool RejoinExistingGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejoinExistingGameMessage::clear_gameid() { - gameid_ = 0u; +inline void RejoinExistingGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejoinExistingGameMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void RejoinExistingGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 RejoinExistingGameMessage::gameid() const { - // @@protoc_insertion_point(field_get:RejoinExistingGameMessage.gameId) return gameid_; } inline void RejoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.gameId) } // optional bool autoLeave = 2; inline bool RejoinExistingGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejoinExistingGameMessage::clear_autoleave() { - autoleave_ = false; +inline void RejoinExistingGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejoinExistingGameMessage::clear_has_autoleave() { _has_bits_[0] &= ~0x00000002u; } +inline void RejoinExistingGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} inline bool RejoinExistingGameMessage::autoleave() const { - // @@protoc_insertion_point(field_get:RejoinExistingGameMessage.autoLeave) return autoleave_; } inline void RejoinExistingGameMessage::set_autoleave(bool value) { - _has_bits_[0] |= 0x00000002u; + set_has_autoleave(); autoleave_ = value; - // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.autoLeave) } // ------------------------------------------------------------------- @@ -17551,105 +12842,97 @@ inline void RejoinExistingGameMessage::set_autoleave(bool value) { // required uint32 gameId = 1; inline bool JoinGameAckMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void JoinGameAckMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_gameid(); } inline ::google::protobuf::uint32 JoinGameAckMessage::gameid() const { - // @@protoc_insertion_point(field_get:JoinGameAckMessage.gameId) return gameid_; } inline void JoinGameAckMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:JoinGameAckMessage.gameId) } // required bool areYouGameAdmin = 2; inline bool JoinGameAckMessage::has_areyougameadmin() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void JoinGameAckMessage::clear_areyougameadmin() { areyougameadmin_ = false; - _has_bits_[0] &= ~0x00000004u; + clear_has_areyougameadmin(); } inline bool JoinGameAckMessage::areyougameadmin() const { - // @@protoc_insertion_point(field_get:JoinGameAckMessage.areYouGameAdmin) return areyougameadmin_; } inline void JoinGameAckMessage::set_areyougameadmin(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_areyougameadmin(); areyougameadmin_ = value; - // @@protoc_insertion_point(field_set:JoinGameAckMessage.areYouGameAdmin) } // required .NetGameInfo gameInfo = 3; inline bool JoinGameAckMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void JoinGameAckMessage::clear_gameinfo() { - if (gameinfo_ != nullptr) gameinfo_->Clear(); - _has_bits_[0] &= ~0x00000001u; + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); } inline const ::NetGameInfo& JoinGameAckMessage::gameinfo() const { - const ::NetGameInfo* p = gameinfo_; - // @@protoc_insertion_point(field_get:JoinGameAckMessage.gameInfo) - return p != nullptr ? *p : *reinterpret_cast( - &::_NetGameInfo_default_instance_); -} -inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { - // @@protoc_insertion_point(field_release:JoinGameAckMessage.gameInfo) - _has_bits_[0] &= ~0x00000001u; - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = nullptr; - return temp; + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; } inline ::NetGameInfo* JoinGameAckMessage::mutable_gameinfo() { - _has_bits_[0] |= 0x00000001u; - if (gameinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); - gameinfo_ = p; - } - // @@protoc_insertion_point(field_mutable:JoinGameAckMessage.gameInfo) + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; return gameinfo_; } -inline void JoinGameAckMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameinfo_; - } - if (gameinfo) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameinfo = ::google::protobuf::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) +inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; } // optional bool spectateOnly = 4; inline bool JoinGameAckMessage::has_spectateonly() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void JoinGameAckMessage::clear_spectateonly() { - spectateonly_ = false; +inline void JoinGameAckMessage::set_has_spectateonly() { + _has_bits_[0] |= 0x00000008u; +} +inline void JoinGameAckMessage::clear_has_spectateonly() { _has_bits_[0] &= ~0x00000008u; } +inline void JoinGameAckMessage::clear_spectateonly() { + spectateonly_ = false; + clear_has_spectateonly(); +} inline bool JoinGameAckMessage::spectateonly() const { - // @@protoc_insertion_point(field_get:JoinGameAckMessage.spectateOnly) return spectateonly_; } inline void JoinGameAckMessage::set_spectateonly(bool value) { - _has_bits_[0] |= 0x00000008u; + set_has_spectateonly(); spectateonly_ = value; - // @@protoc_insertion_point(field_set:JoinGameAckMessage.spectateOnly) } // ------------------------------------------------------------------- @@ -17660,37 +12943,45 @@ inline void JoinGameAckMessage::set_spectateonly(bool value) { inline bool JoinGameFailedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void JoinGameFailedMessage::clear_gameid() { - gameid_ = 0u; +inline void JoinGameFailedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void JoinGameFailedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void JoinGameFailedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 JoinGameFailedMessage::gameid() const { - // @@protoc_insertion_point(field_get:JoinGameFailedMessage.gameId) return gameid_; } inline void JoinGameFailedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:JoinGameFailedMessage.gameId) } // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; inline bool JoinGameFailedMessage::has_joingamefailurereason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void JoinGameFailedMessage::clear_joingamefailurereason() { - joingamefailurereason_ = 1; +inline void JoinGameFailedMessage::set_has_joingamefailurereason() { + _has_bits_[0] |= 0x00000002u; +} +inline void JoinGameFailedMessage::clear_has_joingamefailurereason() { _has_bits_[0] &= ~0x00000002u; } +inline void JoinGameFailedMessage::clear_joingamefailurereason() { + joingamefailurereason_ = 1; + clear_has_joingamefailurereason(); +} inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::joingamefailurereason() const { - // @@protoc_insertion_point(field_get:JoinGameFailedMessage.joinGameFailureReason) return static_cast< ::JoinGameFailedMessage_JoinGameFailureReason >(joingamefailurereason_); } inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { - assert(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)); + set_has_joingamefailurereason(); joingamefailurereason_ = value; - // @@protoc_insertion_point(field_set:JoinGameFailedMessage.joinGameFailureReason) } // ------------------------------------------------------------------- @@ -17701,54 +12992,66 @@ inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMes inline bool GamePlayerJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GamePlayerJoinedMessage::clear_gameid() { - gameid_ = 0u; +inline void GamePlayerJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GamePlayerJoinedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GamePlayerJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GamePlayerJoinedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.gameId) return gameid_; } inline void GamePlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.gameId) } // required uint32 playerId = 2; inline bool GamePlayerJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GamePlayerJoinedMessage::clear_playerid() { - playerid_ = 0u; +inline void GamePlayerJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GamePlayerJoinedMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GamePlayerJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GamePlayerJoinedMessage::playerid() const { - // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.playerId) return playerid_; } inline void GamePlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.playerId) } // required bool isGameAdmin = 3; inline bool GamePlayerJoinedMessage::has_isgameadmin() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GamePlayerJoinedMessage::clear_isgameadmin() { - isgameadmin_ = false; +inline void GamePlayerJoinedMessage::set_has_isgameadmin() { + _has_bits_[0] |= 0x00000004u; +} +inline void GamePlayerJoinedMessage::clear_has_isgameadmin() { _has_bits_[0] &= ~0x00000004u; } +inline void GamePlayerJoinedMessage::clear_isgameadmin() { + isgameadmin_ = false; + clear_has_isgameadmin(); +} inline bool GamePlayerJoinedMessage::isgameadmin() const { - // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.isGameAdmin) return isgameadmin_; } inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_isgameadmin(); isgameadmin_ = value; - // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.isGameAdmin) } // ------------------------------------------------------------------- @@ -17759,55 +13062,67 @@ inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { inline bool GamePlayerLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GamePlayerLeftMessage::clear_gameid() { - gameid_ = 0u; +inline void GamePlayerLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GamePlayerLeftMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GamePlayerLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GamePlayerLeftMessage::gameid() const { - // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.gameId) return gameid_; } inline void GamePlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gameId) } // required uint32 playerId = 2; inline bool GamePlayerLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GamePlayerLeftMessage::clear_playerid() { - playerid_ = 0u; +inline void GamePlayerLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GamePlayerLeftMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GamePlayerLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GamePlayerLeftMessage::playerid() const { - // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.playerId) return playerid_; } inline void GamePlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.playerId) } // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; inline bool GamePlayerLeftMessage::has_gameplayerleftreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GamePlayerLeftMessage::clear_gameplayerleftreason() { - gameplayerleftreason_ = 0; +inline void GamePlayerLeftMessage::set_has_gameplayerleftreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void GamePlayerLeftMessage::clear_has_gameplayerleftreason() { _has_bits_[0] &= ~0x00000004u; } +inline void GamePlayerLeftMessage::clear_gameplayerleftreason() { + gameplayerleftreason_ = 0; + clear_has_gameplayerleftreason(); +} inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gameplayerleftreason() const { - // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.gamePlayerLeftReason) return static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(gameplayerleftreason_); } inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { - assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - _has_bits_[0] |= 0x00000004u; + GOOGLE_DCHECK(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); + set_has_gameplayerleftreason(); gameplayerleftreason_ = value; - // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gamePlayerLeftReason) } // ------------------------------------------------------------------- @@ -17818,36 +13133,44 @@ inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMess inline bool GameSpectatorJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameSpectatorJoinedMessage::clear_gameid() { - gameid_ = 0u; +inline void GameSpectatorJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameSpectatorJoinedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameSpectatorJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameSpectatorJoinedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameSpectatorJoinedMessage.gameId) return gameid_; } inline void GameSpectatorJoinedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.gameId) } // required uint32 playerId = 2; inline bool GameSpectatorJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameSpectatorJoinedMessage::clear_playerid() { - playerid_ = 0u; +inline void GameSpectatorJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameSpectatorJoinedMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameSpectatorJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameSpectatorJoinedMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameSpectatorJoinedMessage.playerId) return playerid_; } inline void GameSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.playerId) } // ------------------------------------------------------------------- @@ -17858,55 +13181,67 @@ inline void GameSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 inline bool GameSpectatorLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameSpectatorLeftMessage::clear_gameid() { - gameid_ = 0u; +inline void GameSpectatorLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameSpectatorLeftMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameSpectatorLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameSpectatorLeftMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.gameId) return gameid_; } inline void GameSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameId) } // required uint32 playerId = 2; inline bool GameSpectatorLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameSpectatorLeftMessage::clear_playerid() { - playerid_ = 0u; +inline void GameSpectatorLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameSpectatorLeftMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameSpectatorLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameSpectatorLeftMessage::playerid() const { - // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.playerId) return playerid_; } inline void GameSpectatorLeftMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.playerId) } // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; inline bool GameSpectatorLeftMessage::has_gamespectatorleftreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameSpectatorLeftMessage::clear_gamespectatorleftreason() { - gamespectatorleftreason_ = 0; +inline void GameSpectatorLeftMessage::set_has_gamespectatorleftreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameSpectatorLeftMessage::clear_has_gamespectatorleftreason() { _has_bits_[0] &= ~0x00000004u; } +inline void GameSpectatorLeftMessage::clear_gamespectatorleftreason() { + gamespectatorleftreason_ = 0; + clear_has_gamespectatorleftreason(); +} inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::gamespectatorleftreason() const { - // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.gameSpectatorLeftReason) return static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(gamespectatorleftreason_); } inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { - assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - _has_bits_[0] |= 0x00000004u; + GOOGLE_DCHECK(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); + set_has_gamespectatorleftreason(); gamespectatorleftreason_ = value; - // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameSpectatorLeftReason) } // ------------------------------------------------------------------- @@ -17917,36 +13252,44 @@ inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLe inline bool GameAdminChangedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameAdminChangedMessage::clear_gameid() { - gameid_ = 0u; +inline void GameAdminChangedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameAdminChangedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameAdminChangedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameAdminChangedMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameAdminChangedMessage.gameId) return gameid_; } inline void GameAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameAdminChangedMessage.gameId) } // required uint32 newAdminPlayerId = 2; inline bool GameAdminChangedMessage::has_newadminplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameAdminChangedMessage::clear_newadminplayerid() { - newadminplayerid_ = 0u; +inline void GameAdminChangedMessage::set_has_newadminplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameAdminChangedMessage::clear_has_newadminplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameAdminChangedMessage::clear_newadminplayerid() { + newadminplayerid_ = 0u; + clear_has_newadminplayerid(); +} inline ::google::protobuf::uint32 GameAdminChangedMessage::newadminplayerid() const { - // @@protoc_insertion_point(field_get:GameAdminChangedMessage.newAdminPlayerId) return newadminplayerid_; } inline void GameAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_newadminplayerid(); newadminplayerid_ = value; - // @@protoc_insertion_point(field_set:GameAdminChangedMessage.newAdminPlayerId) } // ------------------------------------------------------------------- @@ -17957,37 +13300,45 @@ inline void GameAdminChangedMessage::set_newadminplayerid(::google::protobuf::ui inline bool RemovedFromGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RemovedFromGameMessage::clear_gameid() { - gameid_ = 0u; +inline void RemovedFromGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RemovedFromGameMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void RemovedFromGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 RemovedFromGameMessage::gameid() const { - // @@protoc_insertion_point(field_get:RemovedFromGameMessage.gameId) return gameid_; } inline void RemovedFromGameMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:RemovedFromGameMessage.gameId) } // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; inline bool RemovedFromGameMessage::has_removedfromgamereason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RemovedFromGameMessage::clear_removedfromgamereason() { - removedfromgamereason_ = 0; +inline void RemovedFromGameMessage::set_has_removedfromgamereason() { + _has_bits_[0] |= 0x00000002u; +} +inline void RemovedFromGameMessage::clear_has_removedfromgamereason() { _has_bits_[0] &= ~0x00000002u; } +inline void RemovedFromGameMessage::clear_removedfromgamereason() { + removedfromgamereason_ = 0; + clear_has_removedfromgamereason(); +} inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedfromgamereason() const { - // @@protoc_insertion_point(field_get:RemovedFromGameMessage.removedFromGameReason) return static_cast< ::RemovedFromGameMessage_RemovedFromGameReason >(removedfromgamereason_); } inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { - assert(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)); + set_has_removedfromgamereason(); removedfromgamereason_ = value; - // @@protoc_insertion_point(field_set:RemovedFromGameMessage.removedFromGameReason) } // ------------------------------------------------------------------- @@ -17998,36 +13349,44 @@ inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameM inline bool KickPlayerRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void KickPlayerRequestMessage::clear_gameid() { - gameid_ = 0u; +inline void KickPlayerRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void KickPlayerRequestMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void KickPlayerRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 KickPlayerRequestMessage::gameid() const { - // @@protoc_insertion_point(field_get:KickPlayerRequestMessage.gameId) return gameid_; } inline void KickPlayerRequestMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.gameId) } // required uint32 playerId = 2; inline bool KickPlayerRequestMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void KickPlayerRequestMessage::clear_playerid() { - playerid_ = 0u; +inline void KickPlayerRequestMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void KickPlayerRequestMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void KickPlayerRequestMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 KickPlayerRequestMessage::playerid() const { - // @@protoc_insertion_point(field_get:KickPlayerRequestMessage.playerId) return playerid_; } inline void KickPlayerRequestMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.playerId) } // ------------------------------------------------------------------- @@ -18038,18 +13397,22 @@ inline void KickPlayerRequestMessage::set_playerid(::google::protobuf::uint32 va inline bool LeaveGameRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void LeaveGameRequestMessage::clear_gameid() { - gameid_ = 0u; +inline void LeaveGameRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void LeaveGameRequestMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void LeaveGameRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 LeaveGameRequestMessage::gameid() const { - // @@protoc_insertion_point(field_get:LeaveGameRequestMessage.gameId) return gameid_; } inline void LeaveGameRequestMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:LeaveGameRequestMessage.gameId) } // ------------------------------------------------------------------- @@ -18060,36 +13423,44 @@ inline void LeaveGameRequestMessage::set_gameid(::google::protobuf::uint32 value inline bool InvitePlayerToGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InvitePlayerToGameMessage::clear_gameid() { - gameid_ = 0u; +inline void InvitePlayerToGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InvitePlayerToGameMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void InvitePlayerToGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 InvitePlayerToGameMessage::gameid() const { - // @@protoc_insertion_point(field_get:InvitePlayerToGameMessage.gameId) return gameid_; } inline void InvitePlayerToGameMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.gameId) } // required uint32 playerId = 2; inline bool InvitePlayerToGameMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void InvitePlayerToGameMessage::clear_playerid() { - playerid_ = 0u; +inline void InvitePlayerToGameMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void InvitePlayerToGameMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void InvitePlayerToGameMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 InvitePlayerToGameMessage::playerid() const { - // @@protoc_insertion_point(field_get:InvitePlayerToGameMessage.playerId) return playerid_; } inline void InvitePlayerToGameMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.playerId) } // ------------------------------------------------------------------- @@ -18100,54 +13471,66 @@ inline void InvitePlayerToGameMessage::set_playerid(::google::protobuf::uint32 v inline bool InviteNotifyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InviteNotifyMessage::clear_gameid() { - gameid_ = 0u; +inline void InviteNotifyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InviteNotifyMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void InviteNotifyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 InviteNotifyMessage::gameid() const { - // @@protoc_insertion_point(field_get:InviteNotifyMessage.gameId) return gameid_; } inline void InviteNotifyMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:InviteNotifyMessage.gameId) } // required uint32 playerIdWho = 2; inline bool InviteNotifyMessage::has_playeridwho() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void InviteNotifyMessage::clear_playeridwho() { - playeridwho_ = 0u; +inline void InviteNotifyMessage::set_has_playeridwho() { + _has_bits_[0] |= 0x00000002u; +} +inline void InviteNotifyMessage::clear_has_playeridwho() { _has_bits_[0] &= ~0x00000002u; } +inline void InviteNotifyMessage::clear_playeridwho() { + playeridwho_ = 0u; + clear_has_playeridwho(); +} inline ::google::protobuf::uint32 InviteNotifyMessage::playeridwho() const { - // @@protoc_insertion_point(field_get:InviteNotifyMessage.playerIdWho) return playeridwho_; } inline void InviteNotifyMessage::set_playeridwho(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playeridwho(); playeridwho_ = value; - // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdWho) } // required uint32 playerIdByWhom = 3; inline bool InviteNotifyMessage::has_playeridbywhom() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void InviteNotifyMessage::clear_playeridbywhom() { - playeridbywhom_ = 0u; +inline void InviteNotifyMessage::set_has_playeridbywhom() { + _has_bits_[0] |= 0x00000004u; +} +inline void InviteNotifyMessage::clear_has_playeridbywhom() { _has_bits_[0] &= ~0x00000004u; } +inline void InviteNotifyMessage::clear_playeridbywhom() { + playeridbywhom_ = 0u; + clear_has_playeridbywhom(); +} inline ::google::protobuf::uint32 InviteNotifyMessage::playeridbywhom() const { - // @@protoc_insertion_point(field_get:InviteNotifyMessage.playerIdByWhom) return playeridbywhom_; } inline void InviteNotifyMessage::set_playeridbywhom(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_playeridbywhom(); playeridbywhom_ = value; - // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdByWhom) } // ------------------------------------------------------------------- @@ -18158,37 +13541,45 @@ inline void InviteNotifyMessage::set_playeridbywhom(::google::protobuf::uint32 v inline bool RejectGameInvitationMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejectGameInvitationMessage::clear_gameid() { - gameid_ = 0u; +inline void RejectGameInvitationMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejectGameInvitationMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void RejectGameInvitationMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 RejectGameInvitationMessage::gameid() const { - // @@protoc_insertion_point(field_get:RejectGameInvitationMessage.gameId) return gameid_; } inline void RejectGameInvitationMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.gameId) } // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; inline bool RejectGameInvitationMessage::has_myrejectreason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejectGameInvitationMessage::clear_myrejectreason() { - myrejectreason_ = 0; +inline void RejectGameInvitationMessage::set_has_myrejectreason() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejectGameInvitationMessage::clear_has_myrejectreason() { _has_bits_[0] &= ~0x00000002u; } +inline void RejectGameInvitationMessage::clear_myrejectreason() { + myrejectreason_ = 0; + clear_has_myrejectreason(); +} inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::myrejectreason() const { - // @@protoc_insertion_point(field_get:RejectGameInvitationMessage.myRejectReason) return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(myrejectreason_); } inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { - assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); + set_has_myrejectreason(); myrejectreason_ = value; - // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.myRejectReason) } // ------------------------------------------------------------------- @@ -18199,55 +13590,67 @@ inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitati inline bool RejectInvNotifyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejectInvNotifyMessage::clear_gameid() { - gameid_ = 0u; +inline void RejectInvNotifyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejectInvNotifyMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void RejectInvNotifyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 RejectInvNotifyMessage::gameid() const { - // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.gameId) return gameid_; } inline void RejectInvNotifyMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.gameId) } // required uint32 playerId = 2; inline bool RejectInvNotifyMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejectInvNotifyMessage::clear_playerid() { - playerid_ = 0u; +inline void RejectInvNotifyMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejectInvNotifyMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void RejectInvNotifyMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 RejectInvNotifyMessage::playerid() const { - // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.playerId) return playerid_; } inline void RejectInvNotifyMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerId) } // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; inline bool RejectInvNotifyMessage::has_playerrejectreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void RejectInvNotifyMessage::clear_playerrejectreason() { - playerrejectreason_ = 0; +inline void RejectInvNotifyMessage::set_has_playerrejectreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void RejectInvNotifyMessage::clear_has_playerrejectreason() { _has_bits_[0] &= ~0x00000004u; } +inline void RejectInvNotifyMessage::clear_playerrejectreason() { + playerrejectreason_ = 0; + clear_has_playerrejectreason(); +} inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::playerrejectreason() const { - // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.playerRejectReason) return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(playerrejectreason_); } inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { - assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - _has_bits_[0] |= 0x00000004u; + GOOGLE_DCHECK(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); + set_has_playerrejectreason(); playerrejectreason_ = value; - // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerRejectReason) } // ------------------------------------------------------------------- @@ -18258,55 +13661,67 @@ inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitatio inline bool StartEventMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartEventMessage::clear_gameid() { - gameid_ = 0u; +inline void StartEventMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartEventMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void StartEventMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 StartEventMessage::gameid() const { - // @@protoc_insertion_point(field_get:StartEventMessage.gameId) return gameid_; } inline void StartEventMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:StartEventMessage.gameId) } // required .StartEventMessage.StartEventType startEventType = 2; inline bool StartEventMessage::has_starteventtype() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void StartEventMessage::clear_starteventtype() { - starteventtype_ = 0; +inline void StartEventMessage::set_has_starteventtype() { + _has_bits_[0] |= 0x00000002u; +} +inline void StartEventMessage::clear_has_starteventtype() { _has_bits_[0] &= ~0x00000002u; } +inline void StartEventMessage::clear_starteventtype() { + starteventtype_ = 0; + clear_has_starteventtype(); +} inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() const { - // @@protoc_insertion_point(field_get:StartEventMessage.startEventType) return static_cast< ::StartEventMessage_StartEventType >(starteventtype_); } inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEventType value) { - assert(::StartEventMessage_StartEventType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::StartEventMessage_StartEventType_IsValid(value)); + set_has_starteventtype(); starteventtype_ = value; - // @@protoc_insertion_point(field_set:StartEventMessage.startEventType) } // optional bool fillWithComputerPlayers = 3; inline bool StartEventMessage::has_fillwithcomputerplayers() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void StartEventMessage::clear_fillwithcomputerplayers() { - fillwithcomputerplayers_ = false; +inline void StartEventMessage::set_has_fillwithcomputerplayers() { + _has_bits_[0] |= 0x00000004u; +} +inline void StartEventMessage::clear_has_fillwithcomputerplayers() { _has_bits_[0] &= ~0x00000004u; } +inline void StartEventMessage::clear_fillwithcomputerplayers() { + fillwithcomputerplayers_ = false; + clear_has_fillwithcomputerplayers(); +} inline bool StartEventMessage::fillwithcomputerplayers() const { - // @@protoc_insertion_point(field_get:StartEventMessage.fillWithComputerPlayers) return fillwithcomputerplayers_; } inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_fillwithcomputerplayers(); fillwithcomputerplayers_ = value; - // @@protoc_insertion_point(field_set:StartEventMessage.fillWithComputerPlayers) } // ------------------------------------------------------------------- @@ -18317,18 +13732,22 @@ inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { inline bool StartEventAckMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartEventAckMessage::clear_gameid() { - gameid_ = 0u; +inline void StartEventAckMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartEventAckMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void StartEventAckMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 StartEventAckMessage::gameid() const { - // @@protoc_insertion_point(field_get:StartEventAckMessage.gameId) return gameid_; } inline void StartEventAckMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:StartEventAckMessage.gameId) } // ------------------------------------------------------------------- @@ -18339,36 +13758,44 @@ inline void StartEventAckMessage::set_gameid(::google::protobuf::uint32 value) { inline bool GameStartInitialMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartInitialMessage::clear_gameid() { - gameid_ = 0u; +inline void GameStartInitialMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartInitialMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameStartInitialMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameStartInitialMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameStartInitialMessage.gameId) return gameid_; } inline void GameStartInitialMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameStartInitialMessage.gameId) } // required uint32 startDealerPlayerId = 2; inline bool GameStartInitialMessage::has_startdealerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartInitialMessage::clear_startdealerplayerid() { - startdealerplayerid_ = 0u; +inline void GameStartInitialMessage::set_has_startdealerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartInitialMessage::clear_has_startdealerplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameStartInitialMessage::clear_startdealerplayerid() { + startdealerplayerid_ = 0u; + clear_has_startdealerplayerid(); +} inline ::google::protobuf::uint32 GameStartInitialMessage::startdealerplayerid() const { - // @@protoc_insertion_point(field_get:GameStartInitialMessage.startDealerPlayerId) return startdealerplayerid_; } inline void GameStartInitialMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_startdealerplayerid(); startdealerplayerid_ = value; - // @@protoc_insertion_point(field_set:GameStartInitialMessage.startDealerPlayerId) } // repeated uint32 playerSeats = 3 [packed = true]; @@ -18379,25 +13806,20 @@ inline void GameStartInitialMessage::clear_playerseats() { playerseats_.Clear(); } inline ::google::protobuf::uint32 GameStartInitialMessage::playerseats(int index) const { - // @@protoc_insertion_point(field_get:GameStartInitialMessage.playerSeats) return playerseats_.Get(index); } inline void GameStartInitialMessage::set_playerseats(int index, ::google::protobuf::uint32 value) { playerseats_.Set(index, value); - // @@protoc_insertion_point(field_set:GameStartInitialMessage.playerSeats) } inline void GameStartInitialMessage::add_playerseats(::google::protobuf::uint32 value) { playerseats_.Add(value); - // @@protoc_insertion_point(field_add:GameStartInitialMessage.playerSeats) } inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& GameStartInitialMessage::playerseats() const { - // @@protoc_insertion_point(field_list:GameStartInitialMessage.playerSeats) return playerseats_; } inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* GameStartInitialMessage::mutable_playerseats() { - // @@protoc_insertion_point(field_mutable_list:GameStartInitialMessage.playerSeats) return &playerseats_; } @@ -18409,36 +13831,44 @@ GameStartInitialMessage::mutable_playerseats() { inline bool GameStartRejoinMessage_RejoinPlayerData::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartRejoinMessage_RejoinPlayerData::clear_playerid() { - playerid_ = 0u; +inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playerid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameStartRejoinMessage_RejoinPlayerData::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playerid() const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.RejoinPlayerData.playerId) return playerid_; } inline void GameStartRejoinMessage_RejoinPlayerData::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerId) } // required uint32 playerMoney = 2; inline bool GameStartRejoinMessage_RejoinPlayerData::has_playermoney() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartRejoinMessage_RejoinPlayerData::clear_playermoney() { - playermoney_ = 0u; +inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playermoney() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playermoney() { _has_bits_[0] &= ~0x00000002u; } +inline void GameStartRejoinMessage_RejoinPlayerData::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playermoney() const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.RejoinPlayerData.playerMoney) return playermoney_; } inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playermoney(); playermoney_ = value; - // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerMoney) } // ------------------------------------------------------------------- @@ -18449,54 +13879,66 @@ inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::google::p inline bool GameStartRejoinMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartRejoinMessage::clear_gameid() { - gameid_ = 0u; +inline void GameStartRejoinMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartRejoinMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void GameStartRejoinMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 GameStartRejoinMessage::gameid() const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.gameId) return gameid_; } inline void GameStartRejoinMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:GameStartRejoinMessage.gameId) } // required uint32 startDealerPlayerId = 2; inline bool GameStartRejoinMessage::has_startdealerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartRejoinMessage::clear_startdealerplayerid() { - startdealerplayerid_ = 0u; +inline void GameStartRejoinMessage::set_has_startdealerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartRejoinMessage::clear_has_startdealerplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void GameStartRejoinMessage::clear_startdealerplayerid() { + startdealerplayerid_ = 0u; + clear_has_startdealerplayerid(); +} inline ::google::protobuf::uint32 GameStartRejoinMessage::startdealerplayerid() const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.startDealerPlayerId) return startdealerplayerid_; } inline void GameStartRejoinMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_startdealerplayerid(); startdealerplayerid_ = value; - // @@protoc_insertion_point(field_set:GameStartRejoinMessage.startDealerPlayerId) } // required uint32 handNum = 3; inline bool GameStartRejoinMessage::has_handnum() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameStartRejoinMessage::clear_handnum() { - handnum_ = 0u; +inline void GameStartRejoinMessage::set_has_handnum() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameStartRejoinMessage::clear_has_handnum() { _has_bits_[0] &= ~0x00000004u; } +inline void GameStartRejoinMessage::clear_handnum() { + handnum_ = 0u; + clear_has_handnum(); +} inline ::google::protobuf::uint32 GameStartRejoinMessage::handnum() const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.handNum) return handnum_; } inline void GameStartRejoinMessage::set_handnum(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_handnum(); handnum_ = value; - // @@protoc_insertion_point(field_set:GameStartRejoinMessage.handNum) } // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; @@ -18506,28 +13948,23 @@ inline int GameStartRejoinMessage::rejoinplayerdata_size() const { inline void GameStartRejoinMessage::clear_rejoinplayerdata() { rejoinplayerdata_.Clear(); } -inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::mutable_rejoinplayerdata(int index) { - // @@protoc_insertion_point(field_mutable:GameStartRejoinMessage.rejoinPlayerData) - return rejoinplayerdata_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* -GameStartRejoinMessage::mutable_rejoinplayerdata() { - // @@protoc_insertion_point(field_mutable_list:GameStartRejoinMessage.rejoinPlayerData) - return &rejoinplayerdata_; -} inline const ::GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage::rejoinplayerdata(int index) const { - // @@protoc_insertion_point(field_get:GameStartRejoinMessage.rejoinPlayerData) return rejoinplayerdata_.Get(index); } +inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::mutable_rejoinplayerdata(int index) { + return rejoinplayerdata_.Mutable(index); +} inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::add_rejoinplayerdata() { - // @@protoc_insertion_point(field_add:GameStartRejoinMessage.rejoinPlayerData) return rejoinplayerdata_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& GameStartRejoinMessage::rejoinplayerdata() const { - // @@protoc_insertion_point(field_list:GameStartRejoinMessage.rejoinPlayerData) return rejoinplayerdata_; } +inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* +GameStartRejoinMessage::mutable_rejoinplayerdata() { + return &rejoinplayerdata_; +} // ------------------------------------------------------------------- @@ -18537,36 +13974,44 @@ GameStartRejoinMessage::rejoinplayerdata() const { inline bool HandStartMessage_PlainCards::has_plaincard1() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void HandStartMessage_PlainCards::clear_plaincard1() { - plaincard1_ = 0u; +inline void HandStartMessage_PlainCards::set_has_plaincard1() { + _has_bits_[0] |= 0x00000001u; +} +inline void HandStartMessage_PlainCards::clear_has_plaincard1() { _has_bits_[0] &= ~0x00000001u; } +inline void HandStartMessage_PlainCards::clear_plaincard1() { + plaincard1_ = 0u; + clear_has_plaincard1(); +} inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard1() const { - // @@protoc_insertion_point(field_get:HandStartMessage.PlainCards.plainCard1) return plaincard1_; } inline void HandStartMessage_PlainCards::set_plaincard1(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_plaincard1(); plaincard1_ = value; - // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard1) } // required uint32 plainCard2 = 2; inline bool HandStartMessage_PlainCards::has_plaincard2() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void HandStartMessage_PlainCards::clear_plaincard2() { - plaincard2_ = 0u; +inline void HandStartMessage_PlainCards::set_has_plaincard2() { + _has_bits_[0] |= 0x00000002u; +} +inline void HandStartMessage_PlainCards::clear_has_plaincard2() { _has_bits_[0] &= ~0x00000002u; } +inline void HandStartMessage_PlainCards::clear_plaincard2() { + plaincard2_ = 0u; + clear_has_plaincard2(); +} inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard2() const { - // @@protoc_insertion_point(field_get:HandStartMessage.PlainCards.plainCard2) return plaincard2_; } inline void HandStartMessage_PlainCards::set_plaincard2(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_plaincard2(); plaincard2_ = value; - // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard2) } // ------------------------------------------------------------------- @@ -18575,147 +14020,133 @@ inline void HandStartMessage_PlainCards::set_plaincard2(::google::protobuf::uint // required uint32 gameId = 1; inline bool HandStartMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void HandStartMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_gameid(); } inline ::google::protobuf::uint32 HandStartMessage::gameid() const { - // @@protoc_insertion_point(field_get:HandStartMessage.gameId) return gameid_; } inline void HandStartMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:HandStartMessage.gameId) } // optional .HandStartMessage.PlainCards plainCards = 2; inline bool HandStartMessage::has_plaincards() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void HandStartMessage::clear_plaincards() { - if (plaincards_ != nullptr) plaincards_->Clear(); +inline void HandStartMessage::set_has_plaincards() { + _has_bits_[0] |= 0x00000002u; +} +inline void HandStartMessage::clear_has_plaincards() { _has_bits_[0] &= ~0x00000002u; } +inline void HandStartMessage::clear_plaincards() { + if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); + clear_has_plaincards(); +} inline const ::HandStartMessage_PlainCards& HandStartMessage::plaincards() const { - const ::HandStartMessage_PlainCards* p = plaincards_; - // @@protoc_insertion_point(field_get:HandStartMessage.plainCards) - return p != nullptr ? *p : *reinterpret_cast( - &::_HandStartMessage_PlainCards_default_instance_); -} -inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { - // @@protoc_insertion_point(field_release:HandStartMessage.plainCards) - _has_bits_[0] &= ~0x00000002u; - ::HandStartMessage_PlainCards* temp = plaincards_; - plaincards_ = nullptr; - return temp; + return plaincards_ != NULL ? *plaincards_ : *default_instance_->plaincards_; } inline ::HandStartMessage_PlainCards* HandStartMessage::mutable_plaincards() { - _has_bits_[0] |= 0x00000002u; - if (plaincards_ == nullptr) { - auto* p = CreateMaybeMessage<::HandStartMessage_PlainCards>(GetArenaNoVirtual()); - plaincards_ = p; - } - // @@protoc_insertion_point(field_mutable:HandStartMessage.plainCards) + set_has_plaincards(); + if (plaincards_ == NULL) plaincards_ = new ::HandStartMessage_PlainCards; return plaincards_; } -inline void HandStartMessage::set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete plaincards_; - } - if (plaincards) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - plaincards = ::google::protobuf::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) +inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { + clear_has_plaincards(); + ::HandStartMessage_PlainCards* temp = plaincards_; + plaincards_ = NULL; + return temp; } // optional bytes encryptedCards = 3; inline bool HandStartMessage::has_encryptedcards() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void HandStartMessage::clear_encryptedcards() { - encryptedcards_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { + encryptedcards_->clear(); + } + clear_has_encryptedcards(); } inline const ::std::string& HandStartMessage::encryptedcards() const { - // @@protoc_insertion_point(field_get:HandStartMessage.encryptedCards) - return encryptedcards_.GetNoArena(); + return *encryptedcards_; } inline void HandStartMessage::set_encryptedcards(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - encryptedcards_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:HandStartMessage.encryptedCards) + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(value); } -#if LANG_CXX11 -inline void HandStartMessage::set_encryptedcards(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - encryptedcards_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:HandStartMessage.encryptedCards) -} -#endif inline void HandStartMessage::set_encryptedcards(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - encryptedcards_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:HandStartMessage.encryptedCards) + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(value); } inline void HandStartMessage::set_encryptedcards(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - encryptedcards_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:HandStartMessage.encryptedCards) + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(reinterpret_cast(value), size); } inline ::std::string* HandStartMessage::mutable_encryptedcards() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:HandStartMessage.encryptedCards) - return encryptedcards_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + return encryptedcards_; } inline ::std::string* HandStartMessage::release_encryptedcards() { - // @@protoc_insertion_point(field_release:HandStartMessage.encryptedCards) - if (!has_encryptedcards()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return encryptedcards_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HandStartMessage::set_allocated_encryptedcards(::std::string* encryptedcards) { - if (encryptedcards != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = encryptedcards_; + encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - encryptedcards_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encryptedcards); - // @@protoc_insertion_point(field_set_allocated:HandStartMessage.encryptedCards) } // required uint32 smallBlind = 4; inline bool HandStartMessage::has_smallblind() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void HandStartMessage::clear_smallblind() { - smallblind_ = 0u; +inline void HandStartMessage::set_has_smallblind() { + _has_bits_[0] |= 0x00000008u; +} +inline void HandStartMessage::clear_has_smallblind() { _has_bits_[0] &= ~0x00000008u; } +inline void HandStartMessage::clear_smallblind() { + smallblind_ = 0u; + clear_has_smallblind(); +} inline ::google::protobuf::uint32 HandStartMessage::smallblind() const { - // @@protoc_insertion_point(field_get:HandStartMessage.smallBlind) return smallblind_; } inline void HandStartMessage::set_smallblind(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_smallblind(); smallblind_ = value; - // @@protoc_insertion_point(field_set:HandStartMessage.smallBlind) } // repeated .NetPlayerState seatStates = 5; @@ -18725,47 +14156,46 @@ inline int HandStartMessage::seatstates_size() const { inline void HandStartMessage::clear_seatstates() { seatstates_.Clear(); } -inline ::NetPlayerState HandStartMessage::seatstates(int index) const { - // @@protoc_insertion_point(field_get:HandStartMessage.seatStates) - return static_cast< ::NetPlayerState >(seatstates_.Get(index)); +inline NetPlayerState HandStartMessage::seatstates(int index) const { + return static_cast< NetPlayerState >(seatstates_.Get(index)); } -inline void HandStartMessage::set_seatstates(int index, ::NetPlayerState value) { - assert(::NetPlayerState_IsValid(value)); +inline void HandStartMessage::set_seatstates(int index, NetPlayerState value) { + GOOGLE_DCHECK(NetPlayerState_IsValid(value)); seatstates_.Set(index, value); - // @@protoc_insertion_point(field_set:HandStartMessage.seatStates) } -inline void HandStartMessage::add_seatstates(::NetPlayerState value) { - assert(::NetPlayerState_IsValid(value)); +inline void HandStartMessage::add_seatstates(NetPlayerState value) { + GOOGLE_DCHECK(NetPlayerState_IsValid(value)); seatstates_.Add(value); - // @@protoc_insertion_point(field_add:HandStartMessage.seatStates) } inline const ::google::protobuf::RepeatedField& HandStartMessage::seatstates() const { - // @@protoc_insertion_point(field_list:HandStartMessage.seatStates) return seatstates_; } inline ::google::protobuf::RepeatedField* HandStartMessage::mutable_seatstates() { - // @@protoc_insertion_point(field_mutable_list:HandStartMessage.seatStates) return &seatstates_; } // optional uint32 dealerPlayerId = 6; inline bool HandStartMessage::has_dealerplayerid() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void HandStartMessage::clear_dealerplayerid() { dealerplayerid_ = 0u; - _has_bits_[0] &= ~0x00000010u; + clear_has_dealerplayerid(); } inline ::google::protobuf::uint32 HandStartMessage::dealerplayerid() const { - // @@protoc_insertion_point(field_get:HandStartMessage.dealerPlayerId) return dealerplayerid_; } inline void HandStartMessage::set_dealerplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_dealerplayerid(); dealerplayerid_ = value; - // @@protoc_insertion_point(field_set:HandStartMessage.dealerPlayerId) } // ------------------------------------------------------------------- @@ -18776,55 +14206,67 @@ inline void HandStartMessage::set_dealerplayerid(::google::protobuf::uint32 valu inline bool PlayersTurnMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayersTurnMessage::clear_gameid() { - gameid_ = 0u; +inline void PlayersTurnMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayersTurnMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayersTurnMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 PlayersTurnMessage::gameid() const { - // @@protoc_insertion_point(field_get:PlayersTurnMessage.gameId) return gameid_; } inline void PlayersTurnMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameId) } // required uint32 playerId = 2; inline bool PlayersTurnMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayersTurnMessage::clear_playerid() { - playerid_ = 0u; +inline void PlayersTurnMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayersTurnMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void PlayersTurnMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 PlayersTurnMessage::playerid() const { - // @@protoc_insertion_point(field_get:PlayersTurnMessage.playerId) return playerid_; } inline void PlayersTurnMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:PlayersTurnMessage.playerId) } // required .NetGameState gameState = 3; inline bool PlayersTurnMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayersTurnMessage::clear_gamestate() { - gamestate_ = 0; +inline void PlayersTurnMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayersTurnMessage::clear_has_gamestate() { _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState PlayersTurnMessage::gamestate() const { - // @@protoc_insertion_point(field_get:PlayersTurnMessage.gameState) - return static_cast< ::NetGameState >(gamestate_); +inline void PlayersTurnMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); } -inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { - assert(::NetGameState_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline NetGameState PlayersTurnMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void PlayersTurnMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); gamestate_ = value; - // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameState) } // ------------------------------------------------------------------- @@ -18835,92 +14277,112 @@ inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { inline bool MyActionRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void MyActionRequestMessage::clear_gameid() { - gameid_ = 0u; +inline void MyActionRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void MyActionRequestMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void MyActionRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 MyActionRequestMessage::gameid() const { - // @@protoc_insertion_point(field_get:MyActionRequestMessage.gameId) return gameid_; } inline void MyActionRequestMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameId) } // required uint32 handNum = 2; inline bool MyActionRequestMessage::has_handnum() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void MyActionRequestMessage::clear_handnum() { - handnum_ = 0u; +inline void MyActionRequestMessage::set_has_handnum() { + _has_bits_[0] |= 0x00000002u; +} +inline void MyActionRequestMessage::clear_has_handnum() { _has_bits_[0] &= ~0x00000002u; } +inline void MyActionRequestMessage::clear_handnum() { + handnum_ = 0u; + clear_has_handnum(); +} inline ::google::protobuf::uint32 MyActionRequestMessage::handnum() const { - // @@protoc_insertion_point(field_get:MyActionRequestMessage.handNum) return handnum_; } inline void MyActionRequestMessage::set_handnum(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_handnum(); handnum_ = value; - // @@protoc_insertion_point(field_set:MyActionRequestMessage.handNum) } // required .NetGameState gameState = 3; inline bool MyActionRequestMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void MyActionRequestMessage::clear_gamestate() { - gamestate_ = 0; +inline void MyActionRequestMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void MyActionRequestMessage::clear_has_gamestate() { _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState MyActionRequestMessage::gamestate() const { - // @@protoc_insertion_point(field_get:MyActionRequestMessage.gameState) - return static_cast< ::NetGameState >(gamestate_); +inline void MyActionRequestMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); } -inline void MyActionRequestMessage::set_gamestate(::NetGameState value) { - assert(::NetGameState_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline NetGameState MyActionRequestMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void MyActionRequestMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); gamestate_ = value; - // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameState) } // required .NetPlayerAction myAction = 4; inline bool MyActionRequestMessage::has_myaction() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void MyActionRequestMessage::clear_myaction() { - myaction_ = 0; +inline void MyActionRequestMessage::set_has_myaction() { + _has_bits_[0] |= 0x00000008u; +} +inline void MyActionRequestMessage::clear_has_myaction() { _has_bits_[0] &= ~0x00000008u; } -inline ::NetPlayerAction MyActionRequestMessage::myaction() const { - // @@protoc_insertion_point(field_get:MyActionRequestMessage.myAction) - return static_cast< ::NetPlayerAction >(myaction_); +inline void MyActionRequestMessage::clear_myaction() { + myaction_ = 0; + clear_has_myaction(); } -inline void MyActionRequestMessage::set_myaction(::NetPlayerAction value) { - assert(::NetPlayerAction_IsValid(value)); - _has_bits_[0] |= 0x00000008u; +inline NetPlayerAction MyActionRequestMessage::myaction() const { + return static_cast< NetPlayerAction >(myaction_); +} +inline void MyActionRequestMessage::set_myaction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_myaction(); myaction_ = value; - // @@protoc_insertion_point(field_set:MyActionRequestMessage.myAction) } // required uint32 myRelativeBet = 5; inline bool MyActionRequestMessage::has_myrelativebet() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void MyActionRequestMessage::clear_myrelativebet() { - myrelativebet_ = 0u; +inline void MyActionRequestMessage::set_has_myrelativebet() { + _has_bits_[0] |= 0x00000010u; +} +inline void MyActionRequestMessage::clear_has_myrelativebet() { _has_bits_[0] &= ~0x00000010u; } +inline void MyActionRequestMessage::clear_myrelativebet() { + myrelativebet_ = 0u; + clear_has_myrelativebet(); +} inline ::google::protobuf::uint32 MyActionRequestMessage::myrelativebet() const { - // @@protoc_insertion_point(field_get:MyActionRequestMessage.myRelativeBet) return myrelativebet_; } inline void MyActionRequestMessage::set_myrelativebet(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_myrelativebet(); myrelativebet_ = value; - // @@protoc_insertion_point(field_set:MyActionRequestMessage.myRelativeBet) } // ------------------------------------------------------------------- @@ -18931,93 +14393,113 @@ inline void MyActionRequestMessage::set_myrelativebet(::google::protobuf::uint32 inline bool YourActionRejectedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void YourActionRejectedMessage::clear_gameid() { - gameid_ = 0u; +inline void YourActionRejectedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void YourActionRejectedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void YourActionRejectedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 YourActionRejectedMessage::gameid() const { - // @@protoc_insertion_point(field_get:YourActionRejectedMessage.gameId) return gameid_; } inline void YourActionRejectedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameId) } // required .NetGameState gameState = 2; inline bool YourActionRejectedMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void YourActionRejectedMessage::clear_gamestate() { - gamestate_ = 0; +inline void YourActionRejectedMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000002u; +} +inline void YourActionRejectedMessage::clear_has_gamestate() { _has_bits_[0] &= ~0x00000002u; } -inline ::NetGameState YourActionRejectedMessage::gamestate() const { - // @@protoc_insertion_point(field_get:YourActionRejectedMessage.gameState) - return static_cast< ::NetGameState >(gamestate_); +inline void YourActionRejectedMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); } -inline void YourActionRejectedMessage::set_gamestate(::NetGameState value) { - assert(::NetGameState_IsValid(value)); - _has_bits_[0] |= 0x00000002u; +inline NetGameState YourActionRejectedMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void YourActionRejectedMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); gamestate_ = value; - // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameState) } // required .NetPlayerAction yourAction = 3; inline bool YourActionRejectedMessage::has_youraction() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void YourActionRejectedMessage::clear_youraction() { - youraction_ = 0; +inline void YourActionRejectedMessage::set_has_youraction() { + _has_bits_[0] |= 0x00000004u; +} +inline void YourActionRejectedMessage::clear_has_youraction() { _has_bits_[0] &= ~0x00000004u; } -inline ::NetPlayerAction YourActionRejectedMessage::youraction() const { - // @@protoc_insertion_point(field_get:YourActionRejectedMessage.yourAction) - return static_cast< ::NetPlayerAction >(youraction_); +inline void YourActionRejectedMessage::clear_youraction() { + youraction_ = 0; + clear_has_youraction(); } -inline void YourActionRejectedMessage::set_youraction(::NetPlayerAction value) { - assert(::NetPlayerAction_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline NetPlayerAction YourActionRejectedMessage::youraction() const { + return static_cast< NetPlayerAction >(youraction_); +} +inline void YourActionRejectedMessage::set_youraction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_youraction(); youraction_ = value; - // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourAction) } // required uint32 yourRelativeBet = 4; inline bool YourActionRejectedMessage::has_yourrelativebet() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void YourActionRejectedMessage::clear_yourrelativebet() { - yourrelativebet_ = 0u; +inline void YourActionRejectedMessage::set_has_yourrelativebet() { + _has_bits_[0] |= 0x00000008u; +} +inline void YourActionRejectedMessage::clear_has_yourrelativebet() { _has_bits_[0] &= ~0x00000008u; } +inline void YourActionRejectedMessage::clear_yourrelativebet() { + yourrelativebet_ = 0u; + clear_has_yourrelativebet(); +} inline ::google::protobuf::uint32 YourActionRejectedMessage::yourrelativebet() const { - // @@protoc_insertion_point(field_get:YourActionRejectedMessage.yourRelativeBet) return yourrelativebet_; } inline void YourActionRejectedMessage::set_yourrelativebet(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_yourrelativebet(); yourrelativebet_ = value; - // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourRelativeBet) } // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; inline bool YourActionRejectedMessage::has_rejectionreason() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void YourActionRejectedMessage::clear_rejectionreason() { - rejectionreason_ = 1; +inline void YourActionRejectedMessage::set_has_rejectionreason() { + _has_bits_[0] |= 0x00000010u; +} +inline void YourActionRejectedMessage::clear_has_rejectionreason() { _has_bits_[0] &= ~0x00000010u; } +inline void YourActionRejectedMessage::clear_rejectionreason() { + rejectionreason_ = 1; + clear_has_rejectionreason(); +} inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectionreason() const { - // @@protoc_insertion_point(field_get:YourActionRejectedMessage.rejectionReason) return static_cast< ::YourActionRejectedMessage_RejectionReason >(rejectionreason_); } inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { - assert(::YourActionRejectedMessage_RejectionReason_IsValid(value)); - _has_bits_[0] |= 0x00000010u; + GOOGLE_DCHECK(::YourActionRejectedMessage_RejectionReason_IsValid(value)); + set_has_rejectionreason(); rejectionreason_ = value; - // @@protoc_insertion_point(field_set:YourActionRejectedMessage.rejectionReason) } // ------------------------------------------------------------------- @@ -19028,146 +14510,178 @@ inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedM inline bool PlayersActionDoneMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayersActionDoneMessage::clear_gameid() { - gameid_ = 0u; +inline void PlayersActionDoneMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayersActionDoneMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayersActionDoneMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::gameid() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.gameId) return gameid_; } inline void PlayersActionDoneMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameId) } // required uint32 playerId = 2; inline bool PlayersActionDoneMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayersActionDoneMessage::clear_playerid() { - playerid_ = 0u; +inline void PlayersActionDoneMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayersActionDoneMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void PlayersActionDoneMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::playerid() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerId) return playerid_; } inline void PlayersActionDoneMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerId) } // required .NetGameState gameState = 3; inline bool PlayersActionDoneMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayersActionDoneMessage::clear_gamestate() { - gamestate_ = 0; +inline void PlayersActionDoneMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayersActionDoneMessage::clear_has_gamestate() { _has_bits_[0] &= ~0x00000004u; } -inline ::NetGameState PlayersActionDoneMessage::gamestate() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.gameState) - return static_cast< ::NetGameState >(gamestate_); +inline void PlayersActionDoneMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); } -inline void PlayersActionDoneMessage::set_gamestate(::NetGameState value) { - assert(::NetGameState_IsValid(value)); - _has_bits_[0] |= 0x00000004u; +inline NetGameState PlayersActionDoneMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void PlayersActionDoneMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); gamestate_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameState) } // required .NetPlayerAction playerAction = 4; inline bool PlayersActionDoneMessage::has_playeraction() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void PlayersActionDoneMessage::clear_playeraction() { - playeraction_ = 0; +inline void PlayersActionDoneMessage::set_has_playeraction() { + _has_bits_[0] |= 0x00000008u; +} +inline void PlayersActionDoneMessage::clear_has_playeraction() { _has_bits_[0] &= ~0x00000008u; } -inline ::NetPlayerAction PlayersActionDoneMessage::playeraction() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerAction) - return static_cast< ::NetPlayerAction >(playeraction_); +inline void PlayersActionDoneMessage::clear_playeraction() { + playeraction_ = 0; + clear_has_playeraction(); } -inline void PlayersActionDoneMessage::set_playeraction(::NetPlayerAction value) { - assert(::NetPlayerAction_IsValid(value)); - _has_bits_[0] |= 0x00000008u; +inline NetPlayerAction PlayersActionDoneMessage::playeraction() const { + return static_cast< NetPlayerAction >(playeraction_); +} +inline void PlayersActionDoneMessage::set_playeraction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_playeraction(); playeraction_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerAction) } // required uint32 totalPlayerBet = 5; inline bool PlayersActionDoneMessage::has_totalplayerbet() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void PlayersActionDoneMessage::clear_totalplayerbet() { - totalplayerbet_ = 0u; +inline void PlayersActionDoneMessage::set_has_totalplayerbet() { + _has_bits_[0] |= 0x00000010u; +} +inline void PlayersActionDoneMessage::clear_has_totalplayerbet() { _has_bits_[0] &= ~0x00000010u; } +inline void PlayersActionDoneMessage::clear_totalplayerbet() { + totalplayerbet_ = 0u; + clear_has_totalplayerbet(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::totalplayerbet() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.totalPlayerBet) return totalplayerbet_; } inline void PlayersActionDoneMessage::set_totalplayerbet(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_totalplayerbet(); totalplayerbet_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.totalPlayerBet) } // required uint32 playerMoney = 6; inline bool PlayersActionDoneMessage::has_playermoney() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void PlayersActionDoneMessage::clear_playermoney() { - playermoney_ = 0u; +inline void PlayersActionDoneMessage::set_has_playermoney() { + _has_bits_[0] |= 0x00000020u; +} +inline void PlayersActionDoneMessage::clear_has_playermoney() { _has_bits_[0] &= ~0x00000020u; } +inline void PlayersActionDoneMessage::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::playermoney() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerMoney) return playermoney_; } inline void PlayersActionDoneMessage::set_playermoney(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000020u; + set_has_playermoney(); playermoney_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerMoney) } // required uint32 highestSet = 7; inline bool PlayersActionDoneMessage::has_highestset() const { return (_has_bits_[0] & 0x00000040u) != 0; } -inline void PlayersActionDoneMessage::clear_highestset() { - highestset_ = 0u; +inline void PlayersActionDoneMessage::set_has_highestset() { + _has_bits_[0] |= 0x00000040u; +} +inline void PlayersActionDoneMessage::clear_has_highestset() { _has_bits_[0] &= ~0x00000040u; } +inline void PlayersActionDoneMessage::clear_highestset() { + highestset_ = 0u; + clear_has_highestset(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::highestset() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.highestSet) return highestset_; } inline void PlayersActionDoneMessage::set_highestset(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000040u; + set_has_highestset(); highestset_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.highestSet) } // required uint32 minimumRaise = 8; inline bool PlayersActionDoneMessage::has_minimumraise() const { return (_has_bits_[0] & 0x00000080u) != 0; } -inline void PlayersActionDoneMessage::clear_minimumraise() { - minimumraise_ = 0u; +inline void PlayersActionDoneMessage::set_has_minimumraise() { + _has_bits_[0] |= 0x00000080u; +} +inline void PlayersActionDoneMessage::clear_has_minimumraise() { _has_bits_[0] &= ~0x00000080u; } +inline void PlayersActionDoneMessage::clear_minimumraise() { + minimumraise_ = 0u; + clear_has_minimumraise(); +} inline ::google::protobuf::uint32 PlayersActionDoneMessage::minimumraise() const { - // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.minimumRaise) return minimumraise_; } inline void PlayersActionDoneMessage::set_minimumraise(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000080u; + set_has_minimumraise(); minimumraise_ = value; - // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.minimumRaise) } // ------------------------------------------------------------------- @@ -19178,72 +14692,88 @@ inline void PlayersActionDoneMessage::set_minimumraise(::google::protobuf::uint3 inline bool DealFlopCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealFlopCardsMessage::clear_gameid() { - gameid_ = 0u; +inline void DealFlopCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealFlopCardsMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void DealFlopCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 DealFlopCardsMessage::gameid() const { - // @@protoc_insertion_point(field_get:DealFlopCardsMessage.gameId) return gameid_; } inline void DealFlopCardsMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:DealFlopCardsMessage.gameId) } // required uint32 flopCard1 = 2; inline bool DealFlopCardsMessage::has_flopcard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealFlopCardsMessage::clear_flopcard1() { - flopcard1_ = 0u; +inline void DealFlopCardsMessage::set_has_flopcard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealFlopCardsMessage::clear_has_flopcard1() { _has_bits_[0] &= ~0x00000002u; } +inline void DealFlopCardsMessage::clear_flopcard1() { + flopcard1_ = 0u; + clear_has_flopcard1(); +} inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard1() const { - // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard1) return flopcard1_; } inline void DealFlopCardsMessage::set_flopcard1(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_flopcard1(); flopcard1_ = value; - // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard1) } // required uint32 flopCard2 = 3; inline bool DealFlopCardsMessage::has_flopcard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void DealFlopCardsMessage::clear_flopcard2() { - flopcard2_ = 0u; +inline void DealFlopCardsMessage::set_has_flopcard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void DealFlopCardsMessage::clear_has_flopcard2() { _has_bits_[0] &= ~0x00000004u; } +inline void DealFlopCardsMessage::clear_flopcard2() { + flopcard2_ = 0u; + clear_has_flopcard2(); +} inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard2() const { - // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard2) return flopcard2_; } inline void DealFlopCardsMessage::set_flopcard2(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_flopcard2(); flopcard2_ = value; - // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard2) } // required uint32 flopCard3 = 4; inline bool DealFlopCardsMessage::has_flopcard3() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void DealFlopCardsMessage::clear_flopcard3() { - flopcard3_ = 0u; +inline void DealFlopCardsMessage::set_has_flopcard3() { + _has_bits_[0] |= 0x00000008u; +} +inline void DealFlopCardsMessage::clear_has_flopcard3() { _has_bits_[0] &= ~0x00000008u; } +inline void DealFlopCardsMessage::clear_flopcard3() { + flopcard3_ = 0u; + clear_has_flopcard3(); +} inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard3() const { - // @@protoc_insertion_point(field_get:DealFlopCardsMessage.flopCard3) return flopcard3_; } inline void DealFlopCardsMessage::set_flopcard3(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_flopcard3(); flopcard3_ = value; - // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard3) } // ------------------------------------------------------------------- @@ -19254,36 +14784,44 @@ inline void DealFlopCardsMessage::set_flopcard3(::google::protobuf::uint32 value inline bool DealTurnCardMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealTurnCardMessage::clear_gameid() { - gameid_ = 0u; +inline void DealTurnCardMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealTurnCardMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void DealTurnCardMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 DealTurnCardMessage::gameid() const { - // @@protoc_insertion_point(field_get:DealTurnCardMessage.gameId) return gameid_; } inline void DealTurnCardMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:DealTurnCardMessage.gameId) } // required uint32 turnCard = 2; inline bool DealTurnCardMessage::has_turncard() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealTurnCardMessage::clear_turncard() { - turncard_ = 0u; +inline void DealTurnCardMessage::set_has_turncard() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealTurnCardMessage::clear_has_turncard() { _has_bits_[0] &= ~0x00000002u; } +inline void DealTurnCardMessage::clear_turncard() { + turncard_ = 0u; + clear_has_turncard(); +} inline ::google::protobuf::uint32 DealTurnCardMessage::turncard() const { - // @@protoc_insertion_point(field_get:DealTurnCardMessage.turnCard) return turncard_; } inline void DealTurnCardMessage::set_turncard(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_turncard(); turncard_ = value; - // @@protoc_insertion_point(field_set:DealTurnCardMessage.turnCard) } // ------------------------------------------------------------------- @@ -19294,36 +14832,44 @@ inline void DealTurnCardMessage::set_turncard(::google::protobuf::uint32 value) inline bool DealRiverCardMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealRiverCardMessage::clear_gameid() { - gameid_ = 0u; +inline void DealRiverCardMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealRiverCardMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void DealRiverCardMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 DealRiverCardMessage::gameid() const { - // @@protoc_insertion_point(field_get:DealRiverCardMessage.gameId) return gameid_; } inline void DealRiverCardMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:DealRiverCardMessage.gameId) } // required uint32 riverCard = 2; inline bool DealRiverCardMessage::has_rivercard() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealRiverCardMessage::clear_rivercard() { - rivercard_ = 0u; +inline void DealRiverCardMessage::set_has_rivercard() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealRiverCardMessage::clear_has_rivercard() { _has_bits_[0] &= ~0x00000002u; } +inline void DealRiverCardMessage::clear_rivercard() { + rivercard_ = 0u; + clear_has_rivercard(); +} inline ::google::protobuf::uint32 DealRiverCardMessage::rivercard() const { - // @@protoc_insertion_point(field_get:DealRiverCardMessage.riverCard) return rivercard_; } inline void DealRiverCardMessage::set_rivercard(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_rivercard(); rivercard_ = value; - // @@protoc_insertion_point(field_set:DealRiverCardMessage.riverCard) } // ------------------------------------------------------------------- @@ -19334,54 +14880,66 @@ inline void DealRiverCardMessage::set_rivercard(::google::protobuf::uint32 value inline bool AllInShowCardsMessage_PlayerAllIn::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AllInShowCardsMessage_PlayerAllIn::clear_playerid() { - playerid_ = 0u; +inline void AllInShowCardsMessage_PlayerAllIn::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_playerid() { _has_bits_[0] &= ~0x00000001u; } +inline void AllInShowCardsMessage_PlayerAllIn::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::playerid() const { - // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.playerId) return playerid_; } inline void AllInShowCardsMessage_PlayerAllIn::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.playerId) } // required uint32 allInCard1 = 2; inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard1() { - allincard1_ = 0u; +inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard1() { _has_bits_[0] &= ~0x00000002u; } +inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard1() { + allincard1_ = 0u; + clear_has_allincard1(); +} inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard1() const { - // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.allInCard1) return allincard1_; } inline void AllInShowCardsMessage_PlayerAllIn::set_allincard1(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_allincard1(); allincard1_ = value; - // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard1) } // required uint32 allInCard2 = 3; inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard2() { - allincard2_ = 0u; +inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard2() { _has_bits_[0] &= ~0x00000004u; } +inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard2() { + allincard2_ = 0u; + clear_has_allincard2(); +} inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard2() const { - // @@protoc_insertion_point(field_get:AllInShowCardsMessage.PlayerAllIn.allInCard2) return allincard2_; } inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_allincard2(); allincard2_ = value; - // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard2) } // ------------------------------------------------------------------- @@ -19392,18 +14950,22 @@ inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::google::protobuf inline bool AllInShowCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AllInShowCardsMessage::clear_gameid() { - gameid_ = 0u; +inline void AllInShowCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AllInShowCardsMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void AllInShowCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 AllInShowCardsMessage::gameid() const { - // @@protoc_insertion_point(field_get:AllInShowCardsMessage.gameId) return gameid_; } inline void AllInShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:AllInShowCardsMessage.gameId) } // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; @@ -19413,28 +14975,23 @@ inline int AllInShowCardsMessage::playersallin_size() const { inline void AllInShowCardsMessage::clear_playersallin() { playersallin_.Clear(); } -inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::mutable_playersallin(int index) { - // @@protoc_insertion_point(field_mutable:AllInShowCardsMessage.playersAllIn) - return playersallin_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* -AllInShowCardsMessage::mutable_playersallin() { - // @@protoc_insertion_point(field_mutable_list:AllInShowCardsMessage.playersAllIn) - return &playersallin_; -} inline const ::AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage::playersallin(int index) const { - // @@protoc_insertion_point(field_get:AllInShowCardsMessage.playersAllIn) return playersallin_.Get(index); } +inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::mutable_playersallin(int index) { + return playersallin_.Mutable(index); +} inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::add_playersallin() { - // @@protoc_insertion_point(field_add:AllInShowCardsMessage.playersAllIn) return playersallin_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& AllInShowCardsMessage::playersallin() const { - // @@protoc_insertion_point(field_list:AllInShowCardsMessage.playersAllIn) return playersallin_; } +inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* +AllInShowCardsMessage::mutable_playersallin() { + return &playersallin_; +} // ------------------------------------------------------------------- @@ -19444,18 +15001,22 @@ AllInShowCardsMessage::playersallin() const { inline bool EndOfHandShowCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfHandShowCardsMessage::clear_gameid() { - gameid_ = 0u; +inline void EndOfHandShowCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfHandShowCardsMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void EndOfHandShowCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 EndOfHandShowCardsMessage::gameid() const { - // @@protoc_insertion_point(field_get:EndOfHandShowCardsMessage.gameId) return gameid_; } inline void EndOfHandShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:EndOfHandShowCardsMessage.gameId) } // repeated .PlayerResult playerResults = 2; @@ -19465,28 +15026,23 @@ inline int EndOfHandShowCardsMessage::playerresults_size() const { inline void EndOfHandShowCardsMessage::clear_playerresults() { playerresults_.Clear(); } -inline ::PlayerResult* EndOfHandShowCardsMessage::mutable_playerresults(int index) { - // @@protoc_insertion_point(field_mutable:EndOfHandShowCardsMessage.playerResults) - return playerresults_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* -EndOfHandShowCardsMessage::mutable_playerresults() { - // @@protoc_insertion_point(field_mutable_list:EndOfHandShowCardsMessage.playerResults) - return &playerresults_; -} inline const ::PlayerResult& EndOfHandShowCardsMessage::playerresults(int index) const { - // @@protoc_insertion_point(field_get:EndOfHandShowCardsMessage.playerResults) return playerresults_.Get(index); } +inline ::PlayerResult* EndOfHandShowCardsMessage::mutable_playerresults(int index) { + return playerresults_.Mutable(index); +} inline ::PlayerResult* EndOfHandShowCardsMessage::add_playerresults() { - // @@protoc_insertion_point(field_add:EndOfHandShowCardsMessage.playerResults) return playerresults_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& EndOfHandShowCardsMessage::playerresults() const { - // @@protoc_insertion_point(field_list:EndOfHandShowCardsMessage.playerResults) return playerresults_; } +inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* +EndOfHandShowCardsMessage::mutable_playerresults() { + return &playerresults_; +} // ------------------------------------------------------------------- @@ -19496,72 +15052,88 @@ EndOfHandShowCardsMessage::playerresults() const { inline bool EndOfHandHideCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfHandHideCardsMessage::clear_gameid() { - gameid_ = 0u; +inline void EndOfHandHideCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfHandHideCardsMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void EndOfHandHideCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::gameid() const { - // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.gameId) return gameid_; } inline void EndOfHandHideCardsMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.gameId) } // required uint32 playerId = 2; inline bool EndOfHandHideCardsMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndOfHandHideCardsMessage::clear_playerid() { - playerid_ = 0u; +inline void EndOfHandHideCardsMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndOfHandHideCardsMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void EndOfHandHideCardsMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playerid() const { - // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.playerId) return playerid_; } inline void EndOfHandHideCardsMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerId) } // required uint32 moneyWon = 3; inline bool EndOfHandHideCardsMessage::has_moneywon() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void EndOfHandHideCardsMessage::clear_moneywon() { - moneywon_ = 0u; +inline void EndOfHandHideCardsMessage::set_has_moneywon() { + _has_bits_[0] |= 0x00000004u; +} +inline void EndOfHandHideCardsMessage::clear_has_moneywon() { _has_bits_[0] &= ~0x00000004u; } +inline void EndOfHandHideCardsMessage::clear_moneywon() { + moneywon_ = 0u; + clear_has_moneywon(); +} inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::moneywon() const { - // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.moneyWon) return moneywon_; } inline void EndOfHandHideCardsMessage::set_moneywon(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_moneywon(); moneywon_ = value; - // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.moneyWon) } // required uint32 playerMoney = 4; inline bool EndOfHandHideCardsMessage::has_playermoney() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void EndOfHandHideCardsMessage::clear_playermoney() { - playermoney_ = 0u; +inline void EndOfHandHideCardsMessage::set_has_playermoney() { + _has_bits_[0] |= 0x00000008u; +} +inline void EndOfHandHideCardsMessage::clear_has_playermoney() { _has_bits_[0] &= ~0x00000008u; } +inline void EndOfHandHideCardsMessage::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playermoney() const { - // @@protoc_insertion_point(field_get:EndOfHandHideCardsMessage.playerMoney) return playermoney_; } inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_playermoney(); playermoney_ = value; - // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerMoney) } // ------------------------------------------------------------------- @@ -19576,49 +15148,29 @@ inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint3 inline bool AfterHandShowCardsMessage::has_playerresult() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AfterHandShowCardsMessage::clear_playerresult() { - if (playerresult_ != nullptr) playerresult_->Clear(); +inline void AfterHandShowCardsMessage::set_has_playerresult() { + _has_bits_[0] |= 0x00000001u; +} +inline void AfterHandShowCardsMessage::clear_has_playerresult() { _has_bits_[0] &= ~0x00000001u; } +inline void AfterHandShowCardsMessage::clear_playerresult() { + if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); + clear_has_playerresult(); +} inline const ::PlayerResult& AfterHandShowCardsMessage::playerresult() const { - const ::PlayerResult* p = playerresult_; - // @@protoc_insertion_point(field_get:AfterHandShowCardsMessage.playerResult) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerResult_default_instance_); -} -inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { - // @@protoc_insertion_point(field_release:AfterHandShowCardsMessage.playerResult) - _has_bits_[0] &= ~0x00000001u; - ::PlayerResult* temp = playerresult_; - playerresult_ = nullptr; - return temp; + return playerresult_ != NULL ? *playerresult_ : *default_instance_->playerresult_; } inline ::PlayerResult* AfterHandShowCardsMessage::mutable_playerresult() { - _has_bits_[0] |= 0x00000001u; - if (playerresult_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerResult>(GetArenaNoVirtual()); - playerresult_ = p; - } - // @@protoc_insertion_point(field_mutable:AfterHandShowCardsMessage.playerResult) + set_has_playerresult(); + if (playerresult_ == NULL) playerresult_ = new ::PlayerResult; return playerresult_; } -inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult* playerresult) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playerresult_; - } - if (playerresult) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playerresult = ::google::protobuf::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) +inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { + clear_has_playerresult(); + ::PlayerResult* temp = playerresult_; + playerresult_ = NULL; + return temp; } // ------------------------------------------------------------------- @@ -19629,36 +15181,44 @@ inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult inline bool EndOfGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfGameMessage::clear_gameid() { - gameid_ = 0u; +inline void EndOfGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfGameMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void EndOfGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 EndOfGameMessage::gameid() const { - // @@protoc_insertion_point(field_get:EndOfGameMessage.gameId) return gameid_; } inline void EndOfGameMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:EndOfGameMessage.gameId) } // required uint32 winnerPlayerId = 2; inline bool EndOfGameMessage::has_winnerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndOfGameMessage::clear_winnerplayerid() { - winnerplayerid_ = 0u; +inline void EndOfGameMessage::set_has_winnerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndOfGameMessage::clear_has_winnerplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void EndOfGameMessage::clear_winnerplayerid() { + winnerplayerid_ = 0u; + clear_has_winnerplayerid(); +} inline ::google::protobuf::uint32 EndOfGameMessage::winnerplayerid() const { - // @@protoc_insertion_point(field_get:EndOfGameMessage.winnerPlayerId) return winnerplayerid_; } inline void EndOfGameMessage::set_winnerplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_winnerplayerid(); winnerplayerid_ = value; - // @@protoc_insertion_point(field_set:EndOfGameMessage.winnerPlayerId) } // ------------------------------------------------------------------- @@ -19669,36 +15229,44 @@ inline void EndOfGameMessage::set_winnerplayerid(::google::protobuf::uint32 valu inline bool PlayerIdChangedMessage::has_oldplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerIdChangedMessage::clear_oldplayerid() { - oldplayerid_ = 0u; +inline void PlayerIdChangedMessage::set_has_oldplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerIdChangedMessage::clear_has_oldplayerid() { _has_bits_[0] &= ~0x00000001u; } +inline void PlayerIdChangedMessage::clear_oldplayerid() { + oldplayerid_ = 0u; + clear_has_oldplayerid(); +} inline ::google::protobuf::uint32 PlayerIdChangedMessage::oldplayerid() const { - // @@protoc_insertion_point(field_get:PlayerIdChangedMessage.oldPlayerId) return oldplayerid_; } inline void PlayerIdChangedMessage::set_oldplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_oldplayerid(); oldplayerid_ = value; - // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.oldPlayerId) } // required uint32 newPlayerId = 2; inline bool PlayerIdChangedMessage::has_newplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerIdChangedMessage::clear_newplayerid() { - newplayerid_ = 0u; +inline void PlayerIdChangedMessage::set_has_newplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerIdChangedMessage::clear_has_newplayerid() { _has_bits_[0] &= ~0x00000002u; } +inline void PlayerIdChangedMessage::clear_newplayerid() { + newplayerid_ = 0u; + clear_has_newplayerid(); +} inline ::google::protobuf::uint32 PlayerIdChangedMessage::newplayerid() const { - // @@protoc_insertion_point(field_get:PlayerIdChangedMessage.newPlayerId) return newplayerid_; } inline void PlayerIdChangedMessage::set_newplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_newplayerid(); newplayerid_ = value; - // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.newPlayerId) } // ------------------------------------------------------------------- @@ -19709,36 +15277,44 @@ inline void PlayerIdChangedMessage::set_newplayerid(::google::protobuf::uint32 v inline bool AskKickPlayerMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AskKickPlayerMessage::clear_gameid() { - gameid_ = 0u; +inline void AskKickPlayerMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AskKickPlayerMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void AskKickPlayerMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 AskKickPlayerMessage::gameid() const { - // @@protoc_insertion_point(field_get:AskKickPlayerMessage.gameId) return gameid_; } inline void AskKickPlayerMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:AskKickPlayerMessage.gameId) } // required uint32 playerId = 2; inline bool AskKickPlayerMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AskKickPlayerMessage::clear_playerid() { - playerid_ = 0u; +inline void AskKickPlayerMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void AskKickPlayerMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void AskKickPlayerMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 AskKickPlayerMessage::playerid() const { - // @@protoc_insertion_point(field_get:AskKickPlayerMessage.playerId) return playerid_; } inline void AskKickPlayerMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:AskKickPlayerMessage.playerId) } // ------------------------------------------------------------------- @@ -19749,55 +15325,67 @@ inline void AskKickPlayerMessage::set_playerid(::google::protobuf::uint32 value) inline bool AskKickDeniedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AskKickDeniedMessage::clear_gameid() { - gameid_ = 0u; +inline void AskKickDeniedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AskKickDeniedMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void AskKickDeniedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 AskKickDeniedMessage::gameid() const { - // @@protoc_insertion_point(field_get:AskKickDeniedMessage.gameId) return gameid_; } inline void AskKickDeniedMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:AskKickDeniedMessage.gameId) } // required uint32 playerId = 2; inline bool AskKickDeniedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AskKickDeniedMessage::clear_playerid() { - playerid_ = 0u; +inline void AskKickDeniedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void AskKickDeniedMessage::clear_has_playerid() { _has_bits_[0] &= ~0x00000002u; } +inline void AskKickDeniedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} inline ::google::protobuf::uint32 AskKickDeniedMessage::playerid() const { - // @@protoc_insertion_point(field_get:AskKickDeniedMessage.playerId) return playerid_; } inline void AskKickDeniedMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:AskKickDeniedMessage.playerId) } // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; inline bool AskKickDeniedMessage::has_kickdeniedreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AskKickDeniedMessage::clear_kickdeniedreason() { - kickdeniedreason_ = 0; +inline void AskKickDeniedMessage::set_has_kickdeniedreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void AskKickDeniedMessage::clear_has_kickdeniedreason() { _has_bits_[0] &= ~0x00000004u; } +inline void AskKickDeniedMessage::clear_kickdeniedreason() { + kickdeniedreason_ = 0; + clear_has_kickdeniedreason(); +} inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedreason() const { - // @@protoc_insertion_point(field_get:AskKickDeniedMessage.kickDeniedReason) return static_cast< ::AskKickDeniedMessage_KickDeniedReason >(kickdeniedreason_); } inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { - assert(::AskKickDeniedMessage_KickDeniedReason_IsValid(value)); - _has_bits_[0] |= 0x00000004u; + GOOGLE_DCHECK(::AskKickDeniedMessage_KickDeniedReason_IsValid(value)); + set_has_kickdeniedreason(); kickdeniedreason_ = value; - // @@protoc_insertion_point(field_set:AskKickDeniedMessage.kickDeniedReason) } // ------------------------------------------------------------------- @@ -19808,108 +15396,132 @@ inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_Ki inline bool StartKickPetitionMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartKickPetitionMessage::clear_gameid() { - gameid_ = 0u; +inline void StartKickPetitionMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartKickPetitionMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void StartKickPetitionMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::gameid() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.gameId) return gameid_; } inline void StartKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.gameId) } // required uint32 petitionId = 2; inline bool StartKickPetitionMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void StartKickPetitionMessage::clear_petitionid() { - petitionid_ = 0u; +inline void StartKickPetitionMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void StartKickPetitionMessage::clear_has_petitionid() { _has_bits_[0] &= ~0x00000002u; } +inline void StartKickPetitionMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::petitionid() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.petitionId) return petitionid_; } inline void StartKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_petitionid(); petitionid_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.petitionId) } // required uint32 proposingPlayerId = 3; inline bool StartKickPetitionMessage::has_proposingplayerid() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void StartKickPetitionMessage::clear_proposingplayerid() { - proposingplayerid_ = 0u; +inline void StartKickPetitionMessage::set_has_proposingplayerid() { + _has_bits_[0] |= 0x00000004u; +} +inline void StartKickPetitionMessage::clear_has_proposingplayerid() { _has_bits_[0] &= ~0x00000004u; } +inline void StartKickPetitionMessage::clear_proposingplayerid() { + proposingplayerid_ = 0u; + clear_has_proposingplayerid(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::proposingplayerid() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.proposingPlayerId) return proposingplayerid_; } inline void StartKickPetitionMessage::set_proposingplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_proposingplayerid(); proposingplayerid_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.proposingPlayerId) } // required uint32 kickPlayerId = 4; inline bool StartKickPetitionMessage::has_kickplayerid() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void StartKickPetitionMessage::clear_kickplayerid() { - kickplayerid_ = 0u; +inline void StartKickPetitionMessage::set_has_kickplayerid() { + _has_bits_[0] |= 0x00000008u; +} +inline void StartKickPetitionMessage::clear_has_kickplayerid() { _has_bits_[0] &= ~0x00000008u; } +inline void StartKickPetitionMessage::clear_kickplayerid() { + kickplayerid_ = 0u; + clear_has_kickplayerid(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::kickplayerid() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.kickPlayerId) return kickplayerid_; } inline void StartKickPetitionMessage::set_kickplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_kickplayerid(); kickplayerid_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickPlayerId) } // required uint32 kickTimeoutSec = 5; inline bool StartKickPetitionMessage::has_kicktimeoutsec() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void StartKickPetitionMessage::clear_kicktimeoutsec() { - kicktimeoutsec_ = 0u; +inline void StartKickPetitionMessage::set_has_kicktimeoutsec() { + _has_bits_[0] |= 0x00000010u; +} +inline void StartKickPetitionMessage::clear_has_kicktimeoutsec() { _has_bits_[0] &= ~0x00000010u; } +inline void StartKickPetitionMessage::clear_kicktimeoutsec() { + kicktimeoutsec_ = 0u; + clear_has_kicktimeoutsec(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::kicktimeoutsec() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.kickTimeoutSec) return kicktimeoutsec_; } inline void StartKickPetitionMessage::set_kicktimeoutsec(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_kicktimeoutsec(); kicktimeoutsec_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickTimeoutSec) } // required uint32 numVotesNeededToKick = 6; inline bool StartKickPetitionMessage::has_numvotesneededtokick() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void StartKickPetitionMessage::clear_numvotesneededtokick() { - numvotesneededtokick_ = 0u; +inline void StartKickPetitionMessage::set_has_numvotesneededtokick() { + _has_bits_[0] |= 0x00000020u; +} +inline void StartKickPetitionMessage::clear_has_numvotesneededtokick() { _has_bits_[0] &= ~0x00000020u; } +inline void StartKickPetitionMessage::clear_numvotesneededtokick() { + numvotesneededtokick_ = 0u; + clear_has_numvotesneededtokick(); +} inline ::google::protobuf::uint32 StartKickPetitionMessage::numvotesneededtokick() const { - // @@protoc_insertion_point(field_get:StartKickPetitionMessage.numVotesNeededToKick) return numvotesneededtokick_; } inline void StartKickPetitionMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000020u; + set_has_numvotesneededtokick(); numvotesneededtokick_ = value; - // @@protoc_insertion_point(field_set:StartKickPetitionMessage.numVotesNeededToKick) } // ------------------------------------------------------------------- @@ -19920,54 +15532,66 @@ inline void StartKickPetitionMessage::set_numvotesneededtokick(::google::protobu inline bool VoteKickRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void VoteKickRequestMessage::clear_gameid() { - gameid_ = 0u; +inline void VoteKickRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void VoteKickRequestMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void VoteKickRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 VoteKickRequestMessage::gameid() const { - // @@protoc_insertion_point(field_get:VoteKickRequestMessage.gameId) return gameid_; } inline void VoteKickRequestMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:VoteKickRequestMessage.gameId) } // required uint32 petitionId = 2; inline bool VoteKickRequestMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void VoteKickRequestMessage::clear_petitionid() { - petitionid_ = 0u; +inline void VoteKickRequestMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void VoteKickRequestMessage::clear_has_petitionid() { _has_bits_[0] &= ~0x00000002u; } +inline void VoteKickRequestMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} inline ::google::protobuf::uint32 VoteKickRequestMessage::petitionid() const { - // @@protoc_insertion_point(field_get:VoteKickRequestMessage.petitionId) return petitionid_; } inline void VoteKickRequestMessage::set_petitionid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_petitionid(); petitionid_ = value; - // @@protoc_insertion_point(field_set:VoteKickRequestMessage.petitionId) } // required bool voteKick = 3; inline bool VoteKickRequestMessage::has_votekick() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void VoteKickRequestMessage::clear_votekick() { - votekick_ = false; +inline void VoteKickRequestMessage::set_has_votekick() { + _has_bits_[0] |= 0x00000004u; +} +inline void VoteKickRequestMessage::clear_has_votekick() { _has_bits_[0] &= ~0x00000004u; } +inline void VoteKickRequestMessage::clear_votekick() { + votekick_ = false; + clear_has_votekick(); +} inline bool VoteKickRequestMessage::votekick() const { - // @@protoc_insertion_point(field_get:VoteKickRequestMessage.voteKick) return votekick_; } inline void VoteKickRequestMessage::set_votekick(bool value) { - _has_bits_[0] |= 0x00000004u; + set_has_votekick(); votekick_ = value; - // @@protoc_insertion_point(field_set:VoteKickRequestMessage.voteKick) } // ------------------------------------------------------------------- @@ -19978,55 +15602,67 @@ inline void VoteKickRequestMessage::set_votekick(bool value) { inline bool VoteKickReplyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void VoteKickReplyMessage::clear_gameid() { - gameid_ = 0u; +inline void VoteKickReplyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void VoteKickReplyMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void VoteKickReplyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 VoteKickReplyMessage::gameid() const { - // @@protoc_insertion_point(field_get:VoteKickReplyMessage.gameId) return gameid_; } inline void VoteKickReplyMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:VoteKickReplyMessage.gameId) } // required uint32 petitionId = 2; inline bool VoteKickReplyMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void VoteKickReplyMessage::clear_petitionid() { - petitionid_ = 0u; +inline void VoteKickReplyMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void VoteKickReplyMessage::clear_has_petitionid() { _has_bits_[0] &= ~0x00000002u; } +inline void VoteKickReplyMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} inline ::google::protobuf::uint32 VoteKickReplyMessage::petitionid() const { - // @@protoc_insertion_point(field_get:VoteKickReplyMessage.petitionId) return petitionid_; } inline void VoteKickReplyMessage::set_petitionid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_petitionid(); petitionid_ = value; - // @@protoc_insertion_point(field_set:VoteKickReplyMessage.petitionId) } // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; inline bool VoteKickReplyMessage::has_votekickreplytype() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void VoteKickReplyMessage::clear_votekickreplytype() { - votekickreplytype_ = 0; +inline void VoteKickReplyMessage::set_has_votekickreplytype() { + _has_bits_[0] |= 0x00000004u; +} +inline void VoteKickReplyMessage::clear_has_votekickreplytype() { _has_bits_[0] &= ~0x00000004u; } +inline void VoteKickReplyMessage::clear_votekickreplytype() { + votekickreplytype_ = 0; + clear_has_votekickreplytype(); +} inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickreplytype() const { - // @@protoc_insertion_point(field_get:VoteKickReplyMessage.voteKickReplyType) return static_cast< ::VoteKickReplyMessage_VoteKickReplyType >(votekickreplytype_); } inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { - assert(::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)); - _has_bits_[0] |= 0x00000004u; + GOOGLE_DCHECK(::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)); + set_has_votekickreplytype(); votekickreplytype_ = value; - // @@protoc_insertion_point(field_set:VoteKickReplyMessage.voteKickReplyType) } // ------------------------------------------------------------------- @@ -20037,90 +15673,110 @@ inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_V inline bool KickPetitionUpdateMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void KickPetitionUpdateMessage::clear_gameid() { - gameid_ = 0u; +inline void KickPetitionUpdateMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void KickPetitionUpdateMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void KickPetitionUpdateMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 KickPetitionUpdateMessage::gameid() const { - // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.gameId) return gameid_; } inline void KickPetitionUpdateMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.gameId) } // required uint32 petitionId = 2; inline bool KickPetitionUpdateMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void KickPetitionUpdateMessage::clear_petitionid() { - petitionid_ = 0u; +inline void KickPetitionUpdateMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void KickPetitionUpdateMessage::clear_has_petitionid() { _has_bits_[0] &= ~0x00000002u; } +inline void KickPetitionUpdateMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} inline ::google::protobuf::uint32 KickPetitionUpdateMessage::petitionid() const { - // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.petitionId) return petitionid_; } inline void KickPetitionUpdateMessage::set_petitionid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_petitionid(); petitionid_ = value; - // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.petitionId) } // required uint32 numVotesAgainstKicking = 3; inline bool KickPetitionUpdateMessage::has_numvotesagainstkicking() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void KickPetitionUpdateMessage::clear_numvotesagainstkicking() { - numvotesagainstkicking_ = 0u; +inline void KickPetitionUpdateMessage::set_has_numvotesagainstkicking() { + _has_bits_[0] |= 0x00000004u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesagainstkicking() { _has_bits_[0] &= ~0x00000004u; } +inline void KickPetitionUpdateMessage::clear_numvotesagainstkicking() { + numvotesagainstkicking_ = 0u; + clear_has_numvotesagainstkicking(); +} inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesagainstkicking() const { - // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesAgainstKicking) return numvotesagainstkicking_; } inline void KickPetitionUpdateMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_numvotesagainstkicking(); numvotesagainstkicking_ = value; - // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesAgainstKicking) } // required uint32 numVotesInFavourOfKicking = 4; inline bool KickPetitionUpdateMessage::has_numvotesinfavourofkicking() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void KickPetitionUpdateMessage::clear_numvotesinfavourofkicking() { - numvotesinfavourofkicking_ = 0u; +inline void KickPetitionUpdateMessage::set_has_numvotesinfavourofkicking() { + _has_bits_[0] |= 0x00000008u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesinfavourofkicking() { _has_bits_[0] &= ~0x00000008u; } +inline void KickPetitionUpdateMessage::clear_numvotesinfavourofkicking() { + numvotesinfavourofkicking_ = 0u; + clear_has_numvotesinfavourofkicking(); +} inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesinfavourofkicking() const { - // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesInFavourOfKicking) return numvotesinfavourofkicking_; } inline void KickPetitionUpdateMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_numvotesinfavourofkicking(); numvotesinfavourofkicking_ = value; - // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesInFavourOfKicking) } // required uint32 numVotesNeededToKick = 5; inline bool KickPetitionUpdateMessage::has_numvotesneededtokick() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void KickPetitionUpdateMessage::clear_numvotesneededtokick() { - numvotesneededtokick_ = 0u; +inline void KickPetitionUpdateMessage::set_has_numvotesneededtokick() { + _has_bits_[0] |= 0x00000010u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesneededtokick() { _has_bits_[0] &= ~0x00000010u; } +inline void KickPetitionUpdateMessage::clear_numvotesneededtokick() { + numvotesneededtokick_ = 0u; + clear_has_numvotesneededtokick(); +} inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesneededtokick() const { - // @@protoc_insertion_point(field_get:KickPetitionUpdateMessage.numVotesNeededToKick) return numvotesneededtokick_; } inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_numvotesneededtokick(); numvotesneededtokick_ = value; - // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesNeededToKick) } // ------------------------------------------------------------------- @@ -20131,109 +15787,133 @@ inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::google::protob inline bool EndKickPetitionMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndKickPetitionMessage::clear_gameid() { - gameid_ = 0u; +inline void EndKickPetitionMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndKickPetitionMessage::clear_has_gameid() { _has_bits_[0] &= ~0x00000001u; } +inline void EndKickPetitionMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} inline ::google::protobuf::uint32 EndKickPetitionMessage::gameid() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.gameId) return gameid_; } inline void EndKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.gameId) } // required uint32 petitionId = 2; inline bool EndKickPetitionMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndKickPetitionMessage::clear_petitionid() { - petitionid_ = 0u; +inline void EndKickPetitionMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndKickPetitionMessage::clear_has_petitionid() { _has_bits_[0] &= ~0x00000002u; } +inline void EndKickPetitionMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} inline ::google::protobuf::uint32 EndKickPetitionMessage::petitionid() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.petitionId) return petitionid_; } inline void EndKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_petitionid(); petitionid_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionId) } // required uint32 numVotesAgainstKicking = 3; inline bool EndKickPetitionMessage::has_numvotesagainstkicking() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void EndKickPetitionMessage::clear_numvotesagainstkicking() { - numvotesagainstkicking_ = 0u; +inline void EndKickPetitionMessage::set_has_numvotesagainstkicking() { + _has_bits_[0] |= 0x00000004u; +} +inline void EndKickPetitionMessage::clear_has_numvotesagainstkicking() { _has_bits_[0] &= ~0x00000004u; } +inline void EndKickPetitionMessage::clear_numvotesagainstkicking() { + numvotesagainstkicking_ = 0u; + clear_has_numvotesagainstkicking(); +} inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesagainstkicking() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.numVotesAgainstKicking) return numvotesagainstkicking_; } inline void EndKickPetitionMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_numvotesagainstkicking(); numvotesagainstkicking_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesAgainstKicking) } // required uint32 numVotesInFavourOfKicking = 4; inline bool EndKickPetitionMessage::has_numvotesinfavourofkicking() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void EndKickPetitionMessage::clear_numvotesinfavourofkicking() { - numvotesinfavourofkicking_ = 0u; +inline void EndKickPetitionMessage::set_has_numvotesinfavourofkicking() { + _has_bits_[0] |= 0x00000008u; +} +inline void EndKickPetitionMessage::clear_has_numvotesinfavourofkicking() { _has_bits_[0] &= ~0x00000008u; } +inline void EndKickPetitionMessage::clear_numvotesinfavourofkicking() { + numvotesinfavourofkicking_ = 0u; + clear_has_numvotesinfavourofkicking(); +} inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesinfavourofkicking() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.numVotesInFavourOfKicking) return numvotesinfavourofkicking_; } inline void EndKickPetitionMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000008u; + set_has_numvotesinfavourofkicking(); numvotesinfavourofkicking_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesInFavourOfKicking) } // required uint32 resultPlayerKicked = 5; inline bool EndKickPetitionMessage::has_resultplayerkicked() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void EndKickPetitionMessage::clear_resultplayerkicked() { - resultplayerkicked_ = 0u; +inline void EndKickPetitionMessage::set_has_resultplayerkicked() { + _has_bits_[0] |= 0x00000010u; +} +inline void EndKickPetitionMessage::clear_has_resultplayerkicked() { _has_bits_[0] &= ~0x00000010u; } +inline void EndKickPetitionMessage::clear_resultplayerkicked() { + resultplayerkicked_ = 0u; + clear_has_resultplayerkicked(); +} inline ::google::protobuf::uint32 EndKickPetitionMessage::resultplayerkicked() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.resultPlayerKicked) return resultplayerkicked_; } inline void EndKickPetitionMessage::set_resultplayerkicked(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000010u; + set_has_resultplayerkicked(); resultplayerkicked_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.resultPlayerKicked) } // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; inline bool EndKickPetitionMessage::has_petitionendreason() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void EndKickPetitionMessage::clear_petitionendreason() { - petitionendreason_ = 0; +inline void EndKickPetitionMessage::set_has_petitionendreason() { + _has_bits_[0] |= 0x00000020u; +} +inline void EndKickPetitionMessage::clear_has_petitionendreason() { _has_bits_[0] &= ~0x00000020u; } +inline void EndKickPetitionMessage::clear_petitionendreason() { + petitionendreason_ = 0; + clear_has_petitionendreason(); +} inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionendreason() const { - // @@protoc_insertion_point(field_get:EndKickPetitionMessage.petitionEndReason) return static_cast< ::EndKickPetitionMessage_PetitionEndReason >(petitionendreason_); } inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { - assert(::EndKickPetitionMessage_PetitionEndReason_IsValid(value)); - _has_bits_[0] |= 0x00000020u; + GOOGLE_DCHECK(::EndKickPetitionMessage_PetitionEndReason_IsValid(value)); + set_has_petitionendreason(); petitionendreason_ = value; - // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionEndReason) } // ------------------------------------------------------------------- @@ -20242,39 +15922,47 @@ inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessa // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; inline bool StatisticsMessage_StatisticsData::has_statisticstype() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void StatisticsMessage_StatisticsData::clear_statisticstype() { statisticstype_ = 1; - _has_bits_[0] &= ~0x00000002u; + clear_has_statisticstype(); } inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statisticstype() const { - // @@protoc_insertion_point(field_get:StatisticsMessage.StatisticsData.statisticsType) return static_cast< ::StatisticsMessage_StatisticsData_StatisticsType >(statisticstype_); } inline void StatisticsMessage_StatisticsData::set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { - assert(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)); + set_has_statisticstype(); statisticstype_ = value; - // @@protoc_insertion_point(field_set:StatisticsMessage.StatisticsData.statisticsType) } // required uint32 statisticsValue = 2; inline bool StatisticsMessage_StatisticsData::has_statisticsvalue() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void StatisticsMessage_StatisticsData::clear_statisticsvalue() { statisticsvalue_ = 0u; - _has_bits_[0] &= ~0x00000001u; + clear_has_statisticsvalue(); } inline ::google::protobuf::uint32 StatisticsMessage_StatisticsData::statisticsvalue() const { - // @@protoc_insertion_point(field_get:StatisticsMessage.StatisticsData.statisticsValue) return statisticsvalue_; } inline void StatisticsMessage_StatisticsData::set_statisticsvalue(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_statisticsvalue(); statisticsvalue_ = value; - // @@protoc_insertion_point(field_set:StatisticsMessage.StatisticsData.statisticsValue) } // ------------------------------------------------------------------- @@ -20288,28 +15976,23 @@ inline int StatisticsMessage::statisticsdata_size() const { inline void StatisticsMessage::clear_statisticsdata() { statisticsdata_.Clear(); } -inline ::StatisticsMessage_StatisticsData* StatisticsMessage::mutable_statisticsdata(int index) { - // @@protoc_insertion_point(field_mutable:StatisticsMessage.statisticsData) - return statisticsdata_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* -StatisticsMessage::mutable_statisticsdata() { - // @@protoc_insertion_point(field_mutable_list:StatisticsMessage.statisticsData) - return &statisticsdata_; -} inline const ::StatisticsMessage_StatisticsData& StatisticsMessage::statisticsdata(int index) const { - // @@protoc_insertion_point(field_get:StatisticsMessage.statisticsData) return statisticsdata_.Get(index); } +inline ::StatisticsMessage_StatisticsData* StatisticsMessage::mutable_statisticsdata(int index) { + return statisticsdata_.Mutable(index); +} inline ::StatisticsMessage_StatisticsData* StatisticsMessage::add_statisticsdata() { - // @@protoc_insertion_point(field_add:StatisticsMessage.statisticsData) return statisticsdata_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& StatisticsMessage::statisticsdata() const { - // @@protoc_insertion_point(field_list:StatisticsMessage.statisticsData) return statisticsdata_; } +inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* +StatisticsMessage::mutable_statisticsdata() { + return &statisticsdata_; +} // ------------------------------------------------------------------- @@ -20317,98 +16000,104 @@ StatisticsMessage::statisticsdata() const { // optional uint32 targetGameId = 1; inline bool ChatRequestMessage::has_targetgameid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void ChatRequestMessage::clear_targetgameid() { targetgameid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_targetgameid(); } inline ::google::protobuf::uint32 ChatRequestMessage::targetgameid() const { - // @@protoc_insertion_point(field_get:ChatRequestMessage.targetGameId) return targetgameid_; } inline void ChatRequestMessage::set_targetgameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_targetgameid(); targetgameid_ = value; - // @@protoc_insertion_point(field_set:ChatRequestMessage.targetGameId) } // optional uint32 targetPlayerId = 2; inline bool ChatRequestMessage::has_targetplayerid() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void ChatRequestMessage::clear_targetplayerid() { targetplayerid_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_targetplayerid(); } inline ::google::protobuf::uint32 ChatRequestMessage::targetplayerid() const { - // @@protoc_insertion_point(field_get:ChatRequestMessage.targetPlayerId) return targetplayerid_; } inline void ChatRequestMessage::set_targetplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_targetplayerid(); targetplayerid_ = value; - // @@protoc_insertion_point(field_set:ChatRequestMessage.targetPlayerId) } // required string chatText = 3; inline bool ChatRequestMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void ChatRequestMessage::clear_chattext() { - chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); } inline const ::std::string& ChatRequestMessage::chattext() const { - // @@protoc_insertion_point(field_get:ChatRequestMessage.chatText) - return chattext_.GetNoArena(); + return *chattext_; } inline void ChatRequestMessage::set_chattext(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:ChatRequestMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } -#if LANG_CXX11 -inline void ChatRequestMessage::set_chattext(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:ChatRequestMessage.chatText) -} -#endif inline void ChatRequestMessage::set_chattext(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:ChatRequestMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } inline void ChatRequestMessage::set_chattext(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:ChatRequestMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); } inline ::std::string* ChatRequestMessage::mutable_chattext() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:ChatRequestMessage.chatText) - return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; } inline ::std::string* ChatRequestMessage::release_chattext() { - // @@protoc_insertion_point(field_release:ChatRequestMessage.chatText) - if (!has_chattext()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return chattext_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ChatRequestMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); - // @@protoc_insertion_point(field_set_allocated:ChatRequestMessage.chatText) } // ------------------------------------------------------------------- @@ -20417,117 +16106,127 @@ inline void ChatRequestMessage::set_allocated_chattext(::std::string* chattext) // optional uint32 gameId = 1; inline bool ChatMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void ChatMessage::clear_gameid() { gameid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_gameid(); } inline ::google::protobuf::uint32 ChatMessage::gameid() const { - // @@protoc_insertion_point(field_get:ChatMessage.gameId) return gameid_; } inline void ChatMessage::set_gameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_gameid(); gameid_ = value; - // @@protoc_insertion_point(field_set:ChatMessage.gameId) } // optional uint32 playerId = 2; inline bool ChatMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void ChatMessage::clear_playerid() { playerid_ = 0u; - _has_bits_[0] &= ~0x00000004u; + clear_has_playerid(); } inline ::google::protobuf::uint32 ChatMessage::playerid() const { - // @@protoc_insertion_point(field_get:ChatMessage.playerId) return playerid_; } inline void ChatMessage::set_playerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000004u; + set_has_playerid(); playerid_ = value; - // @@protoc_insertion_point(field_set:ChatMessage.playerId) } // required .ChatMessage.ChatType chatType = 3; inline bool ChatMessage::has_chattype() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void ChatMessage::clear_chattype() { chattype_ = 0; - _has_bits_[0] &= ~0x00000008u; + clear_has_chattype(); } inline ::ChatMessage_ChatType ChatMessage::chattype() const { - // @@protoc_insertion_point(field_get:ChatMessage.chatType) return static_cast< ::ChatMessage_ChatType >(chattype_); } inline void ChatMessage::set_chattype(::ChatMessage_ChatType value) { - assert(::ChatMessage_ChatType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; + GOOGLE_DCHECK(::ChatMessage_ChatType_IsValid(value)); + set_has_chattype(); chattype_ = value; - // @@protoc_insertion_point(field_set:ChatMessage.chatType) } // required string chatText = 4; inline bool ChatMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void ChatMessage::clear_chattext() { - chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); } inline const ::std::string& ChatMessage::chattext() const { - // @@protoc_insertion_point(field_get:ChatMessage.chatText) - return chattext_.GetNoArena(); + return *chattext_; } inline void ChatMessage::set_chattext(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:ChatMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } -#if LANG_CXX11 -inline void ChatMessage::set_chattext(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:ChatMessage.chatText) -} -#endif inline void ChatMessage::set_chattext(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:ChatMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } inline void ChatMessage::set_chattext(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:ChatMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); } inline ::std::string* ChatMessage::mutable_chattext() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:ChatMessage.chatText) - return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; } inline ::std::string* ChatMessage::release_chattext() { - // @@protoc_insertion_point(field_release:ChatMessage.chatText) - if (!has_chattext()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return chattext_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ChatMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); - // @@protoc_insertion_point(field_set_allocated:ChatMessage.chatText) } // ------------------------------------------------------------------- @@ -20538,60 +16237,58 @@ inline void ChatMessage::set_allocated_chattext(::std::string* chattext) { inline bool ChatRejectMessage::has_chattext() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ChatRejectMessage::clear_chattext() { - chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void ChatRejectMessage::set_has_chattext() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChatRejectMessage::clear_has_chattext() { _has_bits_[0] &= ~0x00000001u; } +inline void ChatRejectMessage::clear_chattext() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); +} inline const ::std::string& ChatRejectMessage::chattext() const { - // @@protoc_insertion_point(field_get:ChatRejectMessage.chatText) - return chattext_.GetNoArena(); + return *chattext_; } inline void ChatRejectMessage::set_chattext(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:ChatRejectMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } -#if LANG_CXX11 -inline void ChatRejectMessage::set_chattext(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:ChatRejectMessage.chatText) -} -#endif inline void ChatRejectMessage::set_chattext(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:ChatRejectMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); } inline void ChatRejectMessage::set_chattext(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:ChatRejectMessage.chatText) + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); } inline ::std::string* ChatRejectMessage::mutable_chattext() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:ChatRejectMessage.chatText) - return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; } inline ::std::string* ChatRejectMessage::release_chattext() { - // @@protoc_insertion_point(field_release:ChatRejectMessage.chatText) - if (!has_chattext()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return chattext_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ChatRejectMessage::set_allocated_chattext(::std::string* chattext) { - if (chattext != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); - // @@protoc_insertion_point(field_set_allocated:ChatRejectMessage.chatText) } // ------------------------------------------------------------------- @@ -20602,60 +16299,58 @@ inline void ChatRejectMessage::set_allocated_chattext(::std::string* chattext) { inline bool DialogMessage::has_notificationtext() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DialogMessage::clear_notificationtext() { - notificationtext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +inline void DialogMessage::set_has_notificationtext() { + _has_bits_[0] |= 0x00000001u; +} +inline void DialogMessage::clear_has_notificationtext() { _has_bits_[0] &= ~0x00000001u; } +inline void DialogMessage::clear_notificationtext() { + if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { + notificationtext_->clear(); + } + clear_has_notificationtext(); +} inline const ::std::string& DialogMessage::notificationtext() const { - // @@protoc_insertion_point(field_get:DialogMessage.notificationText) - return notificationtext_.GetNoArena(); + return *notificationtext_; } inline void DialogMessage::set_notificationtext(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - notificationtext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:DialogMessage.notificationText) + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(value); } -#if LANG_CXX11 -inline void DialogMessage::set_notificationtext(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - notificationtext_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:DialogMessage.notificationText) -} -#endif inline void DialogMessage::set_notificationtext(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - notificationtext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:DialogMessage.notificationText) + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(value); } inline void DialogMessage::set_notificationtext(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - notificationtext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:DialogMessage.notificationText) + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(reinterpret_cast(value), size); } inline ::std::string* DialogMessage::mutable_notificationtext() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:DialogMessage.notificationText) - return notificationtext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + return notificationtext_; } inline ::std::string* DialogMessage::release_notificationtext() { - // @@protoc_insertion_point(field_release:DialogMessage.notificationText) - if (!has_notificationtext()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return notificationtext_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DialogMessage::set_allocated_notificationtext(::std::string* notificationtext) { - if (notificationtext != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = notificationtext_; + notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - notificationtext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), notificationtext); - // @@protoc_insertion_point(field_set_allocated:DialogMessage.notificationText) } // ------------------------------------------------------------------- @@ -20666,37 +16361,45 @@ inline void DialogMessage::set_allocated_notificationtext(::std::string* notific inline bool TimeoutWarningMessage::has_timeoutreason() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void TimeoutWarningMessage::clear_timeoutreason() { - timeoutreason_ = 0; +inline void TimeoutWarningMessage::set_has_timeoutreason() { + _has_bits_[0] |= 0x00000001u; +} +inline void TimeoutWarningMessage::clear_has_timeoutreason() { _has_bits_[0] &= ~0x00000001u; } +inline void TimeoutWarningMessage::clear_timeoutreason() { + timeoutreason_ = 0; + clear_has_timeoutreason(); +} inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreason() const { - // @@protoc_insertion_point(field_get:TimeoutWarningMessage.timeoutReason) return static_cast< ::TimeoutWarningMessage_TimeoutReason >(timeoutreason_); } inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { - assert(::TimeoutWarningMessage_TimeoutReason_IsValid(value)); - _has_bits_[0] |= 0x00000001u; + GOOGLE_DCHECK(::TimeoutWarningMessage_TimeoutReason_IsValid(value)); + set_has_timeoutreason(); timeoutreason_ = value; - // @@protoc_insertion_point(field_set:TimeoutWarningMessage.timeoutReason) } // required uint32 remainingSeconds = 2; inline bool TimeoutWarningMessage::has_remainingseconds() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void TimeoutWarningMessage::clear_remainingseconds() { - remainingseconds_ = 0u; +inline void TimeoutWarningMessage::set_has_remainingseconds() { + _has_bits_[0] |= 0x00000002u; +} +inline void TimeoutWarningMessage::clear_has_remainingseconds() { _has_bits_[0] &= ~0x00000002u; } +inline void TimeoutWarningMessage::clear_remainingseconds() { + remainingseconds_ = 0u; + clear_has_remainingseconds(); +} inline ::google::protobuf::uint32 TimeoutWarningMessage::remainingseconds() const { - // @@protoc_insertion_point(field_get:TimeoutWarningMessage.remainingSeconds) return remainingseconds_; } inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_remainingseconds(); remainingseconds_ = value; - // @@protoc_insertion_point(field_set:TimeoutWarningMessage.remainingSeconds) } // ------------------------------------------------------------------- @@ -20709,80 +16412,82 @@ inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint // required uint32 reportedPlayerId = 1; inline bool ReportAvatarMessage::has_reportedplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void ReportAvatarMessage::clear_reportedplayerid() { reportedplayerid_ = 0u; - _has_bits_[0] &= ~0x00000002u; + clear_has_reportedplayerid(); } inline ::google::protobuf::uint32 ReportAvatarMessage::reportedplayerid() const { - // @@protoc_insertion_point(field_get:ReportAvatarMessage.reportedPlayerId) return reportedplayerid_; } inline void ReportAvatarMessage::set_reportedplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000002u; + set_has_reportedplayerid(); reportedplayerid_ = value; - // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedPlayerId) } // required bytes reportedAvatarHash = 2; inline bool ReportAvatarMessage::has_reportedavatarhash() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void ReportAvatarMessage::clear_reportedavatarhash() { - reportedavatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _has_bits_[0] &= ~0x00000001u; + if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_->clear(); + } + clear_has_reportedavatarhash(); } inline const ::std::string& ReportAvatarMessage::reportedavatarhash() const { - // @@protoc_insertion_point(field_get:ReportAvatarMessage.reportedAvatarHash) - return reportedavatarhash_.GetNoArena(); + return *reportedavatarhash_; } inline void ReportAvatarMessage::set_reportedavatarhash(const ::std::string& value) { - _has_bits_[0] |= 0x00000001u; - reportedavatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedAvatarHash) + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(value); } -#if LANG_CXX11 -inline void ReportAvatarMessage::set_reportedavatarhash(::std::string&& value) { - _has_bits_[0] |= 0x00000001u; - reportedavatarhash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:ReportAvatarMessage.reportedAvatarHash) -} -#endif inline void ReportAvatarMessage::set_reportedavatarhash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - reportedavatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:ReportAvatarMessage.reportedAvatarHash) + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(value); } inline void ReportAvatarMessage::set_reportedavatarhash(const void* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - reportedavatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:ReportAvatarMessage.reportedAvatarHash) + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(reinterpret_cast(value), size); } inline ::std::string* ReportAvatarMessage::mutable_reportedavatarhash() { - _has_bits_[0] |= 0x00000001u; - // @@protoc_insertion_point(field_mutable:ReportAvatarMessage.reportedAvatarHash) - return reportedavatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + return reportedavatarhash_; } inline ::std::string* ReportAvatarMessage::release_reportedavatarhash() { - // @@protoc_insertion_point(field_release:ReportAvatarMessage.reportedAvatarHash) - if (!has_reportedavatarhash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - return reportedavatarhash_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ReportAvatarMessage::set_allocated_reportedavatarhash(::std::string* reportedavatarhash) { - if (reportedavatarhash != nullptr) { - _has_bits_[0] |= 0x00000001u; + clear_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; } else { - _has_bits_[0] &= ~0x00000001u; + ::std::string* temp = reportedavatarhash_; + reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; } - reportedavatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reportedavatarhash); - // @@protoc_insertion_point(field_set_allocated:ReportAvatarMessage.reportedAvatarHash) } // ------------------------------------------------------------------- @@ -20793,37 +16498,45 @@ inline void ReportAvatarMessage::set_allocated_reportedavatarhash(::std::string* inline bool ReportAvatarAckMessage::has_reportedplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportAvatarAckMessage::clear_reportedplayerid() { - reportedplayerid_ = 0u; +inline void ReportAvatarAckMessage::set_has_reportedplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportAvatarAckMessage::clear_has_reportedplayerid() { _has_bits_[0] &= ~0x00000001u; } +inline void ReportAvatarAckMessage::clear_reportedplayerid() { + reportedplayerid_ = 0u; + clear_has_reportedplayerid(); +} inline ::google::protobuf::uint32 ReportAvatarAckMessage::reportedplayerid() const { - // @@protoc_insertion_point(field_get:ReportAvatarAckMessage.reportedPlayerId) return reportedplayerid_; } inline void ReportAvatarAckMessage::set_reportedplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_reportedplayerid(); reportedplayerid_ = value; - // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportedPlayerId) } // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; inline bool ReportAvatarAckMessage::has_reportavatarresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void ReportAvatarAckMessage::clear_reportavatarresult() { - reportavatarresult_ = 0; +inline void ReportAvatarAckMessage::set_has_reportavatarresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportAvatarAckMessage::clear_has_reportavatarresult() { _has_bits_[0] &= ~0x00000002u; } +inline void ReportAvatarAckMessage::clear_reportavatarresult() { + reportavatarresult_ = 0; + clear_has_reportavatarresult(); +} inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::reportavatarresult() const { - // @@protoc_insertion_point(field_get:ReportAvatarAckMessage.reportAvatarResult) return static_cast< ::ReportAvatarAckMessage_ReportAvatarResult >(reportavatarresult_); } inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { - assert(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)); + set_has_reportavatarresult(); reportavatarresult_ = value; - // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportAvatarResult) } // ------------------------------------------------------------------- @@ -20834,18 +16547,22 @@ inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMess inline bool ReportGameMessage::has_reportedgameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportGameMessage::clear_reportedgameid() { - reportedgameid_ = 0u; +inline void ReportGameMessage::set_has_reportedgameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportGameMessage::clear_has_reportedgameid() { _has_bits_[0] &= ~0x00000001u; } +inline void ReportGameMessage::clear_reportedgameid() { + reportedgameid_ = 0u; + clear_has_reportedgameid(); +} inline ::google::protobuf::uint32 ReportGameMessage::reportedgameid() const { - // @@protoc_insertion_point(field_get:ReportGameMessage.reportedGameId) return reportedgameid_; } inline void ReportGameMessage::set_reportedgameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_reportedgameid(); reportedgameid_ = value; - // @@protoc_insertion_point(field_set:ReportGameMessage.reportedGameId) } // ------------------------------------------------------------------- @@ -20856,37 +16573,45 @@ inline void ReportGameMessage::set_reportedgameid(::google::protobuf::uint32 val inline bool ReportGameAckMessage::has_reportedgameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportGameAckMessage::clear_reportedgameid() { - reportedgameid_ = 0u; +inline void ReportGameAckMessage::set_has_reportedgameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportGameAckMessage::clear_has_reportedgameid() { _has_bits_[0] &= ~0x00000001u; } +inline void ReportGameAckMessage::clear_reportedgameid() { + reportedgameid_ = 0u; + clear_has_reportedgameid(); +} inline ::google::protobuf::uint32 ReportGameAckMessage::reportedgameid() const { - // @@protoc_insertion_point(field_get:ReportGameAckMessage.reportedGameId) return reportedgameid_; } inline void ReportGameAckMessage::set_reportedgameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_reportedgameid(); reportedgameid_ = value; - // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportedGameId) } // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; inline bool ReportGameAckMessage::has_reportgameresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void ReportGameAckMessage::clear_reportgameresult() { - reportgameresult_ = 0; +inline void ReportGameAckMessage::set_has_reportgameresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportGameAckMessage::clear_has_reportgameresult() { _has_bits_[0] &= ~0x00000002u; } +inline void ReportGameAckMessage::clear_reportgameresult() { + reportgameresult_ = 0; + clear_has_reportgameresult(); +} inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgameresult() const { - // @@protoc_insertion_point(field_get:ReportGameAckMessage.reportGameResult) return static_cast< ::ReportGameAckMessage_ReportGameResult >(reportgameresult_); } inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { - assert(::ReportGameAckMessage_ReportGameResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::ReportGameAckMessage_ReportGameResult_IsValid(value)); + set_has_reportgameresult(); reportgameresult_ = value; - // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportGameResult) } // ------------------------------------------------------------------- @@ -20897,19 +16622,23 @@ inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_Re inline bool ErrorMessage::has_errorreason() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ErrorMessage::clear_errorreason() { - errorreason_ = 0; +inline void ErrorMessage::set_has_errorreason() { + _has_bits_[0] |= 0x00000001u; +} +inline void ErrorMessage::clear_has_errorreason() { _has_bits_[0] &= ~0x00000001u; } +inline void ErrorMessage::clear_errorreason() { + errorreason_ = 0; + clear_has_errorreason(); +} inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { - // @@protoc_insertion_point(field_get:ErrorMessage.errorReason) return static_cast< ::ErrorMessage_ErrorReason >(errorreason_); } inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { - assert(::ErrorMessage_ErrorReason_IsValid(value)); - _has_bits_[0] |= 0x00000001u; + GOOGLE_DCHECK(::ErrorMessage_ErrorReason_IsValid(value)); + set_has_errorreason(); errorreason_ = value; - // @@protoc_insertion_point(field_set:ErrorMessage.errorReason) } // ------------------------------------------------------------------- @@ -20920,18 +16649,22 @@ inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { inline bool AdminRemoveGameMessage::has_removegameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminRemoveGameMessage::clear_removegameid() { - removegameid_ = 0u; +inline void AdminRemoveGameMessage::set_has_removegameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AdminRemoveGameMessage::clear_has_removegameid() { _has_bits_[0] &= ~0x00000001u; } +inline void AdminRemoveGameMessage::clear_removegameid() { + removegameid_ = 0u; + clear_has_removegameid(); +} inline ::google::protobuf::uint32 AdminRemoveGameMessage::removegameid() const { - // @@protoc_insertion_point(field_get:AdminRemoveGameMessage.removeGameId) return removegameid_; } inline void AdminRemoveGameMessage::set_removegameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_removegameid(); removegameid_ = value; - // @@protoc_insertion_point(field_set:AdminRemoveGameMessage.removeGameId) } // ------------------------------------------------------------------- @@ -20942,37 +16675,45 @@ inline void AdminRemoveGameMessage::set_removegameid(::google::protobuf::uint32 inline bool AdminRemoveGameAckMessage::has_removegameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminRemoveGameAckMessage::clear_removegameid() { - removegameid_ = 0u; +inline void AdminRemoveGameAckMessage::set_has_removegameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AdminRemoveGameAckMessage::clear_has_removegameid() { _has_bits_[0] &= ~0x00000001u; } +inline void AdminRemoveGameAckMessage::clear_removegameid() { + removegameid_ = 0u; + clear_has_removegameid(); +} inline ::google::protobuf::uint32 AdminRemoveGameAckMessage::removegameid() const { - // @@protoc_insertion_point(field_get:AdminRemoveGameAckMessage.removeGameId) return removegameid_; } inline void AdminRemoveGameAckMessage::set_removegameid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_removegameid(); removegameid_ = value; - // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameId) } // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; inline bool AdminRemoveGameAckMessage::has_removegameresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AdminRemoveGameAckMessage::clear_removegameresult() { - removegameresult_ = 0; +inline void AdminRemoveGameAckMessage::set_has_removegameresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void AdminRemoveGameAckMessage::clear_has_removegameresult() { _has_bits_[0] &= ~0x00000002u; } +inline void AdminRemoveGameAckMessage::clear_removegameresult() { + removegameresult_ = 0; + clear_has_removegameresult(); +} inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::removegameresult() const { - // @@protoc_insertion_point(field_get:AdminRemoveGameAckMessage.removeGameResult) return static_cast< ::AdminRemoveGameAckMessage_AdminRemoveGameResult >(removegameresult_); } inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value) { - assert(::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value)); + set_has_removegameresult(); removegameresult_ = value; - // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameResult) } // ------------------------------------------------------------------- @@ -20983,18 +16724,22 @@ inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAck inline bool AdminBanPlayerMessage::has_banplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminBanPlayerMessage::clear_banplayerid() { - banplayerid_ = 0u; +inline void AdminBanPlayerMessage::set_has_banplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AdminBanPlayerMessage::clear_has_banplayerid() { _has_bits_[0] &= ~0x00000001u; } +inline void AdminBanPlayerMessage::clear_banplayerid() { + banplayerid_ = 0u; + clear_has_banplayerid(); +} inline ::google::protobuf::uint32 AdminBanPlayerMessage::banplayerid() const { - // @@protoc_insertion_point(field_get:AdminBanPlayerMessage.banPlayerId) return banplayerid_; } inline void AdminBanPlayerMessage::set_banplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_banplayerid(); banplayerid_ = value; - // @@protoc_insertion_point(field_set:AdminBanPlayerMessage.banPlayerId) } // ------------------------------------------------------------------- @@ -21005,37 +16750,45 @@ inline void AdminBanPlayerMessage::set_banplayerid(::google::protobuf::uint32 va inline bool AdminBanPlayerAckMessage::has_banplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminBanPlayerAckMessage::clear_banplayerid() { - banplayerid_ = 0u; +inline void AdminBanPlayerAckMessage::set_has_banplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AdminBanPlayerAckMessage::clear_has_banplayerid() { _has_bits_[0] &= ~0x00000001u; } +inline void AdminBanPlayerAckMessage::clear_banplayerid() { + banplayerid_ = 0u; + clear_has_banplayerid(); +} inline ::google::protobuf::uint32 AdminBanPlayerAckMessage::banplayerid() const { - // @@protoc_insertion_point(field_get:AdminBanPlayerAckMessage.banPlayerId) return banplayerid_; } inline void AdminBanPlayerAckMessage::set_banplayerid(::google::protobuf::uint32 value) { - _has_bits_[0] |= 0x00000001u; + set_has_banplayerid(); banplayerid_ = value; - // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerId) } // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; inline bool AdminBanPlayerAckMessage::has_banplayerresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AdminBanPlayerAckMessage::clear_banplayerresult() { - banplayerresult_ = 0; +inline void AdminBanPlayerAckMessage::set_has_banplayerresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void AdminBanPlayerAckMessage::clear_has_banplayerresult() { _has_bits_[0] &= ~0x00000002u; } +inline void AdminBanPlayerAckMessage::clear_banplayerresult() { + banplayerresult_ = 0; + clear_has_banplayerresult(); +} inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banplayerresult() const { - // @@protoc_insertion_point(field_get:AdminBanPlayerAckMessage.banPlayerResult) return static_cast< ::AdminBanPlayerAckMessage_AdminBanPlayerResult >(banplayerresult_); } inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value) { - assert(::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value)); - _has_bits_[0] |= 0x00000002u; + GOOGLE_DCHECK(::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value)); + set_has_banplayerresult(); banplayerresult_ = value; - // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerResult) } // ------------------------------------------------------------------- @@ -21044,4218 +16797,2379 @@ inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMes // required .PokerTHMessage.PokerTHMessageType messageType = 1; inline bool PokerTHMessage::has_messagetype() const { - return (_has_bits_[2] & 0x00020000u) != 0; + 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; } inline void PokerTHMessage::clear_messagetype() { messagetype_ = 1; - _has_bits_[2] &= ~0x00020000u; + clear_has_messagetype(); } inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { - // @@protoc_insertion_point(field_get:PokerTHMessage.messageType) return static_cast< ::PokerTHMessage_PokerTHMessageType >(messagetype_); } inline void PokerTHMessage::set_messagetype(::PokerTHMessage_PokerTHMessageType value) { - assert(::PokerTHMessage_PokerTHMessageType_IsValid(value)); - _has_bits_[2] |= 0x00020000u; + GOOGLE_DCHECK(::PokerTHMessage_PokerTHMessageType_IsValid(value)); + set_has_messagetype(); messagetype_ = value; - // @@protoc_insertion_point(field_set:PokerTHMessage.messageType) } // optional .AnnounceMessage announceMessage = 2; inline bool PokerTHMessage::has_announcemessage() const { - return (_has_bits_[0] & 0x00000001u) != 0; + 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; } inline void PokerTHMessage::clear_announcemessage() { - if (announcemessage_ != nullptr) announcemessage_->Clear(); - _has_bits_[0] &= ~0x00000001u; + if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); + clear_has_announcemessage(); } inline const ::AnnounceMessage& PokerTHMessage::announcemessage() const { - const ::AnnounceMessage* p = announcemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.announceMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AnnounceMessage_default_instance_); -} -inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.announceMessage) - _has_bits_[0] &= ~0x00000001u; - ::AnnounceMessage* temp = announcemessage_; - announcemessage_ = nullptr; - return temp; + return announcemessage_ != NULL ? *announcemessage_ : *default_instance_->announcemessage_; } inline ::AnnounceMessage* PokerTHMessage::mutable_announcemessage() { - _has_bits_[0] |= 0x00000001u; - if (announcemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AnnounceMessage>(GetArenaNoVirtual()); - announcemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.announceMessage) + set_has_announcemessage(); + if (announcemessage_ == NULL) announcemessage_ = new ::AnnounceMessage; return announcemessage_; } -inline void PokerTHMessage::set_allocated_announcemessage(::AnnounceMessage* announcemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete announcemessage_; - } - if (announcemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - announcemessage = ::google::protobuf::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) +inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { + clear_has_announcemessage(); + ::AnnounceMessage* temp = announcemessage_; + announcemessage_ = NULL; + return temp; } // optional .InitMessage initMessage = 3; inline bool PokerTHMessage::has_initmessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; + 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; } inline void PokerTHMessage::clear_initmessage() { - if (initmessage_ != nullptr) initmessage_->Clear(); - _has_bits_[0] &= ~0x00000002u; + if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); + clear_has_initmessage(); } inline const ::InitMessage& PokerTHMessage::initmessage() const { - const ::InitMessage* p = initmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.initMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_InitMessage_default_instance_); -} -inline ::InitMessage* PokerTHMessage::release_initmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.initMessage) - _has_bits_[0] &= ~0x00000002u; - ::InitMessage* temp = initmessage_; - initmessage_ = nullptr; - return temp; + return initmessage_ != NULL ? *initmessage_ : *default_instance_->initmessage_; } inline ::InitMessage* PokerTHMessage::mutable_initmessage() { - _has_bits_[0] |= 0x00000002u; - if (initmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::InitMessage>(GetArenaNoVirtual()); - initmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.initMessage) + set_has_initmessage(); + if (initmessage_ == NULL) initmessage_ = new ::InitMessage; return initmessage_; } -inline void PokerTHMessage::set_allocated_initmessage(::InitMessage* initmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete initmessage_; - } - if (initmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - initmessage = ::google::protobuf::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) +inline ::InitMessage* PokerTHMessage::release_initmessage() { + clear_has_initmessage(); + ::InitMessage* temp = initmessage_; + initmessage_ = NULL; + return temp; } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; inline bool PokerTHMessage::has_authserverchallengemessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; + 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; } inline void PokerTHMessage::clear_authserverchallengemessage() { - if (authserverchallengemessage_ != nullptr) authserverchallengemessage_->Clear(); - _has_bits_[0] &= ~0x00000004u; + if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); + clear_has_authserverchallengemessage(); } inline const ::AuthServerChallengeMessage& PokerTHMessage::authserverchallengemessage() const { - const ::AuthServerChallengeMessage* p = authserverchallengemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.authServerChallengeMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AuthServerChallengeMessage_default_instance_); -} -inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.authServerChallengeMessage) - _has_bits_[0] &= ~0x00000004u; - ::AuthServerChallengeMessage* temp = authserverchallengemessage_; - authserverchallengemessage_ = nullptr; - return temp; + return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance_->authserverchallengemessage_; } inline ::AuthServerChallengeMessage* PokerTHMessage::mutable_authserverchallengemessage() { - _has_bits_[0] |= 0x00000004u; - if (authserverchallengemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AuthServerChallengeMessage>(GetArenaNoVirtual()); - authserverchallengemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerChallengeMessage) + set_has_authserverchallengemessage(); + if (authserverchallengemessage_ == NULL) authserverchallengemessage_ = new ::AuthServerChallengeMessage; return authserverchallengemessage_; } -inline void PokerTHMessage::set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete authserverchallengemessage_; - } - if (authserverchallengemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - authserverchallengemessage = ::google::protobuf::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) +inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { + clear_has_authserverchallengemessage(); + ::AuthServerChallengeMessage* temp = authserverchallengemessage_; + authserverchallengemessage_ = NULL; + return temp; } // optional .AuthClientResponseMessage authClientResponseMessage = 5; inline bool PokerTHMessage::has_authclientresponsemessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; + 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; } inline void PokerTHMessage::clear_authclientresponsemessage() { - if (authclientresponsemessage_ != nullptr) authclientresponsemessage_->Clear(); - _has_bits_[0] &= ~0x00000008u; + if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); + clear_has_authclientresponsemessage(); } inline const ::AuthClientResponseMessage& PokerTHMessage::authclientresponsemessage() const { - const ::AuthClientResponseMessage* p = authclientresponsemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.authClientResponseMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AuthClientResponseMessage_default_instance_); -} -inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.authClientResponseMessage) - _has_bits_[0] &= ~0x00000008u; - ::AuthClientResponseMessage* temp = authclientresponsemessage_; - authclientresponsemessage_ = nullptr; - return temp; + return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance_->authclientresponsemessage_; } inline ::AuthClientResponseMessage* PokerTHMessage::mutable_authclientresponsemessage() { - _has_bits_[0] |= 0x00000008u; - if (authclientresponsemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AuthClientResponseMessage>(GetArenaNoVirtual()); - authclientresponsemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.authClientResponseMessage) + set_has_authclientresponsemessage(); + if (authclientresponsemessage_ == NULL) authclientresponsemessage_ = new ::AuthClientResponseMessage; return authclientresponsemessage_; } -inline void PokerTHMessage::set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete authclientresponsemessage_; - } - if (authclientresponsemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - authclientresponsemessage = ::google::protobuf::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) +inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { + clear_has_authclientresponsemessage(); + ::AuthClientResponseMessage* temp = authclientresponsemessage_; + authclientresponsemessage_ = NULL; + return temp; } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; inline bool PokerTHMessage::has_authserververificationmessage() const { - return (_has_bits_[0] & 0x00000010u) != 0; + 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; } inline void PokerTHMessage::clear_authserververificationmessage() { - if (authserververificationmessage_ != nullptr) authserververificationmessage_->Clear(); - _has_bits_[0] &= ~0x00000010u; + if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); + clear_has_authserververificationmessage(); } inline const ::AuthServerVerificationMessage& PokerTHMessage::authserververificationmessage() const { - const ::AuthServerVerificationMessage* p = authserververificationmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.authServerVerificationMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AuthServerVerificationMessage_default_instance_); -} -inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.authServerVerificationMessage) - _has_bits_[0] &= ~0x00000010u; - ::AuthServerVerificationMessage* temp = authserververificationmessage_; - authserververificationmessage_ = nullptr; - return temp; + return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance_->authserververificationmessage_; } inline ::AuthServerVerificationMessage* PokerTHMessage::mutable_authserververificationmessage() { - _has_bits_[0] |= 0x00000010u; - if (authserververificationmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AuthServerVerificationMessage>(GetArenaNoVirtual()); - authserververificationmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerVerificationMessage) + set_has_authserververificationmessage(); + if (authserververificationmessage_ == NULL) authserververificationmessage_ = new ::AuthServerVerificationMessage; return authserververificationmessage_; } -inline void PokerTHMessage::set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete authserververificationmessage_; - } - if (authserververificationmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - authserververificationmessage = ::google::protobuf::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) +inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { + clear_has_authserververificationmessage(); + ::AuthServerVerificationMessage* temp = authserververificationmessage_; + authserververificationmessage_ = NULL; + return temp; } // optional .InitAckMessage initAckMessage = 7; inline bool PokerTHMessage::has_initackmessage() const { - return (_has_bits_[0] & 0x00000020u) != 0; + 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; } inline void PokerTHMessage::clear_initackmessage() { - if (initackmessage_ != nullptr) initackmessage_->Clear(); - _has_bits_[0] &= ~0x00000020u; + if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); + clear_has_initackmessage(); } inline const ::InitAckMessage& PokerTHMessage::initackmessage() const { - const ::InitAckMessage* p = initackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.initAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_InitAckMessage_default_instance_); -} -inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.initAckMessage) - _has_bits_[0] &= ~0x00000020u; - ::InitAckMessage* temp = initackmessage_; - initackmessage_ = nullptr; - return temp; + return initackmessage_ != NULL ? *initackmessage_ : *default_instance_->initackmessage_; } inline ::InitAckMessage* PokerTHMessage::mutable_initackmessage() { - _has_bits_[0] |= 0x00000020u; - if (initackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::InitAckMessage>(GetArenaNoVirtual()); - initackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.initAckMessage) + set_has_initackmessage(); + if (initackmessage_ == NULL) initackmessage_ = new ::InitAckMessage; return initackmessage_; } -inline void PokerTHMessage::set_allocated_initackmessage(::InitAckMessage* initackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete initackmessage_; - } - if (initackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - initackmessage = ::google::protobuf::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) +inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { + clear_has_initackmessage(); + ::InitAckMessage* temp = initackmessage_; + initackmessage_ = NULL; + return temp; } // optional .AvatarRequestMessage avatarRequestMessage = 8; inline bool PokerTHMessage::has_avatarrequestmessage() const { - return (_has_bits_[0] & 0x00000040u) != 0; + 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; } inline void PokerTHMessage::clear_avatarrequestmessage() { - if (avatarrequestmessage_ != nullptr) avatarrequestmessage_->Clear(); - _has_bits_[0] &= ~0x00000040u; + if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); + clear_has_avatarrequestmessage(); } inline const ::AvatarRequestMessage& PokerTHMessage::avatarrequestmessage() const { - const ::AvatarRequestMessage* p = avatarrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.avatarRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AvatarRequestMessage_default_instance_); -} -inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.avatarRequestMessage) - _has_bits_[0] &= ~0x00000040u; - ::AvatarRequestMessage* temp = avatarrequestmessage_; - avatarrequestmessage_ = nullptr; - return temp; + return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance_->avatarrequestmessage_; } inline ::AvatarRequestMessage* PokerTHMessage::mutable_avatarrequestmessage() { - _has_bits_[0] |= 0x00000040u; - if (avatarrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AvatarRequestMessage>(GetArenaNoVirtual()); - avatarrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarRequestMessage) + set_has_avatarrequestmessage(); + if (avatarrequestmessage_ == NULL) avatarrequestmessage_ = new ::AvatarRequestMessage; return avatarrequestmessage_; } -inline void PokerTHMessage::set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete avatarrequestmessage_; - } - if (avatarrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - avatarrequestmessage = ::google::protobuf::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) +inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { + clear_has_avatarrequestmessage(); + ::AvatarRequestMessage* temp = avatarrequestmessage_; + avatarrequestmessage_ = NULL; + return temp; } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; inline bool PokerTHMessage::has_avatarheadermessage() const { - return (_has_bits_[0] & 0x00000080u) != 0; + 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; } inline void PokerTHMessage::clear_avatarheadermessage() { - if (avatarheadermessage_ != nullptr) avatarheadermessage_->Clear(); - _has_bits_[0] &= ~0x00000080u; + if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); + clear_has_avatarheadermessage(); } inline const ::AvatarHeaderMessage& PokerTHMessage::avatarheadermessage() const { - const ::AvatarHeaderMessage* p = avatarheadermessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.avatarHeaderMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AvatarHeaderMessage_default_instance_); -} -inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.avatarHeaderMessage) - _has_bits_[0] &= ~0x00000080u; - ::AvatarHeaderMessage* temp = avatarheadermessage_; - avatarheadermessage_ = nullptr; - return temp; + return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance_->avatarheadermessage_; } inline ::AvatarHeaderMessage* PokerTHMessage::mutable_avatarheadermessage() { - _has_bits_[0] |= 0x00000080u; - if (avatarheadermessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AvatarHeaderMessage>(GetArenaNoVirtual()); - avatarheadermessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarHeaderMessage) + set_has_avatarheadermessage(); + if (avatarheadermessage_ == NULL) avatarheadermessage_ = new ::AvatarHeaderMessage; return avatarheadermessage_; } -inline void PokerTHMessage::set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete avatarheadermessage_; - } - if (avatarheadermessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - avatarheadermessage = ::google::protobuf::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) +inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { + clear_has_avatarheadermessage(); + ::AvatarHeaderMessage* temp = avatarheadermessage_; + avatarheadermessage_ = NULL; + return temp; } // optional .AvatarDataMessage avatarDataMessage = 10; inline bool PokerTHMessage::has_avatardatamessage() const { - return (_has_bits_[0] & 0x00000100u) != 0; + 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; } inline void PokerTHMessage::clear_avatardatamessage() { - if (avatardatamessage_ != nullptr) avatardatamessage_->Clear(); - _has_bits_[0] &= ~0x00000100u; + if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); + clear_has_avatardatamessage(); } inline const ::AvatarDataMessage& PokerTHMessage::avatardatamessage() const { - const ::AvatarDataMessage* p = avatardatamessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.avatarDataMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AvatarDataMessage_default_instance_); -} -inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.avatarDataMessage) - _has_bits_[0] &= ~0x00000100u; - ::AvatarDataMessage* temp = avatardatamessage_; - avatardatamessage_ = nullptr; - return temp; + return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance_->avatardatamessage_; } inline ::AvatarDataMessage* PokerTHMessage::mutable_avatardatamessage() { - _has_bits_[0] |= 0x00000100u; - if (avatardatamessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AvatarDataMessage>(GetArenaNoVirtual()); - avatardatamessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarDataMessage) + set_has_avatardatamessage(); + if (avatardatamessage_ == NULL) avatardatamessage_ = new ::AvatarDataMessage; return avatardatamessage_; } -inline void PokerTHMessage::set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete avatardatamessage_; - } - if (avatardatamessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - avatardatamessage = ::google::protobuf::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) +inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { + clear_has_avatardatamessage(); + ::AvatarDataMessage* temp = avatardatamessage_; + avatardatamessage_ = NULL; + return temp; } // optional .AvatarEndMessage avatarEndMessage = 11; inline bool PokerTHMessage::has_avatarendmessage() const { - return (_has_bits_[0] & 0x00000200u) != 0; + 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; } inline void PokerTHMessage::clear_avatarendmessage() { - if (avatarendmessage_ != nullptr) avatarendmessage_->Clear(); - _has_bits_[0] &= ~0x00000200u; + if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); + clear_has_avatarendmessage(); } inline const ::AvatarEndMessage& PokerTHMessage::avatarendmessage() const { - const ::AvatarEndMessage* p = avatarendmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.avatarEndMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AvatarEndMessage_default_instance_); -} -inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.avatarEndMessage) - _has_bits_[0] &= ~0x00000200u; - ::AvatarEndMessage* temp = avatarendmessage_; - avatarendmessage_ = nullptr; - return temp; + return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance_->avatarendmessage_; } inline ::AvatarEndMessage* PokerTHMessage::mutable_avatarendmessage() { - _has_bits_[0] |= 0x00000200u; - if (avatarendmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AvatarEndMessage>(GetArenaNoVirtual()); - avatarendmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarEndMessage) + set_has_avatarendmessage(); + if (avatarendmessage_ == NULL) avatarendmessage_ = new ::AvatarEndMessage; return avatarendmessage_; } -inline void PokerTHMessage::set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete avatarendmessage_; - } - if (avatarendmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - avatarendmessage = ::google::protobuf::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) +inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { + clear_has_avatarendmessage(); + ::AvatarEndMessage* temp = avatarendmessage_; + avatarendmessage_ = NULL; + return temp; } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; inline bool PokerTHMessage::has_unknownavatarmessage() const { - return (_has_bits_[0] & 0x00000400u) != 0; + 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; } inline void PokerTHMessage::clear_unknownavatarmessage() { - if (unknownavatarmessage_ != nullptr) unknownavatarmessage_->Clear(); - _has_bits_[0] &= ~0x00000400u; + if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); + clear_has_unknownavatarmessage(); } inline const ::UnknownAvatarMessage& PokerTHMessage::unknownavatarmessage() const { - const ::UnknownAvatarMessage* p = unknownavatarmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.unknownAvatarMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_UnknownAvatarMessage_default_instance_); -} -inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.unknownAvatarMessage) - _has_bits_[0] &= ~0x00000400u; - ::UnknownAvatarMessage* temp = unknownavatarmessage_; - unknownavatarmessage_ = nullptr; - return temp; + return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance_->unknownavatarmessage_; } inline ::UnknownAvatarMessage* PokerTHMessage::mutable_unknownavatarmessage() { - _has_bits_[0] |= 0x00000400u; - if (unknownavatarmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::UnknownAvatarMessage>(GetArenaNoVirtual()); - unknownavatarmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.unknownAvatarMessage) + set_has_unknownavatarmessage(); + if (unknownavatarmessage_ == NULL) unknownavatarmessage_ = new ::UnknownAvatarMessage; return unknownavatarmessage_; } -inline void PokerTHMessage::set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete unknownavatarmessage_; - } - if (unknownavatarmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - unknownavatarmessage = ::google::protobuf::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) +inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { + clear_has_unknownavatarmessage(); + ::UnknownAvatarMessage* temp = unknownavatarmessage_; + unknownavatarmessage_ = NULL; + return temp; } // optional .PlayerListMessage playerListMessage = 13; inline bool PokerTHMessage::has_playerlistmessage() const { - return (_has_bits_[0] & 0x00000800u) != 0; + 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; } inline void PokerTHMessage::clear_playerlistmessage() { - if (playerlistmessage_ != nullptr) playerlistmessage_->Clear(); - _has_bits_[0] &= ~0x00000800u; + if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); + clear_has_playerlistmessage(); } inline const ::PlayerListMessage& PokerTHMessage::playerlistmessage() const { - const ::PlayerListMessage* p = playerlistmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playerListMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerListMessage_default_instance_); -} -inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playerListMessage) - _has_bits_[0] &= ~0x00000800u; - ::PlayerListMessage* temp = playerlistmessage_; - playerlistmessage_ = nullptr; - return temp; + return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance_->playerlistmessage_; } inline ::PlayerListMessage* PokerTHMessage::mutable_playerlistmessage() { - _has_bits_[0] |= 0x00000800u; - if (playerlistmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerListMessage>(GetArenaNoVirtual()); - playerlistmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerListMessage) + set_has_playerlistmessage(); + if (playerlistmessage_ == NULL) playerlistmessage_ = new ::PlayerListMessage; return playerlistmessage_; } -inline void PokerTHMessage::set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playerlistmessage_; - } - if (playerlistmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playerlistmessage = ::google::protobuf::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) +inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { + clear_has_playerlistmessage(); + ::PlayerListMessage* temp = playerlistmessage_; + playerlistmessage_ = NULL; + return temp; } // optional .GameListNewMessage gameListNewMessage = 14; inline bool PokerTHMessage::has_gamelistnewmessage() const { - return (_has_bits_[0] & 0x00001000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistnewmessage() { - if (gamelistnewmessage_ != nullptr) gamelistnewmessage_->Clear(); - _has_bits_[0] &= ~0x00001000u; + if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); + clear_has_gamelistnewmessage(); } inline const ::GameListNewMessage& PokerTHMessage::gamelistnewmessage() const { - const ::GameListNewMessage* p = gamelistnewmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListNewMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListNewMessage_default_instance_); -} -inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListNewMessage) - _has_bits_[0] &= ~0x00001000u; - ::GameListNewMessage* temp = gamelistnewmessage_; - gamelistnewmessage_ = nullptr; - return temp; + return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance_->gamelistnewmessage_; } inline ::GameListNewMessage* PokerTHMessage::mutable_gamelistnewmessage() { - _has_bits_[0] |= 0x00001000u; - if (gamelistnewmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListNewMessage>(GetArenaNoVirtual()); - gamelistnewmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListNewMessage) + set_has_gamelistnewmessage(); + if (gamelistnewmessage_ == NULL) gamelistnewmessage_ = new ::GameListNewMessage; return gamelistnewmessage_; } -inline void PokerTHMessage::set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistnewmessage_; - } - if (gamelistnewmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistnewmessage = ::google::protobuf::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) +inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { + clear_has_gamelistnewmessage(); + ::GameListNewMessage* temp = gamelistnewmessage_; + gamelistnewmessage_ = NULL; + return temp; } // optional .GameListUpdateMessage gameListUpdateMessage = 15; inline bool PokerTHMessage::has_gamelistupdatemessage() const { - return (_has_bits_[0] & 0x00002000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistupdatemessage() { - if (gamelistupdatemessage_ != nullptr) gamelistupdatemessage_->Clear(); - _has_bits_[0] &= ~0x00002000u; + if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); + clear_has_gamelistupdatemessage(); } inline const ::GameListUpdateMessage& PokerTHMessage::gamelistupdatemessage() const { - const ::GameListUpdateMessage* p = gamelistupdatemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListUpdateMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListUpdateMessage_default_instance_); -} -inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListUpdateMessage) - _has_bits_[0] &= ~0x00002000u; - ::GameListUpdateMessage* temp = gamelistupdatemessage_; - gamelistupdatemessage_ = nullptr; - return temp; + return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance_->gamelistupdatemessage_; } inline ::GameListUpdateMessage* PokerTHMessage::mutable_gamelistupdatemessage() { - _has_bits_[0] |= 0x00002000u; - if (gamelistupdatemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListUpdateMessage>(GetArenaNoVirtual()); - gamelistupdatemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListUpdateMessage) + set_has_gamelistupdatemessage(); + if (gamelistupdatemessage_ == NULL) gamelistupdatemessage_ = new ::GameListUpdateMessage; return gamelistupdatemessage_; } -inline void PokerTHMessage::set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistupdatemessage_; - } - if (gamelistupdatemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistupdatemessage = ::google::protobuf::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) +inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { + clear_has_gamelistupdatemessage(); + ::GameListUpdateMessage* temp = gamelistupdatemessage_; + gamelistupdatemessage_ = NULL; + return temp; } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; inline bool PokerTHMessage::has_gamelistplayerjoinedmessage() const { - return (_has_bits_[0] & 0x00004000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistplayerjoinedmessage() { - if (gamelistplayerjoinedmessage_ != nullptr) gamelistplayerjoinedmessage_->Clear(); - _has_bits_[0] &= ~0x00004000u; + if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); + clear_has_gamelistplayerjoinedmessage(); } inline const ::GameListPlayerJoinedMessage& PokerTHMessage::gamelistplayerjoinedmessage() const { - const ::GameListPlayerJoinedMessage* p = gamelistplayerjoinedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerJoinedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListPlayerJoinedMessage_default_instance_); -} -inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListPlayerJoinedMessage) - _has_bits_[0] &= ~0x00004000u; - ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; - gamelistplayerjoinedmessage_ = nullptr; - return temp; + return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance_->gamelistplayerjoinedmessage_; } inline ::GameListPlayerJoinedMessage* PokerTHMessage::mutable_gamelistplayerjoinedmessage() { - _has_bits_[0] |= 0x00004000u; - if (gamelistplayerjoinedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListPlayerJoinedMessage>(GetArenaNoVirtual()); - gamelistplayerjoinedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerJoinedMessage) + set_has_gamelistplayerjoinedmessage(); + if (gamelistplayerjoinedmessage_ == NULL) gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage; return gamelistplayerjoinedmessage_; } -inline void PokerTHMessage::set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistplayerjoinedmessage_; - } - if (gamelistplayerjoinedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistplayerjoinedmessage = ::google::protobuf::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) +inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { + clear_has_gamelistplayerjoinedmessage(); + ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; + gamelistplayerjoinedmessage_ = NULL; + return temp; } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; inline bool PokerTHMessage::has_gamelistplayerleftmessage() const { - return (_has_bits_[0] & 0x00008000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistplayerleftmessage() { - if (gamelistplayerleftmessage_ != nullptr) gamelistplayerleftmessage_->Clear(); - _has_bits_[0] &= ~0x00008000u; + if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); + clear_has_gamelistplayerleftmessage(); } inline const ::GameListPlayerLeftMessage& PokerTHMessage::gamelistplayerleftmessage() const { - const ::GameListPlayerLeftMessage* p = gamelistplayerleftmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerLeftMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListPlayerLeftMessage_default_instance_); -} -inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListPlayerLeftMessage) - _has_bits_[0] &= ~0x00008000u; - ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; - gamelistplayerleftmessage_ = nullptr; - return temp; + return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance_->gamelistplayerleftmessage_; } inline ::GameListPlayerLeftMessage* PokerTHMessage::mutable_gamelistplayerleftmessage() { - _has_bits_[0] |= 0x00008000u; - if (gamelistplayerleftmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListPlayerLeftMessage>(GetArenaNoVirtual()); - gamelistplayerleftmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerLeftMessage) + set_has_gamelistplayerleftmessage(); + if (gamelistplayerleftmessage_ == NULL) gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage; return gamelistplayerleftmessage_; } -inline void PokerTHMessage::set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistplayerleftmessage_; - } - if (gamelistplayerleftmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistplayerleftmessage = ::google::protobuf::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) +inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { + clear_has_gamelistplayerleftmessage(); + ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; + gamelistplayerleftmessage_ = NULL; + return temp; } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; inline bool PokerTHMessage::has_gamelistadminchangedmessage() const { - return (_has_bits_[0] & 0x00010000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistadminchangedmessage() { - if (gamelistadminchangedmessage_ != nullptr) gamelistadminchangedmessage_->Clear(); - _has_bits_[0] &= ~0x00010000u; + if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); + clear_has_gamelistadminchangedmessage(); } inline const ::GameListAdminChangedMessage& PokerTHMessage::gamelistadminchangedmessage() const { - const ::GameListAdminChangedMessage* p = gamelistadminchangedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListAdminChangedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListAdminChangedMessage_default_instance_); -} -inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListAdminChangedMessage) - _has_bits_[0] &= ~0x00010000u; - ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; - gamelistadminchangedmessage_ = nullptr; - return temp; + return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance_->gamelistadminchangedmessage_; } inline ::GameListAdminChangedMessage* PokerTHMessage::mutable_gamelistadminchangedmessage() { - _has_bits_[0] |= 0x00010000u; - if (gamelistadminchangedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListAdminChangedMessage>(GetArenaNoVirtual()); - gamelistadminchangedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListAdminChangedMessage) + set_has_gamelistadminchangedmessage(); + if (gamelistadminchangedmessage_ == NULL) gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage; return gamelistadminchangedmessage_; } -inline void PokerTHMessage::set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistadminchangedmessage_; - } - if (gamelistadminchangedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistadminchangedmessage = ::google::protobuf::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) +inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { + clear_has_gamelistadminchangedmessage(); + ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; + gamelistadminchangedmessage_ = NULL; + return temp; } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; inline bool PokerTHMessage::has_playerinforequestmessage() const { - return (_has_bits_[0] & 0x00020000u) != 0; + 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; } inline void PokerTHMessage::clear_playerinforequestmessage() { - if (playerinforequestmessage_ != nullptr) playerinforequestmessage_->Clear(); - _has_bits_[0] &= ~0x00020000u; + if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); + clear_has_playerinforequestmessage(); } inline const ::PlayerInfoRequestMessage& PokerTHMessage::playerinforequestmessage() const { - const ::PlayerInfoRequestMessage* p = playerinforequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerInfoRequestMessage_default_instance_); -} -inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playerInfoRequestMessage) - _has_bits_[0] &= ~0x00020000u; - ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; - playerinforequestmessage_ = nullptr; - return temp; + return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance_->playerinforequestmessage_; } inline ::PlayerInfoRequestMessage* PokerTHMessage::mutable_playerinforequestmessage() { - _has_bits_[0] |= 0x00020000u; - if (playerinforequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerInfoRequestMessage>(GetArenaNoVirtual()); - playerinforequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoRequestMessage) + set_has_playerinforequestmessage(); + if (playerinforequestmessage_ == NULL) playerinforequestmessage_ = new ::PlayerInfoRequestMessage; return playerinforequestmessage_; } -inline void PokerTHMessage::set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playerinforequestmessage_; - } - if (playerinforequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playerinforequestmessage = ::google::protobuf::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) +inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { + clear_has_playerinforequestmessage(); + ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; + playerinforequestmessage_ = NULL; + return temp; } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; inline bool PokerTHMessage::has_playerinforeplymessage() const { - return (_has_bits_[0] & 0x00040000u) != 0; + 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; } inline void PokerTHMessage::clear_playerinforeplymessage() { - if (playerinforeplymessage_ != nullptr) playerinforeplymessage_->Clear(); - _has_bits_[0] &= ~0x00040000u; + if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); + clear_has_playerinforeplymessage(); } inline const ::PlayerInfoReplyMessage& PokerTHMessage::playerinforeplymessage() const { - const ::PlayerInfoReplyMessage* p = playerinforeplymessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoReplyMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerInfoReplyMessage_default_instance_); -} -inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playerInfoReplyMessage) - _has_bits_[0] &= ~0x00040000u; - ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; - playerinforeplymessage_ = nullptr; - return temp; + return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance_->playerinforeplymessage_; } inline ::PlayerInfoReplyMessage* PokerTHMessage::mutable_playerinforeplymessage() { - _has_bits_[0] |= 0x00040000u; - if (playerinforeplymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage>(GetArenaNoVirtual()); - playerinforeplymessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoReplyMessage) + set_has_playerinforeplymessage(); + if (playerinforeplymessage_ == NULL) playerinforeplymessage_ = new ::PlayerInfoReplyMessage; return playerinforeplymessage_; } -inline void PokerTHMessage::set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playerinforeplymessage_; - } - if (playerinforeplymessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playerinforeplymessage = ::google::protobuf::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) +inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { + clear_has_playerinforeplymessage(); + ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; + playerinforeplymessage_ = NULL; + return temp; } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; inline bool PokerTHMessage::has_subscriptionrequestmessage() const { - return (_has_bits_[0] & 0x00080000u) != 0; + 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; } inline void PokerTHMessage::clear_subscriptionrequestmessage() { - if (subscriptionrequestmessage_ != nullptr) subscriptionrequestmessage_->Clear(); - _has_bits_[0] &= ~0x00080000u; + if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); + clear_has_subscriptionrequestmessage(); } inline const ::SubscriptionRequestMessage& PokerTHMessage::subscriptionrequestmessage() const { - const ::SubscriptionRequestMessage* p = subscriptionrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.subscriptionRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_SubscriptionRequestMessage_default_instance_); -} -inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.subscriptionRequestMessage) - _has_bits_[0] &= ~0x00080000u; - ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; - subscriptionrequestmessage_ = nullptr; - return temp; + return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance_->subscriptionrequestmessage_; } inline ::SubscriptionRequestMessage* PokerTHMessage::mutable_subscriptionrequestmessage() { - _has_bits_[0] |= 0x00080000u; - if (subscriptionrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::SubscriptionRequestMessage>(GetArenaNoVirtual()); - subscriptionrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.subscriptionRequestMessage) + set_has_subscriptionrequestmessage(); + if (subscriptionrequestmessage_ == NULL) subscriptionrequestmessage_ = new ::SubscriptionRequestMessage; return subscriptionrequestmessage_; } -inline void PokerTHMessage::set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete subscriptionrequestmessage_; - } - if (subscriptionrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - subscriptionrequestmessage = ::google::protobuf::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) +inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { + clear_has_subscriptionrequestmessage(); + ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; + subscriptionrequestmessage_ = NULL; + return temp; } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; inline bool PokerTHMessage::has_joinexistinggamemessage() const { - return (_has_bits_[0] & 0x00100000u) != 0; + 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; } inline void PokerTHMessage::clear_joinexistinggamemessage() { - if (joinexistinggamemessage_ != nullptr) joinexistinggamemessage_->Clear(); - _has_bits_[0] &= ~0x00100000u; + if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); + clear_has_joinexistinggamemessage(); } inline const ::JoinExistingGameMessage& PokerTHMessage::joinexistinggamemessage() const { - const ::JoinExistingGameMessage* p = joinexistinggamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.joinExistingGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_JoinExistingGameMessage_default_instance_); -} -inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.joinExistingGameMessage) - _has_bits_[0] &= ~0x00100000u; - ::JoinExistingGameMessage* temp = joinexistinggamemessage_; - joinexistinggamemessage_ = nullptr; - return temp; + return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance_->joinexistinggamemessage_; } inline ::JoinExistingGameMessage* PokerTHMessage::mutable_joinexistinggamemessage() { - _has_bits_[0] |= 0x00100000u; - if (joinexistinggamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::JoinExistingGameMessage>(GetArenaNoVirtual()); - joinexistinggamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinExistingGameMessage) + set_has_joinexistinggamemessage(); + if (joinexistinggamemessage_ == NULL) joinexistinggamemessage_ = new ::JoinExistingGameMessage; return joinexistinggamemessage_; } -inline void PokerTHMessage::set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete joinexistinggamemessage_; - } - if (joinexistinggamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - joinexistinggamemessage = ::google::protobuf::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) +inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { + clear_has_joinexistinggamemessage(); + ::JoinExistingGameMessage* temp = joinexistinggamemessage_; + joinexistinggamemessage_ = NULL; + return temp; } // optional .JoinNewGameMessage joinNewGameMessage = 23; inline bool PokerTHMessage::has_joinnewgamemessage() const { - return (_has_bits_[0] & 0x00200000u) != 0; + 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; } inline void PokerTHMessage::clear_joinnewgamemessage() { - if (joinnewgamemessage_ != nullptr) joinnewgamemessage_->Clear(); - _has_bits_[0] &= ~0x00200000u; + if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); + clear_has_joinnewgamemessage(); } inline const ::JoinNewGameMessage& PokerTHMessage::joinnewgamemessage() const { - const ::JoinNewGameMessage* p = joinnewgamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.joinNewGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_JoinNewGameMessage_default_instance_); -} -inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.joinNewGameMessage) - _has_bits_[0] &= ~0x00200000u; - ::JoinNewGameMessage* temp = joinnewgamemessage_; - joinnewgamemessage_ = nullptr; - return temp; + return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance_->joinnewgamemessage_; } inline ::JoinNewGameMessage* PokerTHMessage::mutable_joinnewgamemessage() { - _has_bits_[0] |= 0x00200000u; - if (joinnewgamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::JoinNewGameMessage>(GetArenaNoVirtual()); - joinnewgamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinNewGameMessage) + set_has_joinnewgamemessage(); + if (joinnewgamemessage_ == NULL) joinnewgamemessage_ = new ::JoinNewGameMessage; return joinnewgamemessage_; } -inline void PokerTHMessage::set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete joinnewgamemessage_; - } - if (joinnewgamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - joinnewgamemessage = ::google::protobuf::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) +inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { + clear_has_joinnewgamemessage(); + ::JoinNewGameMessage* temp = joinnewgamemessage_; + joinnewgamemessage_ = NULL; + return temp; } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; inline bool PokerTHMessage::has_rejoinexistinggamemessage() const { - return (_has_bits_[0] & 0x00400000u) != 0; + 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; } inline void PokerTHMessage::clear_rejoinexistinggamemessage() { - if (rejoinexistinggamemessage_ != nullptr) rejoinexistinggamemessage_->Clear(); - _has_bits_[0] &= ~0x00400000u; + if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); + clear_has_rejoinexistinggamemessage(); } inline const ::RejoinExistingGameMessage& PokerTHMessage::rejoinexistinggamemessage() const { - const ::RejoinExistingGameMessage* p = rejoinexistinggamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.rejoinExistingGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_RejoinExistingGameMessage_default_instance_); -} -inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.rejoinExistingGameMessage) - _has_bits_[0] &= ~0x00400000u; - ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; - rejoinexistinggamemessage_ = nullptr; - return temp; + return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance_->rejoinexistinggamemessage_; } inline ::RejoinExistingGameMessage* PokerTHMessage::mutable_rejoinexistinggamemessage() { - _has_bits_[0] |= 0x00400000u; - if (rejoinexistinggamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::RejoinExistingGameMessage>(GetArenaNoVirtual()); - rejoinexistinggamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejoinExistingGameMessage) + set_has_rejoinexistinggamemessage(); + if (rejoinexistinggamemessage_ == NULL) rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage; return rejoinexistinggamemessage_; } -inline void PokerTHMessage::set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete rejoinexistinggamemessage_; - } - if (rejoinexistinggamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - rejoinexistinggamemessage = ::google::protobuf::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) +inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { + clear_has_rejoinexistinggamemessage(); + ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; + rejoinexistinggamemessage_ = NULL; + return temp; } // optional .JoinGameAckMessage joinGameAckMessage = 25; inline bool PokerTHMessage::has_joingameackmessage() const { - return (_has_bits_[0] & 0x00800000u) != 0; + 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; } inline void PokerTHMessage::clear_joingameackmessage() { - if (joingameackmessage_ != nullptr) joingameackmessage_->Clear(); - _has_bits_[0] &= ~0x00800000u; + if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); + clear_has_joingameackmessage(); } inline const ::JoinGameAckMessage& PokerTHMessage::joingameackmessage() const { - const ::JoinGameAckMessage* p = joingameackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_JoinGameAckMessage_default_instance_); -} -inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.joinGameAckMessage) - _has_bits_[0] &= ~0x00800000u; - ::JoinGameAckMessage* temp = joingameackmessage_; - joingameackmessage_ = nullptr; - return temp; + return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance_->joingameackmessage_; } inline ::JoinGameAckMessage* PokerTHMessage::mutable_joingameackmessage() { - _has_bits_[0] |= 0x00800000u; - if (joingameackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::JoinGameAckMessage>(GetArenaNoVirtual()); - joingameackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameAckMessage) + set_has_joingameackmessage(); + if (joingameackmessage_ == NULL) joingameackmessage_ = new ::JoinGameAckMessage; return joingameackmessage_; } -inline void PokerTHMessage::set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete joingameackmessage_; - } - if (joingameackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - joingameackmessage = ::google::protobuf::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) +inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { + clear_has_joingameackmessage(); + ::JoinGameAckMessage* temp = joingameackmessage_; + joingameackmessage_ = NULL; + return temp; } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; inline bool PokerTHMessage::has_joingamefailedmessage() const { - return (_has_bits_[0] & 0x01000000u) != 0; + 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; } inline void PokerTHMessage::clear_joingamefailedmessage() { - if (joingamefailedmessage_ != nullptr) joingamefailedmessage_->Clear(); - _has_bits_[0] &= ~0x01000000u; + if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); + clear_has_joingamefailedmessage(); } inline const ::JoinGameFailedMessage& PokerTHMessage::joingamefailedmessage() const { - const ::JoinGameFailedMessage* p = joingamefailedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameFailedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_JoinGameFailedMessage_default_instance_); -} -inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.joinGameFailedMessage) - _has_bits_[0] &= ~0x01000000u; - ::JoinGameFailedMessage* temp = joingamefailedmessage_; - joingamefailedmessage_ = nullptr; - return temp; + return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance_->joingamefailedmessage_; } inline ::JoinGameFailedMessage* PokerTHMessage::mutable_joingamefailedmessage() { - _has_bits_[0] |= 0x01000000u; - if (joingamefailedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::JoinGameFailedMessage>(GetArenaNoVirtual()); - joingamefailedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameFailedMessage) + set_has_joingamefailedmessage(); + if (joingamefailedmessage_ == NULL) joingamefailedmessage_ = new ::JoinGameFailedMessage; return joingamefailedmessage_; } -inline void PokerTHMessage::set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete joingamefailedmessage_; - } - if (joingamefailedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - joingamefailedmessage = ::google::protobuf::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) +inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { + clear_has_joingamefailedmessage(); + ::JoinGameFailedMessage* temp = joingamefailedmessage_; + joingamefailedmessage_ = NULL; + return temp; } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; inline bool PokerTHMessage::has_gameplayerjoinedmessage() const { - return (_has_bits_[0] & 0x02000000u) != 0; + 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; } inline void PokerTHMessage::clear_gameplayerjoinedmessage() { - if (gameplayerjoinedmessage_ != nullptr) gameplayerjoinedmessage_->Clear(); - _has_bits_[0] &= ~0x02000000u; + if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); + clear_has_gameplayerjoinedmessage(); } inline const ::GamePlayerJoinedMessage& PokerTHMessage::gameplayerjoinedmessage() const { - const ::GamePlayerJoinedMessage* p = gameplayerjoinedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerJoinedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GamePlayerJoinedMessage_default_instance_); -} -inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gamePlayerJoinedMessage) - _has_bits_[0] &= ~0x02000000u; - ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; - gameplayerjoinedmessage_ = nullptr; - return temp; + return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance_->gameplayerjoinedmessage_; } inline ::GamePlayerJoinedMessage* PokerTHMessage::mutable_gameplayerjoinedmessage() { - _has_bits_[0] |= 0x02000000u; - if (gameplayerjoinedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GamePlayerJoinedMessage>(GetArenaNoVirtual()); - gameplayerjoinedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerJoinedMessage) + set_has_gameplayerjoinedmessage(); + if (gameplayerjoinedmessage_ == NULL) gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage; return gameplayerjoinedmessage_; } -inline void PokerTHMessage::set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameplayerjoinedmessage_; - } - if (gameplayerjoinedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameplayerjoinedmessage = ::google::protobuf::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) +inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { + clear_has_gameplayerjoinedmessage(); + ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; + gameplayerjoinedmessage_ = NULL; + return temp; } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; inline bool PokerTHMessage::has_gameplayerleftmessage() const { - return (_has_bits_[0] & 0x04000000u) != 0; + 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; } inline void PokerTHMessage::clear_gameplayerleftmessage() { - if (gameplayerleftmessage_ != nullptr) gameplayerleftmessage_->Clear(); - _has_bits_[0] &= ~0x04000000u; + if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); + clear_has_gameplayerleftmessage(); } inline const ::GamePlayerLeftMessage& PokerTHMessage::gameplayerleftmessage() const { - const ::GamePlayerLeftMessage* p = gameplayerleftmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerLeftMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GamePlayerLeftMessage_default_instance_); -} -inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gamePlayerLeftMessage) - _has_bits_[0] &= ~0x04000000u; - ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; - gameplayerleftmessage_ = nullptr; - return temp; + return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance_->gameplayerleftmessage_; } inline ::GamePlayerLeftMessage* PokerTHMessage::mutable_gameplayerleftmessage() { - _has_bits_[0] |= 0x04000000u; - if (gameplayerleftmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GamePlayerLeftMessage>(GetArenaNoVirtual()); - gameplayerleftmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerLeftMessage) + set_has_gameplayerleftmessage(); + if (gameplayerleftmessage_ == NULL) gameplayerleftmessage_ = new ::GamePlayerLeftMessage; return gameplayerleftmessage_; } -inline void PokerTHMessage::set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameplayerleftmessage_; - } - if (gameplayerleftmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameplayerleftmessage = ::google::protobuf::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) +inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { + clear_has_gameplayerleftmessage(); + ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; + gameplayerleftmessage_ = NULL; + return temp; } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; inline bool PokerTHMessage::has_gameadminchangedmessage() const { - return (_has_bits_[0] & 0x08000000u) != 0; + 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; } inline void PokerTHMessage::clear_gameadminchangedmessage() { - if (gameadminchangedmessage_ != nullptr) gameadminchangedmessage_->Clear(); - _has_bits_[0] &= ~0x08000000u; + if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); + clear_has_gameadminchangedmessage(); } inline const ::GameAdminChangedMessage& PokerTHMessage::gameadminchangedmessage() const { - const ::GameAdminChangedMessage* p = gameadminchangedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameAdminChangedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameAdminChangedMessage_default_instance_); -} -inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameAdminChangedMessage) - _has_bits_[0] &= ~0x08000000u; - ::GameAdminChangedMessage* temp = gameadminchangedmessage_; - gameadminchangedmessage_ = nullptr; - return temp; + return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance_->gameadminchangedmessage_; } inline ::GameAdminChangedMessage* PokerTHMessage::mutable_gameadminchangedmessage() { - _has_bits_[0] |= 0x08000000u; - if (gameadminchangedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameAdminChangedMessage>(GetArenaNoVirtual()); - gameadminchangedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameAdminChangedMessage) + set_has_gameadminchangedmessage(); + if (gameadminchangedmessage_ == NULL) gameadminchangedmessage_ = new ::GameAdminChangedMessage; return gameadminchangedmessage_; } -inline void PokerTHMessage::set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gameadminchangedmessage_; - } - if (gameadminchangedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gameadminchangedmessage = ::google::protobuf::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) +inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { + clear_has_gameadminchangedmessage(); + ::GameAdminChangedMessage* temp = gameadminchangedmessage_; + gameadminchangedmessage_ = NULL; + return temp; } // optional .RemovedFromGameMessage removedFromGameMessage = 30; inline bool PokerTHMessage::has_removedfromgamemessage() const { - return (_has_bits_[0] & 0x10000000u) != 0; + 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; } inline void PokerTHMessage::clear_removedfromgamemessage() { - if (removedfromgamemessage_ != nullptr) removedfromgamemessage_->Clear(); - _has_bits_[0] &= ~0x10000000u; + if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); + clear_has_removedfromgamemessage(); } inline const ::RemovedFromGameMessage& PokerTHMessage::removedfromgamemessage() const { - const ::RemovedFromGameMessage* p = removedfromgamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.removedFromGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_RemovedFromGameMessage_default_instance_); -} -inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.removedFromGameMessage) - _has_bits_[0] &= ~0x10000000u; - ::RemovedFromGameMessage* temp = removedfromgamemessage_; - removedfromgamemessage_ = nullptr; - return temp; + return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance_->removedfromgamemessage_; } inline ::RemovedFromGameMessage* PokerTHMessage::mutable_removedfromgamemessage() { - _has_bits_[0] |= 0x10000000u; - if (removedfromgamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::RemovedFromGameMessage>(GetArenaNoVirtual()); - removedfromgamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.removedFromGameMessage) + set_has_removedfromgamemessage(); + if (removedfromgamemessage_ == NULL) removedfromgamemessage_ = new ::RemovedFromGameMessage; return removedfromgamemessage_; } -inline void PokerTHMessage::set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete removedfromgamemessage_; - } - if (removedfromgamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - removedfromgamemessage = ::google::protobuf::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) +inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { + clear_has_removedfromgamemessage(); + ::RemovedFromGameMessage* temp = removedfromgamemessage_; + removedfromgamemessage_ = NULL; + return temp; } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; inline bool PokerTHMessage::has_kickplayerrequestmessage() const { - return (_has_bits_[0] & 0x20000000u) != 0; + 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; } inline void PokerTHMessage::clear_kickplayerrequestmessage() { - if (kickplayerrequestmessage_ != nullptr) kickplayerrequestmessage_->Clear(); - _has_bits_[0] &= ~0x20000000u; + if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); + clear_has_kickplayerrequestmessage(); } inline const ::KickPlayerRequestMessage& PokerTHMessage::kickplayerrequestmessage() const { - const ::KickPlayerRequestMessage* p = kickplayerrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.kickPlayerRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_KickPlayerRequestMessage_default_instance_); -} -inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.kickPlayerRequestMessage) - _has_bits_[0] &= ~0x20000000u; - ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; - kickplayerrequestmessage_ = nullptr; - return temp; + return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance_->kickplayerrequestmessage_; } inline ::KickPlayerRequestMessage* PokerTHMessage::mutable_kickplayerrequestmessage() { - _has_bits_[0] |= 0x20000000u; - if (kickplayerrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::KickPlayerRequestMessage>(GetArenaNoVirtual()); - kickplayerrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPlayerRequestMessage) + set_has_kickplayerrequestmessage(); + if (kickplayerrequestmessage_ == NULL) kickplayerrequestmessage_ = new ::KickPlayerRequestMessage; return kickplayerrequestmessage_; } -inline void PokerTHMessage::set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete kickplayerrequestmessage_; - } - if (kickplayerrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - kickplayerrequestmessage = ::google::protobuf::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) +inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { + clear_has_kickplayerrequestmessage(); + ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; + kickplayerrequestmessage_ = NULL; + return temp; } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; inline bool PokerTHMessage::has_leavegamerequestmessage() const { - return (_has_bits_[0] & 0x40000000u) != 0; + 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; } inline void PokerTHMessage::clear_leavegamerequestmessage() { - if (leavegamerequestmessage_ != nullptr) leavegamerequestmessage_->Clear(); - _has_bits_[0] &= ~0x40000000u; + if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); + clear_has_leavegamerequestmessage(); } inline const ::LeaveGameRequestMessage& PokerTHMessage::leavegamerequestmessage() const { - const ::LeaveGameRequestMessage* p = leavegamerequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.leaveGameRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_LeaveGameRequestMessage_default_instance_); -} -inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.leaveGameRequestMessage) - _has_bits_[0] &= ~0x40000000u; - ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; - leavegamerequestmessage_ = nullptr; - return temp; + return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance_->leavegamerequestmessage_; } inline ::LeaveGameRequestMessage* PokerTHMessage::mutable_leavegamerequestmessage() { - _has_bits_[0] |= 0x40000000u; - if (leavegamerequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::LeaveGameRequestMessage>(GetArenaNoVirtual()); - leavegamerequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.leaveGameRequestMessage) + set_has_leavegamerequestmessage(); + if (leavegamerequestmessage_ == NULL) leavegamerequestmessage_ = new ::LeaveGameRequestMessage; return leavegamerequestmessage_; } -inline void PokerTHMessage::set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete leavegamerequestmessage_; - } - if (leavegamerequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - leavegamerequestmessage = ::google::protobuf::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) +inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { + clear_has_leavegamerequestmessage(); + ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; + leavegamerequestmessage_ = NULL; + return temp; } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; inline bool PokerTHMessage::has_inviteplayertogamemessage() const { - return (_has_bits_[0] & 0x80000000u) != 0; + 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; } inline void PokerTHMessage::clear_inviteplayertogamemessage() { - if (inviteplayertogamemessage_ != nullptr) inviteplayertogamemessage_->Clear(); - _has_bits_[0] &= ~0x80000000u; + if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); + clear_has_inviteplayertogamemessage(); } inline const ::InvitePlayerToGameMessage& PokerTHMessage::inviteplayertogamemessage() const { - const ::InvitePlayerToGameMessage* p = inviteplayertogamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.invitePlayerToGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_InvitePlayerToGameMessage_default_instance_); -} -inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.invitePlayerToGameMessage) - _has_bits_[0] &= ~0x80000000u; - ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; - inviteplayertogamemessage_ = nullptr; - return temp; + return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance_->inviteplayertogamemessage_; } inline ::InvitePlayerToGameMessage* PokerTHMessage::mutable_inviteplayertogamemessage() { - _has_bits_[0] |= 0x80000000u; - if (inviteplayertogamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::InvitePlayerToGameMessage>(GetArenaNoVirtual()); - inviteplayertogamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.invitePlayerToGameMessage) + set_has_inviteplayertogamemessage(); + if (inviteplayertogamemessage_ == NULL) inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage; return inviteplayertogamemessage_; } -inline void PokerTHMessage::set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete inviteplayertogamemessage_; - } - if (inviteplayertogamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inviteplayertogamemessage = ::google::protobuf::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) +inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { + clear_has_inviteplayertogamemessage(); + ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; + inviteplayertogamemessage_ = NULL; + return temp; } // optional .InviteNotifyMessage inviteNotifyMessage = 34; inline bool PokerTHMessage::has_invitenotifymessage() const { - return (_has_bits_[1] & 0x00000001u) != 0; + 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; } inline void PokerTHMessage::clear_invitenotifymessage() { - if (invitenotifymessage_ != nullptr) invitenotifymessage_->Clear(); - _has_bits_[1] &= ~0x00000001u; + if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); + clear_has_invitenotifymessage(); } inline const ::InviteNotifyMessage& PokerTHMessage::invitenotifymessage() const { - const ::InviteNotifyMessage* p = invitenotifymessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.inviteNotifyMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_InviteNotifyMessage_default_instance_); -} -inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.inviteNotifyMessage) - _has_bits_[1] &= ~0x00000001u; - ::InviteNotifyMessage* temp = invitenotifymessage_; - invitenotifymessage_ = nullptr; - return temp; + return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance_->invitenotifymessage_; } inline ::InviteNotifyMessage* PokerTHMessage::mutable_invitenotifymessage() { - _has_bits_[1] |= 0x00000001u; - if (invitenotifymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::InviteNotifyMessage>(GetArenaNoVirtual()); - invitenotifymessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.inviteNotifyMessage) + set_has_invitenotifymessage(); + if (invitenotifymessage_ == NULL) invitenotifymessage_ = new ::InviteNotifyMessage; return invitenotifymessage_; } -inline void PokerTHMessage::set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete invitenotifymessage_; - } - if (invitenotifymessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - invitenotifymessage = ::google::protobuf::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) +inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { + clear_has_invitenotifymessage(); + ::InviteNotifyMessage* temp = invitenotifymessage_; + invitenotifymessage_ = NULL; + return temp; } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; inline bool PokerTHMessage::has_rejectgameinvitationmessage() const { - return (_has_bits_[1] & 0x00000002u) != 0; + 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; } inline void PokerTHMessage::clear_rejectgameinvitationmessage() { - if (rejectgameinvitationmessage_ != nullptr) rejectgameinvitationmessage_->Clear(); - _has_bits_[1] &= ~0x00000002u; + if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); + clear_has_rejectgameinvitationmessage(); } inline const ::RejectGameInvitationMessage& PokerTHMessage::rejectgameinvitationmessage() const { - const ::RejectGameInvitationMessage* p = rejectgameinvitationmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.rejectGameInvitationMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_RejectGameInvitationMessage_default_instance_); -} -inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.rejectGameInvitationMessage) - _has_bits_[1] &= ~0x00000002u; - ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; - rejectgameinvitationmessage_ = nullptr; - return temp; + return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance_->rejectgameinvitationmessage_; } inline ::RejectGameInvitationMessage* PokerTHMessage::mutable_rejectgameinvitationmessage() { - _has_bits_[1] |= 0x00000002u; - if (rejectgameinvitationmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::RejectGameInvitationMessage>(GetArenaNoVirtual()); - rejectgameinvitationmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectGameInvitationMessage) + set_has_rejectgameinvitationmessage(); + if (rejectgameinvitationmessage_ == NULL) rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage; return rejectgameinvitationmessage_; } -inline void PokerTHMessage::set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete rejectgameinvitationmessage_; - } - if (rejectgameinvitationmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - rejectgameinvitationmessage = ::google::protobuf::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) +inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { + clear_has_rejectgameinvitationmessage(); + ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; + rejectgameinvitationmessage_ = NULL; + return temp; } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; inline bool PokerTHMessage::has_rejectinvnotifymessage() const { - return (_has_bits_[1] & 0x00000004u) != 0; + 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; } inline void PokerTHMessage::clear_rejectinvnotifymessage() { - if (rejectinvnotifymessage_ != nullptr) rejectinvnotifymessage_->Clear(); - _has_bits_[1] &= ~0x00000004u; + if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); + clear_has_rejectinvnotifymessage(); } inline const ::RejectInvNotifyMessage& PokerTHMessage::rejectinvnotifymessage() const { - const ::RejectInvNotifyMessage* p = rejectinvnotifymessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.rejectInvNotifyMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_RejectInvNotifyMessage_default_instance_); -} -inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.rejectInvNotifyMessage) - _has_bits_[1] &= ~0x00000004u; - ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; - rejectinvnotifymessage_ = nullptr; - return temp; + return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance_->rejectinvnotifymessage_; } inline ::RejectInvNotifyMessage* PokerTHMessage::mutable_rejectinvnotifymessage() { - _has_bits_[1] |= 0x00000004u; - if (rejectinvnotifymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::RejectInvNotifyMessage>(GetArenaNoVirtual()); - rejectinvnotifymessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectInvNotifyMessage) + set_has_rejectinvnotifymessage(); + if (rejectinvnotifymessage_ == NULL) rejectinvnotifymessage_ = new ::RejectInvNotifyMessage; return rejectinvnotifymessage_; } -inline void PokerTHMessage::set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete rejectinvnotifymessage_; - } - if (rejectinvnotifymessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - rejectinvnotifymessage = ::google::protobuf::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) +inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { + clear_has_rejectinvnotifymessage(); + ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; + rejectinvnotifymessage_ = NULL; + return temp; } // optional .StartEventMessage startEventMessage = 37; inline bool PokerTHMessage::has_starteventmessage() const { - return (_has_bits_[1] & 0x00000008u) != 0; + 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; } inline void PokerTHMessage::clear_starteventmessage() { - if (starteventmessage_ != nullptr) starteventmessage_->Clear(); - _has_bits_[1] &= ~0x00000008u; + if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); + clear_has_starteventmessage(); } inline const ::StartEventMessage& PokerTHMessage::starteventmessage() const { - const ::StartEventMessage* p = starteventmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.startEventMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_StartEventMessage_default_instance_); -} -inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.startEventMessage) - _has_bits_[1] &= ~0x00000008u; - ::StartEventMessage* temp = starteventmessage_; - starteventmessage_ = nullptr; - return temp; + return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance_->starteventmessage_; } inline ::StartEventMessage* PokerTHMessage::mutable_starteventmessage() { - _has_bits_[1] |= 0x00000008u; - if (starteventmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::StartEventMessage>(GetArenaNoVirtual()); - starteventmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventMessage) + set_has_starteventmessage(); + if (starteventmessage_ == NULL) starteventmessage_ = new ::StartEventMessage; return starteventmessage_; } -inline void PokerTHMessage::set_allocated_starteventmessage(::StartEventMessage* starteventmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete starteventmessage_; - } - if (starteventmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - starteventmessage = ::google::protobuf::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) +inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { + clear_has_starteventmessage(); + ::StartEventMessage* temp = starteventmessage_; + starteventmessage_ = NULL; + return temp; } // optional .StartEventAckMessage startEventAckMessage = 38; inline bool PokerTHMessage::has_starteventackmessage() const { - return (_has_bits_[1] & 0x00000010u) != 0; + 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; } inline void PokerTHMessage::clear_starteventackmessage() { - if (starteventackmessage_ != nullptr) starteventackmessage_->Clear(); - _has_bits_[1] &= ~0x00000010u; + if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); + clear_has_starteventackmessage(); } inline const ::StartEventAckMessage& PokerTHMessage::starteventackmessage() const { - const ::StartEventAckMessage* p = starteventackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.startEventAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_StartEventAckMessage_default_instance_); -} -inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.startEventAckMessage) - _has_bits_[1] &= ~0x00000010u; - ::StartEventAckMessage* temp = starteventackmessage_; - starteventackmessage_ = nullptr; - return temp; + return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance_->starteventackmessage_; } inline ::StartEventAckMessage* PokerTHMessage::mutable_starteventackmessage() { - _has_bits_[1] |= 0x00000010u; - if (starteventackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::StartEventAckMessage>(GetArenaNoVirtual()); - starteventackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventAckMessage) + set_has_starteventackmessage(); + if (starteventackmessage_ == NULL) starteventackmessage_ = new ::StartEventAckMessage; return starteventackmessage_; } -inline void PokerTHMessage::set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete starteventackmessage_; - } - if (starteventackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - starteventackmessage = ::google::protobuf::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) +inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { + clear_has_starteventackmessage(); + ::StartEventAckMessage* temp = starteventackmessage_; + starteventackmessage_ = NULL; + return temp; } // optional .GameStartInitialMessage gameStartInitialMessage = 39; inline bool PokerTHMessage::has_gamestartinitialmessage() const { - return (_has_bits_[1] & 0x00000020u) != 0; + 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; } inline void PokerTHMessage::clear_gamestartinitialmessage() { - if (gamestartinitialmessage_ != nullptr) gamestartinitialmessage_->Clear(); - _has_bits_[1] &= ~0x00000020u; + if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); + clear_has_gamestartinitialmessage(); } inline const ::GameStartInitialMessage& PokerTHMessage::gamestartinitialmessage() const { - const ::GameStartInitialMessage* p = gamestartinitialmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartInitialMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameStartInitialMessage_default_instance_); -} -inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameStartInitialMessage) - _has_bits_[1] &= ~0x00000020u; - ::GameStartInitialMessage* temp = gamestartinitialmessage_; - gamestartinitialmessage_ = nullptr; - return temp; + return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance_->gamestartinitialmessage_; } inline ::GameStartInitialMessage* PokerTHMessage::mutable_gamestartinitialmessage() { - _has_bits_[1] |= 0x00000020u; - if (gamestartinitialmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameStartInitialMessage>(GetArenaNoVirtual()); - gamestartinitialmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartInitialMessage) + set_has_gamestartinitialmessage(); + if (gamestartinitialmessage_ == NULL) gamestartinitialmessage_ = new ::GameStartInitialMessage; return gamestartinitialmessage_; } -inline void PokerTHMessage::set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamestartinitialmessage_; - } - if (gamestartinitialmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamestartinitialmessage = ::google::protobuf::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) +inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { + clear_has_gamestartinitialmessage(); + ::GameStartInitialMessage* temp = gamestartinitialmessage_; + gamestartinitialmessage_ = NULL; + return temp; } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; inline bool PokerTHMessage::has_gamestartrejoinmessage() const { - return (_has_bits_[1] & 0x00000040u) != 0; + 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; } inline void PokerTHMessage::clear_gamestartrejoinmessage() { - if (gamestartrejoinmessage_ != nullptr) gamestartrejoinmessage_->Clear(); - _has_bits_[1] &= ~0x00000040u; + if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); + clear_has_gamestartrejoinmessage(); } inline const ::GameStartRejoinMessage& PokerTHMessage::gamestartrejoinmessage() const { - const ::GameStartRejoinMessage* p = gamestartrejoinmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartRejoinMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameStartRejoinMessage_default_instance_); -} -inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameStartRejoinMessage) - _has_bits_[1] &= ~0x00000040u; - ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; - gamestartrejoinmessage_ = nullptr; - return temp; + return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance_->gamestartrejoinmessage_; } inline ::GameStartRejoinMessage* PokerTHMessage::mutable_gamestartrejoinmessage() { - _has_bits_[1] |= 0x00000040u; - if (gamestartrejoinmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameStartRejoinMessage>(GetArenaNoVirtual()); - gamestartrejoinmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartRejoinMessage) + set_has_gamestartrejoinmessage(); + if (gamestartrejoinmessage_ == NULL) gamestartrejoinmessage_ = new ::GameStartRejoinMessage; return gamestartrejoinmessage_; } -inline void PokerTHMessage::set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamestartrejoinmessage_; - } - if (gamestartrejoinmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamestartrejoinmessage = ::google::protobuf::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) +inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { + clear_has_gamestartrejoinmessage(); + ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; + gamestartrejoinmessage_ = NULL; + return temp; } // optional .HandStartMessage handStartMessage = 41; inline bool PokerTHMessage::has_handstartmessage() const { - return (_has_bits_[1] & 0x00000080u) != 0; + 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; } inline void PokerTHMessage::clear_handstartmessage() { - if (handstartmessage_ != nullptr) handstartmessage_->Clear(); - _has_bits_[1] &= ~0x00000080u; + if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); + clear_has_handstartmessage(); } inline const ::HandStartMessage& PokerTHMessage::handstartmessage() const { - const ::HandStartMessage* p = handstartmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.handStartMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_HandStartMessage_default_instance_); -} -inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.handStartMessage) - _has_bits_[1] &= ~0x00000080u; - ::HandStartMessage* temp = handstartmessage_; - handstartmessage_ = nullptr; - return temp; + return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance_->handstartmessage_; } inline ::HandStartMessage* PokerTHMessage::mutable_handstartmessage() { - _has_bits_[1] |= 0x00000080u; - if (handstartmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::HandStartMessage>(GetArenaNoVirtual()); - handstartmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.handStartMessage) + set_has_handstartmessage(); + if (handstartmessage_ == NULL) handstartmessage_ = new ::HandStartMessage; return handstartmessage_; } -inline void PokerTHMessage::set_allocated_handstartmessage(::HandStartMessage* handstartmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete handstartmessage_; - } - if (handstartmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - handstartmessage = ::google::protobuf::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) +inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { + clear_has_handstartmessage(); + ::HandStartMessage* temp = handstartmessage_; + handstartmessage_ = NULL; + return temp; } // optional .PlayersTurnMessage playersTurnMessage = 42; inline bool PokerTHMessage::has_playersturnmessage() const { - return (_has_bits_[1] & 0x00000100u) != 0; + 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; } inline void PokerTHMessage::clear_playersturnmessage() { - if (playersturnmessage_ != nullptr) playersturnmessage_->Clear(); - _has_bits_[1] &= ~0x00000100u; + if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); + clear_has_playersturnmessage(); } inline const ::PlayersTurnMessage& PokerTHMessage::playersturnmessage() const { - const ::PlayersTurnMessage* p = playersturnmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playersTurnMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayersTurnMessage_default_instance_); -} -inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playersTurnMessage) - _has_bits_[1] &= ~0x00000100u; - ::PlayersTurnMessage* temp = playersturnmessage_; - playersturnmessage_ = nullptr; - return temp; + return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance_->playersturnmessage_; } inline ::PlayersTurnMessage* PokerTHMessage::mutable_playersturnmessage() { - _has_bits_[1] |= 0x00000100u; - if (playersturnmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayersTurnMessage>(GetArenaNoVirtual()); - playersturnmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersTurnMessage) + set_has_playersturnmessage(); + if (playersturnmessage_ == NULL) playersturnmessage_ = new ::PlayersTurnMessage; return playersturnmessage_; } -inline void PokerTHMessage::set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playersturnmessage_; - } - if (playersturnmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playersturnmessage = ::google::protobuf::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) +inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { + clear_has_playersturnmessage(); + ::PlayersTurnMessage* temp = playersturnmessage_; + playersturnmessage_ = NULL; + return temp; } // optional .MyActionRequestMessage myActionRequestMessage = 43; inline bool PokerTHMessage::has_myactionrequestmessage() const { - return (_has_bits_[1] & 0x00000200u) != 0; + 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; } inline void PokerTHMessage::clear_myactionrequestmessage() { - if (myactionrequestmessage_ != nullptr) myactionrequestmessage_->Clear(); - _has_bits_[1] &= ~0x00000200u; + if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); + clear_has_myactionrequestmessage(); } inline const ::MyActionRequestMessage& PokerTHMessage::myactionrequestmessage() const { - const ::MyActionRequestMessage* p = myactionrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.myActionRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_MyActionRequestMessage_default_instance_); -} -inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.myActionRequestMessage) - _has_bits_[1] &= ~0x00000200u; - ::MyActionRequestMessage* temp = myactionrequestmessage_; - myactionrequestmessage_ = nullptr; - return temp; + return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance_->myactionrequestmessage_; } inline ::MyActionRequestMessage* PokerTHMessage::mutable_myactionrequestmessage() { - _has_bits_[1] |= 0x00000200u; - if (myactionrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::MyActionRequestMessage>(GetArenaNoVirtual()); - myactionrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.myActionRequestMessage) + set_has_myactionrequestmessage(); + if (myactionrequestmessage_ == NULL) myactionrequestmessage_ = new ::MyActionRequestMessage; return myactionrequestmessage_; } -inline void PokerTHMessage::set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete myactionrequestmessage_; - } - if (myactionrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - myactionrequestmessage = ::google::protobuf::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) +inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { + clear_has_myactionrequestmessage(); + ::MyActionRequestMessage* temp = myactionrequestmessage_; + myactionrequestmessage_ = NULL; + return temp; } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; inline bool PokerTHMessage::has_youractionrejectedmessage() const { - return (_has_bits_[1] & 0x00000400u) != 0; + 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; } inline void PokerTHMessage::clear_youractionrejectedmessage() { - if (youractionrejectedmessage_ != nullptr) youractionrejectedmessage_->Clear(); - _has_bits_[1] &= ~0x00000400u; + if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); + clear_has_youractionrejectedmessage(); } inline const ::YourActionRejectedMessage& PokerTHMessage::youractionrejectedmessage() const { - const ::YourActionRejectedMessage* p = youractionrejectedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.yourActionRejectedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_YourActionRejectedMessage_default_instance_); -} -inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.yourActionRejectedMessage) - _has_bits_[1] &= ~0x00000400u; - ::YourActionRejectedMessage* temp = youractionrejectedmessage_; - youractionrejectedmessage_ = nullptr; - return temp; + return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance_->youractionrejectedmessage_; } inline ::YourActionRejectedMessage* PokerTHMessage::mutable_youractionrejectedmessage() { - _has_bits_[1] |= 0x00000400u; - if (youractionrejectedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::YourActionRejectedMessage>(GetArenaNoVirtual()); - youractionrejectedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.yourActionRejectedMessage) + set_has_youractionrejectedmessage(); + if (youractionrejectedmessage_ == NULL) youractionrejectedmessage_ = new ::YourActionRejectedMessage; return youractionrejectedmessage_; } -inline void PokerTHMessage::set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete youractionrejectedmessage_; - } - if (youractionrejectedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - youractionrejectedmessage = ::google::protobuf::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) +inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { + clear_has_youractionrejectedmessage(); + ::YourActionRejectedMessage* temp = youractionrejectedmessage_; + youractionrejectedmessage_ = NULL; + return temp; } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; inline bool PokerTHMessage::has_playersactiondonemessage() const { - return (_has_bits_[1] & 0x00000800u) != 0; + 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; } inline void PokerTHMessage::clear_playersactiondonemessage() { - if (playersactiondonemessage_ != nullptr) playersactiondonemessage_->Clear(); - _has_bits_[1] &= ~0x00000800u; + if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); + clear_has_playersactiondonemessage(); } inline const ::PlayersActionDoneMessage& PokerTHMessage::playersactiondonemessage() const { - const ::PlayersActionDoneMessage* p = playersactiondonemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playersActionDoneMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayersActionDoneMessage_default_instance_); -} -inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playersActionDoneMessage) - _has_bits_[1] &= ~0x00000800u; - ::PlayersActionDoneMessage* temp = playersactiondonemessage_; - playersactiondonemessage_ = nullptr; - return temp; + return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance_->playersactiondonemessage_; } inline ::PlayersActionDoneMessage* PokerTHMessage::mutable_playersactiondonemessage() { - _has_bits_[1] |= 0x00000800u; - if (playersactiondonemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayersActionDoneMessage>(GetArenaNoVirtual()); - playersactiondonemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersActionDoneMessage) + set_has_playersactiondonemessage(); + if (playersactiondonemessage_ == NULL) playersactiondonemessage_ = new ::PlayersActionDoneMessage; return playersactiondonemessage_; } -inline void PokerTHMessage::set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playersactiondonemessage_; - } - if (playersactiondonemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playersactiondonemessage = ::google::protobuf::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) +inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { + clear_has_playersactiondonemessage(); + ::PlayersActionDoneMessage* temp = playersactiondonemessage_; + playersactiondonemessage_ = NULL; + return temp; } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; inline bool PokerTHMessage::has_dealflopcardsmessage() const { - return (_has_bits_[1] & 0x00001000u) != 0; + 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; } inline void PokerTHMessage::clear_dealflopcardsmessage() { - if (dealflopcardsmessage_ != nullptr) dealflopcardsmessage_->Clear(); - _has_bits_[1] &= ~0x00001000u; + if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); + clear_has_dealflopcardsmessage(); } inline const ::DealFlopCardsMessage& PokerTHMessage::dealflopcardsmessage() const { - const ::DealFlopCardsMessage* p = dealflopcardsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.dealFlopCardsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_DealFlopCardsMessage_default_instance_); -} -inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.dealFlopCardsMessage) - _has_bits_[1] &= ~0x00001000u; - ::DealFlopCardsMessage* temp = dealflopcardsmessage_; - dealflopcardsmessage_ = nullptr; - return temp; + return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance_->dealflopcardsmessage_; } inline ::DealFlopCardsMessage* PokerTHMessage::mutable_dealflopcardsmessage() { - _has_bits_[1] |= 0x00001000u; - if (dealflopcardsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::DealFlopCardsMessage>(GetArenaNoVirtual()); - dealflopcardsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealFlopCardsMessage) + set_has_dealflopcardsmessage(); + if (dealflopcardsmessage_ == NULL) dealflopcardsmessage_ = new ::DealFlopCardsMessage; return dealflopcardsmessage_; } -inline void PokerTHMessage::set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dealflopcardsmessage_; - } - if (dealflopcardsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dealflopcardsmessage = ::google::protobuf::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) +inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { + clear_has_dealflopcardsmessage(); + ::DealFlopCardsMessage* temp = dealflopcardsmessage_; + dealflopcardsmessage_ = NULL; + return temp; } // optional .DealTurnCardMessage dealTurnCardMessage = 47; inline bool PokerTHMessage::has_dealturncardmessage() const { - return (_has_bits_[1] & 0x00002000u) != 0; + 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; } inline void PokerTHMessage::clear_dealturncardmessage() { - if (dealturncardmessage_ != nullptr) dealturncardmessage_->Clear(); - _has_bits_[1] &= ~0x00002000u; + if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); + clear_has_dealturncardmessage(); } inline const ::DealTurnCardMessage& PokerTHMessage::dealturncardmessage() const { - const ::DealTurnCardMessage* p = dealturncardmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.dealTurnCardMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_DealTurnCardMessage_default_instance_); -} -inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.dealTurnCardMessage) - _has_bits_[1] &= ~0x00002000u; - ::DealTurnCardMessage* temp = dealturncardmessage_; - dealturncardmessage_ = nullptr; - return temp; + return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance_->dealturncardmessage_; } inline ::DealTurnCardMessage* PokerTHMessage::mutable_dealturncardmessage() { - _has_bits_[1] |= 0x00002000u; - if (dealturncardmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::DealTurnCardMessage>(GetArenaNoVirtual()); - dealturncardmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealTurnCardMessage) + set_has_dealturncardmessage(); + if (dealturncardmessage_ == NULL) dealturncardmessage_ = new ::DealTurnCardMessage; return dealturncardmessage_; } -inline void PokerTHMessage::set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dealturncardmessage_; - } - if (dealturncardmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dealturncardmessage = ::google::protobuf::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) +inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { + clear_has_dealturncardmessage(); + ::DealTurnCardMessage* temp = dealturncardmessage_; + dealturncardmessage_ = NULL; + return temp; } // optional .DealRiverCardMessage dealRiverCardMessage = 48; inline bool PokerTHMessage::has_dealrivercardmessage() const { - return (_has_bits_[1] & 0x00004000u) != 0; + 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; } inline void PokerTHMessage::clear_dealrivercardmessage() { - if (dealrivercardmessage_ != nullptr) dealrivercardmessage_->Clear(); - _has_bits_[1] &= ~0x00004000u; + if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); + clear_has_dealrivercardmessage(); } inline const ::DealRiverCardMessage& PokerTHMessage::dealrivercardmessage() const { - const ::DealRiverCardMessage* p = dealrivercardmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.dealRiverCardMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_DealRiverCardMessage_default_instance_); -} -inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.dealRiverCardMessage) - _has_bits_[1] &= ~0x00004000u; - ::DealRiverCardMessage* temp = dealrivercardmessage_; - dealrivercardmessage_ = nullptr; - return temp; + return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance_->dealrivercardmessage_; } inline ::DealRiverCardMessage* PokerTHMessage::mutable_dealrivercardmessage() { - _has_bits_[1] |= 0x00004000u; - if (dealrivercardmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::DealRiverCardMessage>(GetArenaNoVirtual()); - dealrivercardmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealRiverCardMessage) + set_has_dealrivercardmessage(); + if (dealrivercardmessage_ == NULL) dealrivercardmessage_ = new ::DealRiverCardMessage; return dealrivercardmessage_; } -inline void PokerTHMessage::set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dealrivercardmessage_; - } - if (dealrivercardmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dealrivercardmessage = ::google::protobuf::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) +inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { + clear_has_dealrivercardmessage(); + ::DealRiverCardMessage* temp = dealrivercardmessage_; + dealrivercardmessage_ = NULL; + return temp; } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; inline bool PokerTHMessage::has_allinshowcardsmessage() const { - return (_has_bits_[1] & 0x00008000u) != 0; + 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; } inline void PokerTHMessage::clear_allinshowcardsmessage() { - if (allinshowcardsmessage_ != nullptr) allinshowcardsmessage_->Clear(); - _has_bits_[1] &= ~0x00008000u; + if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); + clear_has_allinshowcardsmessage(); } inline const ::AllInShowCardsMessage& PokerTHMessage::allinshowcardsmessage() const { - const ::AllInShowCardsMessage* p = allinshowcardsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.allInShowCardsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AllInShowCardsMessage_default_instance_); -} -inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.allInShowCardsMessage) - _has_bits_[1] &= ~0x00008000u; - ::AllInShowCardsMessage* temp = allinshowcardsmessage_; - allinshowcardsmessage_ = nullptr; - return temp; + return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance_->allinshowcardsmessage_; } inline ::AllInShowCardsMessage* PokerTHMessage::mutable_allinshowcardsmessage() { - _has_bits_[1] |= 0x00008000u; - if (allinshowcardsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AllInShowCardsMessage>(GetArenaNoVirtual()); - allinshowcardsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.allInShowCardsMessage) + set_has_allinshowcardsmessage(); + if (allinshowcardsmessage_ == NULL) allinshowcardsmessage_ = new ::AllInShowCardsMessage; return allinshowcardsmessage_; } -inline void PokerTHMessage::set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete allinshowcardsmessage_; - } - if (allinshowcardsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - allinshowcardsmessage = ::google::protobuf::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) +inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { + clear_has_allinshowcardsmessage(); + ::AllInShowCardsMessage* temp = allinshowcardsmessage_; + allinshowcardsmessage_ = NULL; + return temp; } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; inline bool PokerTHMessage::has_endofhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00010000u) != 0; + 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; } inline void PokerTHMessage::clear_endofhandshowcardsmessage() { - if (endofhandshowcardsmessage_ != nullptr) endofhandshowcardsmessage_->Clear(); - _has_bits_[1] &= ~0x00010000u; + if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); + clear_has_endofhandshowcardsmessage(); } inline const ::EndOfHandShowCardsMessage& PokerTHMessage::endofhandshowcardsmessage() const { - const ::EndOfHandShowCardsMessage* p = endofhandshowcardsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandShowCardsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_EndOfHandShowCardsMessage_default_instance_); -} -inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.endOfHandShowCardsMessage) - _has_bits_[1] &= ~0x00010000u; - ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; - endofhandshowcardsmessage_ = nullptr; - return temp; + return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance_->endofhandshowcardsmessage_; } inline ::EndOfHandShowCardsMessage* PokerTHMessage::mutable_endofhandshowcardsmessage() { - _has_bits_[1] |= 0x00010000u; - if (endofhandshowcardsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::EndOfHandShowCardsMessage>(GetArenaNoVirtual()); - endofhandshowcardsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandShowCardsMessage) + set_has_endofhandshowcardsmessage(); + if (endofhandshowcardsmessage_ == NULL) endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage; return endofhandshowcardsmessage_; } -inline void PokerTHMessage::set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete endofhandshowcardsmessage_; - } - if (endofhandshowcardsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - endofhandshowcardsmessage = ::google::protobuf::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) +inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { + clear_has_endofhandshowcardsmessage(); + ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; + endofhandshowcardsmessage_ = NULL; + return temp; } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; inline bool PokerTHMessage::has_endofhandhidecardsmessage() const { - return (_has_bits_[1] & 0x00020000u) != 0; + 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; } inline void PokerTHMessage::clear_endofhandhidecardsmessage() { - if (endofhandhidecardsmessage_ != nullptr) endofhandhidecardsmessage_->Clear(); - _has_bits_[1] &= ~0x00020000u; + if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); + clear_has_endofhandhidecardsmessage(); } inline const ::EndOfHandHideCardsMessage& PokerTHMessage::endofhandhidecardsmessage() const { - const ::EndOfHandHideCardsMessage* p = endofhandhidecardsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandHideCardsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_EndOfHandHideCardsMessage_default_instance_); -} -inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.endOfHandHideCardsMessage) - _has_bits_[1] &= ~0x00020000u; - ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; - endofhandhidecardsmessage_ = nullptr; - return temp; + return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance_->endofhandhidecardsmessage_; } inline ::EndOfHandHideCardsMessage* PokerTHMessage::mutable_endofhandhidecardsmessage() { - _has_bits_[1] |= 0x00020000u; - if (endofhandhidecardsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::EndOfHandHideCardsMessage>(GetArenaNoVirtual()); - endofhandhidecardsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandHideCardsMessage) + set_has_endofhandhidecardsmessage(); + if (endofhandhidecardsmessage_ == NULL) endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage; return endofhandhidecardsmessage_; } -inline void PokerTHMessage::set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete endofhandhidecardsmessage_; - } - if (endofhandhidecardsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - endofhandhidecardsmessage = ::google::protobuf::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) +inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { + clear_has_endofhandhidecardsmessage(); + ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; + endofhandhidecardsmessage_ = NULL; + return temp; } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; inline bool PokerTHMessage::has_showmycardsrequestmessage() const { - return (_has_bits_[1] & 0x00040000u) != 0; + 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; } inline void PokerTHMessage::clear_showmycardsrequestmessage() { - if (showmycardsrequestmessage_ != nullptr) showmycardsrequestmessage_->Clear(); - _has_bits_[1] &= ~0x00040000u; + if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); + clear_has_showmycardsrequestmessage(); } inline const ::ShowMyCardsRequestMessage& PokerTHMessage::showmycardsrequestmessage() const { - const ::ShowMyCardsRequestMessage* p = showmycardsrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.showMyCardsRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ShowMyCardsRequestMessage_default_instance_); -} -inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.showMyCardsRequestMessage) - _has_bits_[1] &= ~0x00040000u; - ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; - showmycardsrequestmessage_ = nullptr; - return temp; + return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance_->showmycardsrequestmessage_; } inline ::ShowMyCardsRequestMessage* PokerTHMessage::mutable_showmycardsrequestmessage() { - _has_bits_[1] |= 0x00040000u; - if (showmycardsrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ShowMyCardsRequestMessage>(GetArenaNoVirtual()); - showmycardsrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.showMyCardsRequestMessage) + set_has_showmycardsrequestmessage(); + if (showmycardsrequestmessage_ == NULL) showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage; return showmycardsrequestmessage_; } -inline void PokerTHMessage::set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete showmycardsrequestmessage_; - } - if (showmycardsrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - showmycardsrequestmessage = ::google::protobuf::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) +inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { + clear_has_showmycardsrequestmessage(); + ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; + showmycardsrequestmessage_ = NULL; + return temp; } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; inline bool PokerTHMessage::has_afterhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00080000u) != 0; + 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; } inline void PokerTHMessage::clear_afterhandshowcardsmessage() { - if (afterhandshowcardsmessage_ != nullptr) afterhandshowcardsmessage_->Clear(); - _has_bits_[1] &= ~0x00080000u; + if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); + clear_has_afterhandshowcardsmessage(); } inline const ::AfterHandShowCardsMessage& PokerTHMessage::afterhandshowcardsmessage() const { - const ::AfterHandShowCardsMessage* p = afterhandshowcardsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.afterHandShowCardsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AfterHandShowCardsMessage_default_instance_); -} -inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.afterHandShowCardsMessage) - _has_bits_[1] &= ~0x00080000u; - ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; - afterhandshowcardsmessage_ = nullptr; - return temp; + return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance_->afterhandshowcardsmessage_; } inline ::AfterHandShowCardsMessage* PokerTHMessage::mutable_afterhandshowcardsmessage() { - _has_bits_[1] |= 0x00080000u; - if (afterhandshowcardsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AfterHandShowCardsMessage>(GetArenaNoVirtual()); - afterhandshowcardsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.afterHandShowCardsMessage) + set_has_afterhandshowcardsmessage(); + if (afterhandshowcardsmessage_ == NULL) afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage; return afterhandshowcardsmessage_; } -inline void PokerTHMessage::set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete afterhandshowcardsmessage_; - } - if (afterhandshowcardsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - afterhandshowcardsmessage = ::google::protobuf::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) +inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { + clear_has_afterhandshowcardsmessage(); + ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; + afterhandshowcardsmessage_ = NULL; + return temp; } // optional .EndOfGameMessage endOfGameMessage = 54; inline bool PokerTHMessage::has_endofgamemessage() const { - return (_has_bits_[1] & 0x00100000u) != 0; + 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; } inline void PokerTHMessage::clear_endofgamemessage() { - if (endofgamemessage_ != nullptr) endofgamemessage_->Clear(); - _has_bits_[1] &= ~0x00100000u; + if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); + clear_has_endofgamemessage(); } inline const ::EndOfGameMessage& PokerTHMessage::endofgamemessage() const { - const ::EndOfGameMessage* p = endofgamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.endOfGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_EndOfGameMessage_default_instance_); -} -inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.endOfGameMessage) - _has_bits_[1] &= ~0x00100000u; - ::EndOfGameMessage* temp = endofgamemessage_; - endofgamemessage_ = nullptr; - return temp; + return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance_->endofgamemessage_; } inline ::EndOfGameMessage* PokerTHMessage::mutable_endofgamemessage() { - _has_bits_[1] |= 0x00100000u; - if (endofgamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::EndOfGameMessage>(GetArenaNoVirtual()); - endofgamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfGameMessage) + set_has_endofgamemessage(); + if (endofgamemessage_ == NULL) endofgamemessage_ = new ::EndOfGameMessage; return endofgamemessage_; } -inline void PokerTHMessage::set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete endofgamemessage_; - } - if (endofgamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - endofgamemessage = ::google::protobuf::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) +inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { + clear_has_endofgamemessage(); + ::EndOfGameMessage* temp = endofgamemessage_; + endofgamemessage_ = NULL; + return temp; } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; inline bool PokerTHMessage::has_playeridchangedmessage() const { - return (_has_bits_[1] & 0x00200000u) != 0; + 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; } inline void PokerTHMessage::clear_playeridchangedmessage() { - if (playeridchangedmessage_ != nullptr) playeridchangedmessage_->Clear(); - _has_bits_[1] &= ~0x00200000u; + if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); + clear_has_playeridchangedmessage(); } inline const ::PlayerIdChangedMessage& PokerTHMessage::playeridchangedmessage() const { - const ::PlayerIdChangedMessage* p = playeridchangedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.playerIdChangedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_PlayerIdChangedMessage_default_instance_); -} -inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.playerIdChangedMessage) - _has_bits_[1] &= ~0x00200000u; - ::PlayerIdChangedMessage* temp = playeridchangedmessage_; - playeridchangedmessage_ = nullptr; - return temp; + return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance_->playeridchangedmessage_; } inline ::PlayerIdChangedMessage* PokerTHMessage::mutable_playeridchangedmessage() { - _has_bits_[1] |= 0x00200000u; - if (playeridchangedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::PlayerIdChangedMessage>(GetArenaNoVirtual()); - playeridchangedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerIdChangedMessage) + set_has_playeridchangedmessage(); + if (playeridchangedmessage_ == NULL) playeridchangedmessage_ = new ::PlayerIdChangedMessage; return playeridchangedmessage_; } -inline void PokerTHMessage::set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete playeridchangedmessage_; - } - if (playeridchangedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - playeridchangedmessage = ::google::protobuf::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) +inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { + clear_has_playeridchangedmessage(); + ::PlayerIdChangedMessage* temp = playeridchangedmessage_; + playeridchangedmessage_ = NULL; + return temp; } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; inline bool PokerTHMessage::has_askkickplayermessage() const { - return (_has_bits_[1] & 0x00400000u) != 0; + 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; } inline void PokerTHMessage::clear_askkickplayermessage() { - if (askkickplayermessage_ != nullptr) askkickplayermessage_->Clear(); - _has_bits_[1] &= ~0x00400000u; + if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); + clear_has_askkickplayermessage(); } inline const ::AskKickPlayerMessage& PokerTHMessage::askkickplayermessage() const { - const ::AskKickPlayerMessage* p = askkickplayermessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.askKickPlayerMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AskKickPlayerMessage_default_instance_); -} -inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.askKickPlayerMessage) - _has_bits_[1] &= ~0x00400000u; - ::AskKickPlayerMessage* temp = askkickplayermessage_; - askkickplayermessage_ = nullptr; - return temp; + return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance_->askkickplayermessage_; } inline ::AskKickPlayerMessage* PokerTHMessage::mutable_askkickplayermessage() { - _has_bits_[1] |= 0x00400000u; - if (askkickplayermessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AskKickPlayerMessage>(GetArenaNoVirtual()); - askkickplayermessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickPlayerMessage) + set_has_askkickplayermessage(); + if (askkickplayermessage_ == NULL) askkickplayermessage_ = new ::AskKickPlayerMessage; return askkickplayermessage_; } -inline void PokerTHMessage::set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete askkickplayermessage_; - } - if (askkickplayermessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - askkickplayermessage = ::google::protobuf::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) +inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { + clear_has_askkickplayermessage(); + ::AskKickPlayerMessage* temp = askkickplayermessage_; + askkickplayermessage_ = NULL; + return temp; } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; inline bool PokerTHMessage::has_askkickdeniedmessage() const { - return (_has_bits_[1] & 0x00800000u) != 0; + 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; } inline void PokerTHMessage::clear_askkickdeniedmessage() { - if (askkickdeniedmessage_ != nullptr) askkickdeniedmessage_->Clear(); - _has_bits_[1] &= ~0x00800000u; + if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); + clear_has_askkickdeniedmessage(); } inline const ::AskKickDeniedMessage& PokerTHMessage::askkickdeniedmessage() const { - const ::AskKickDeniedMessage* p = askkickdeniedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.askKickDeniedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AskKickDeniedMessage_default_instance_); -} -inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.askKickDeniedMessage) - _has_bits_[1] &= ~0x00800000u; - ::AskKickDeniedMessage* temp = askkickdeniedmessage_; - askkickdeniedmessage_ = nullptr; - return temp; + return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance_->askkickdeniedmessage_; } inline ::AskKickDeniedMessage* PokerTHMessage::mutable_askkickdeniedmessage() { - _has_bits_[1] |= 0x00800000u; - if (askkickdeniedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AskKickDeniedMessage>(GetArenaNoVirtual()); - askkickdeniedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickDeniedMessage) + set_has_askkickdeniedmessage(); + if (askkickdeniedmessage_ == NULL) askkickdeniedmessage_ = new ::AskKickDeniedMessage; return askkickdeniedmessage_; } -inline void PokerTHMessage::set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete askkickdeniedmessage_; - } - if (askkickdeniedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - askkickdeniedmessage = ::google::protobuf::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) +inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { + clear_has_askkickdeniedmessage(); + ::AskKickDeniedMessage* temp = askkickdeniedmessage_; + askkickdeniedmessage_ = NULL; + return temp; } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; inline bool PokerTHMessage::has_startkickpetitionmessage() const { - return (_has_bits_[1] & 0x01000000u) != 0; + 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; } inline void PokerTHMessage::clear_startkickpetitionmessage() { - if (startkickpetitionmessage_ != nullptr) startkickpetitionmessage_->Clear(); - _has_bits_[1] &= ~0x01000000u; + if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); + clear_has_startkickpetitionmessage(); } inline const ::StartKickPetitionMessage& PokerTHMessage::startkickpetitionmessage() const { - const ::StartKickPetitionMessage* p = startkickpetitionmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.startKickPetitionMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_StartKickPetitionMessage_default_instance_); -} -inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.startKickPetitionMessage) - _has_bits_[1] &= ~0x01000000u; - ::StartKickPetitionMessage* temp = startkickpetitionmessage_; - startkickpetitionmessage_ = nullptr; - return temp; + return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance_->startkickpetitionmessage_; } inline ::StartKickPetitionMessage* PokerTHMessage::mutable_startkickpetitionmessage() { - _has_bits_[1] |= 0x01000000u; - if (startkickpetitionmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::StartKickPetitionMessage>(GetArenaNoVirtual()); - startkickpetitionmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.startKickPetitionMessage) + set_has_startkickpetitionmessage(); + if (startkickpetitionmessage_ == NULL) startkickpetitionmessage_ = new ::StartKickPetitionMessage; return startkickpetitionmessage_; } -inline void PokerTHMessage::set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete startkickpetitionmessage_; - } - if (startkickpetitionmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - startkickpetitionmessage = ::google::protobuf::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) +inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { + clear_has_startkickpetitionmessage(); + ::StartKickPetitionMessage* temp = startkickpetitionmessage_; + startkickpetitionmessage_ = NULL; + return temp; } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; inline bool PokerTHMessage::has_votekickrequestmessage() const { - return (_has_bits_[1] & 0x02000000u) != 0; + 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; } inline void PokerTHMessage::clear_votekickrequestmessage() { - if (votekickrequestmessage_ != nullptr) votekickrequestmessage_->Clear(); - _has_bits_[1] &= ~0x02000000u; + if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); + clear_has_votekickrequestmessage(); } inline const ::VoteKickRequestMessage& PokerTHMessage::votekickrequestmessage() const { - const ::VoteKickRequestMessage* p = votekickrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_VoteKickRequestMessage_default_instance_); -} -inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.voteKickRequestMessage) - _has_bits_[1] &= ~0x02000000u; - ::VoteKickRequestMessage* temp = votekickrequestmessage_; - votekickrequestmessage_ = nullptr; - return temp; + return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance_->votekickrequestmessage_; } inline ::VoteKickRequestMessage* PokerTHMessage::mutable_votekickrequestmessage() { - _has_bits_[1] |= 0x02000000u; - if (votekickrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::VoteKickRequestMessage>(GetArenaNoVirtual()); - votekickrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickRequestMessage) + set_has_votekickrequestmessage(); + if (votekickrequestmessage_ == NULL) votekickrequestmessage_ = new ::VoteKickRequestMessage; return votekickrequestmessage_; } -inline void PokerTHMessage::set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete votekickrequestmessage_; - } - if (votekickrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - votekickrequestmessage = ::google::protobuf::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) +inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { + clear_has_votekickrequestmessage(); + ::VoteKickRequestMessage* temp = votekickrequestmessage_; + votekickrequestmessage_ = NULL; + return temp; } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; inline bool PokerTHMessage::has_votekickreplymessage() const { - return (_has_bits_[1] & 0x04000000u) != 0; + 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; } inline void PokerTHMessage::clear_votekickreplymessage() { - if (votekickreplymessage_ != nullptr) votekickreplymessage_->Clear(); - _has_bits_[1] &= ~0x04000000u; + if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); + clear_has_votekickreplymessage(); } inline const ::VoteKickReplyMessage& PokerTHMessage::votekickreplymessage() const { - const ::VoteKickReplyMessage* p = votekickreplymessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickReplyMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_VoteKickReplyMessage_default_instance_); -} -inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.voteKickReplyMessage) - _has_bits_[1] &= ~0x04000000u; - ::VoteKickReplyMessage* temp = votekickreplymessage_; - votekickreplymessage_ = nullptr; - return temp; + return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance_->votekickreplymessage_; } inline ::VoteKickReplyMessage* PokerTHMessage::mutable_votekickreplymessage() { - _has_bits_[1] |= 0x04000000u; - if (votekickreplymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::VoteKickReplyMessage>(GetArenaNoVirtual()); - votekickreplymessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickReplyMessage) + set_has_votekickreplymessage(); + if (votekickreplymessage_ == NULL) votekickreplymessage_ = new ::VoteKickReplyMessage; return votekickreplymessage_; } -inline void PokerTHMessage::set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete votekickreplymessage_; - } - if (votekickreplymessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - votekickreplymessage = ::google::protobuf::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) +inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { + clear_has_votekickreplymessage(); + ::VoteKickReplyMessage* temp = votekickreplymessage_; + votekickreplymessage_ = NULL; + return temp; } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; inline bool PokerTHMessage::has_kickpetitionupdatemessage() const { - return (_has_bits_[1] & 0x08000000u) != 0; + 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; } inline void PokerTHMessage::clear_kickpetitionupdatemessage() { - if (kickpetitionupdatemessage_ != nullptr) kickpetitionupdatemessage_->Clear(); - _has_bits_[1] &= ~0x08000000u; + if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); + clear_has_kickpetitionupdatemessage(); } inline const ::KickPetitionUpdateMessage& PokerTHMessage::kickpetitionupdatemessage() const { - const ::KickPetitionUpdateMessage* p = kickpetitionupdatemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.kickPetitionUpdateMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_KickPetitionUpdateMessage_default_instance_); -} -inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.kickPetitionUpdateMessage) - _has_bits_[1] &= ~0x08000000u; - ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; - kickpetitionupdatemessage_ = nullptr; - return temp; + return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance_->kickpetitionupdatemessage_; } inline ::KickPetitionUpdateMessage* PokerTHMessage::mutable_kickpetitionupdatemessage() { - _has_bits_[1] |= 0x08000000u; - if (kickpetitionupdatemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::KickPetitionUpdateMessage>(GetArenaNoVirtual()); - kickpetitionupdatemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPetitionUpdateMessage) + set_has_kickpetitionupdatemessage(); + if (kickpetitionupdatemessage_ == NULL) kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage; return kickpetitionupdatemessage_; } -inline void PokerTHMessage::set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete kickpetitionupdatemessage_; - } - if (kickpetitionupdatemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - kickpetitionupdatemessage = ::google::protobuf::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) +inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { + clear_has_kickpetitionupdatemessage(); + ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; + kickpetitionupdatemessage_ = NULL; + return temp; } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; inline bool PokerTHMessage::has_endkickpetitionmessage() const { - return (_has_bits_[1] & 0x10000000u) != 0; + 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; } inline void PokerTHMessage::clear_endkickpetitionmessage() { - if (endkickpetitionmessage_ != nullptr) endkickpetitionmessage_->Clear(); - _has_bits_[1] &= ~0x10000000u; + if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); + clear_has_endkickpetitionmessage(); } inline const ::EndKickPetitionMessage& PokerTHMessage::endkickpetitionmessage() const { - const ::EndKickPetitionMessage* p = endkickpetitionmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.endKickPetitionMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_EndKickPetitionMessage_default_instance_); -} -inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.endKickPetitionMessage) - _has_bits_[1] &= ~0x10000000u; - ::EndKickPetitionMessage* temp = endkickpetitionmessage_; - endkickpetitionmessage_ = nullptr; - return temp; + return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance_->endkickpetitionmessage_; } inline ::EndKickPetitionMessage* PokerTHMessage::mutable_endkickpetitionmessage() { - _has_bits_[1] |= 0x10000000u; - if (endkickpetitionmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::EndKickPetitionMessage>(GetArenaNoVirtual()); - endkickpetitionmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.endKickPetitionMessage) + set_has_endkickpetitionmessage(); + if (endkickpetitionmessage_ == NULL) endkickpetitionmessage_ = new ::EndKickPetitionMessage; return endkickpetitionmessage_; } -inline void PokerTHMessage::set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete endkickpetitionmessage_; - } - if (endkickpetitionmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - endkickpetitionmessage = ::google::protobuf::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) +inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { + clear_has_endkickpetitionmessage(); + ::EndKickPetitionMessage* temp = endkickpetitionmessage_; + endkickpetitionmessage_ = NULL; + return temp; } // optional .StatisticsMessage statisticsMessage = 63; inline bool PokerTHMessage::has_statisticsmessage() const { - return (_has_bits_[1] & 0x20000000u) != 0; + 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; } inline void PokerTHMessage::clear_statisticsmessage() { - if (statisticsmessage_ != nullptr) statisticsmessage_->Clear(); - _has_bits_[1] &= ~0x20000000u; + if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); + clear_has_statisticsmessage(); } inline const ::StatisticsMessage& PokerTHMessage::statisticsmessage() const { - const ::StatisticsMessage* p = statisticsmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.statisticsMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_StatisticsMessage_default_instance_); -} -inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.statisticsMessage) - _has_bits_[1] &= ~0x20000000u; - ::StatisticsMessage* temp = statisticsmessage_; - statisticsmessage_ = nullptr; - return temp; + return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance_->statisticsmessage_; } inline ::StatisticsMessage* PokerTHMessage::mutable_statisticsmessage() { - _has_bits_[1] |= 0x20000000u; - if (statisticsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::StatisticsMessage>(GetArenaNoVirtual()); - statisticsmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.statisticsMessage) + set_has_statisticsmessage(); + if (statisticsmessage_ == NULL) statisticsmessage_ = new ::StatisticsMessage; return statisticsmessage_; } -inline void PokerTHMessage::set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete statisticsmessage_; - } - if (statisticsmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - statisticsmessage = ::google::protobuf::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) +inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { + clear_has_statisticsmessage(); + ::StatisticsMessage* temp = statisticsmessage_; + statisticsmessage_ = NULL; + return temp; } // optional .ChatRequestMessage chatRequestMessage = 64; inline bool PokerTHMessage::has_chatrequestmessage() const { - return (_has_bits_[1] & 0x40000000u) != 0; + 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; } inline void PokerTHMessage::clear_chatrequestmessage() { - if (chatrequestmessage_ != nullptr) chatrequestmessage_->Clear(); - _has_bits_[1] &= ~0x40000000u; + if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); + clear_has_chatrequestmessage(); } inline const ::ChatRequestMessage& PokerTHMessage::chatrequestmessage() const { - const ::ChatRequestMessage* p = chatrequestmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.chatRequestMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ChatRequestMessage_default_instance_); -} -inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.chatRequestMessage) - _has_bits_[1] &= ~0x40000000u; - ::ChatRequestMessage* temp = chatrequestmessage_; - chatrequestmessage_ = nullptr; - return temp; + return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance_->chatrequestmessage_; } inline ::ChatRequestMessage* PokerTHMessage::mutable_chatrequestmessage() { - _has_bits_[1] |= 0x40000000u; - if (chatrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ChatRequestMessage>(GetArenaNoVirtual()); - chatrequestmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRequestMessage) + set_has_chatrequestmessage(); + if (chatrequestmessage_ == NULL) chatrequestmessage_ = new ::ChatRequestMessage; return chatrequestmessage_; } -inline void PokerTHMessage::set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete chatrequestmessage_; - } - if (chatrequestmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - chatrequestmessage = ::google::protobuf::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) +inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { + clear_has_chatrequestmessage(); + ::ChatRequestMessage* temp = chatrequestmessage_; + chatrequestmessage_ = NULL; + return temp; } // optional .ChatMessage chatMessage = 65; inline bool PokerTHMessage::has_chatmessage() const { - return (_has_bits_[1] & 0x80000000u) != 0; + 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; } inline void PokerTHMessage::clear_chatmessage() { - if (chatmessage_ != nullptr) chatmessage_->Clear(); - _has_bits_[1] &= ~0x80000000u; + if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); + clear_has_chatmessage(); } inline const ::ChatMessage& PokerTHMessage::chatmessage() const { - const ::ChatMessage* p = chatmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.chatMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ChatMessage_default_instance_); -} -inline ::ChatMessage* PokerTHMessage::release_chatmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.chatMessage) - _has_bits_[1] &= ~0x80000000u; - ::ChatMessage* temp = chatmessage_; - chatmessage_ = nullptr; - return temp; + return chatmessage_ != NULL ? *chatmessage_ : *default_instance_->chatmessage_; } inline ::ChatMessage* PokerTHMessage::mutable_chatmessage() { - _has_bits_[1] |= 0x80000000u; - if (chatmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ChatMessage>(GetArenaNoVirtual()); - chatmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatMessage) + set_has_chatmessage(); + if (chatmessage_ == NULL) chatmessage_ = new ::ChatMessage; return chatmessage_; } -inline void PokerTHMessage::set_allocated_chatmessage(::ChatMessage* chatmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete chatmessage_; - } - if (chatmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - chatmessage = ::google::protobuf::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) +inline ::ChatMessage* PokerTHMessage::release_chatmessage() { + clear_has_chatmessage(); + ::ChatMessage* temp = chatmessage_; + chatmessage_ = NULL; + return temp; } // optional .ChatRejectMessage chatRejectMessage = 66; inline bool PokerTHMessage::has_chatrejectmessage() const { - return (_has_bits_[2] & 0x00000001u) != 0; + 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; } inline void PokerTHMessage::clear_chatrejectmessage() { - if (chatrejectmessage_ != nullptr) chatrejectmessage_->Clear(); - _has_bits_[2] &= ~0x00000001u; + if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); + clear_has_chatrejectmessage(); } inline const ::ChatRejectMessage& PokerTHMessage::chatrejectmessage() const { - const ::ChatRejectMessage* p = chatrejectmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.chatRejectMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ChatRejectMessage_default_instance_); -} -inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.chatRejectMessage) - _has_bits_[2] &= ~0x00000001u; - ::ChatRejectMessage* temp = chatrejectmessage_; - chatrejectmessage_ = nullptr; - return temp; + return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance_->chatrejectmessage_; } inline ::ChatRejectMessage* PokerTHMessage::mutable_chatrejectmessage() { - _has_bits_[2] |= 0x00000001u; - if (chatrejectmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ChatRejectMessage>(GetArenaNoVirtual()); - chatrejectmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRejectMessage) + set_has_chatrejectmessage(); + if (chatrejectmessage_ == NULL) chatrejectmessage_ = new ::ChatRejectMessage; return chatrejectmessage_; } -inline void PokerTHMessage::set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete chatrejectmessage_; - } - if (chatrejectmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - chatrejectmessage = ::google::protobuf::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) +inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { + clear_has_chatrejectmessage(); + ::ChatRejectMessage* temp = chatrejectmessage_; + chatrejectmessage_ = NULL; + return temp; } // optional .DialogMessage dialogMessage = 67; inline bool PokerTHMessage::has_dialogmessage() const { - return (_has_bits_[2] & 0x00000002u) != 0; + 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; } inline void PokerTHMessage::clear_dialogmessage() { - if (dialogmessage_ != nullptr) dialogmessage_->Clear(); - _has_bits_[2] &= ~0x00000002u; + if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); + clear_has_dialogmessage(); } inline const ::DialogMessage& PokerTHMessage::dialogmessage() const { - const ::DialogMessage* p = dialogmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.dialogMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_DialogMessage_default_instance_); -} -inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.dialogMessage) - _has_bits_[2] &= ~0x00000002u; - ::DialogMessage* temp = dialogmessage_; - dialogmessage_ = nullptr; - return temp; + return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance_->dialogmessage_; } inline ::DialogMessage* PokerTHMessage::mutable_dialogmessage() { - _has_bits_[2] |= 0x00000002u; - if (dialogmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::DialogMessage>(GetArenaNoVirtual()); - dialogmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.dialogMessage) + set_has_dialogmessage(); + if (dialogmessage_ == NULL) dialogmessage_ = new ::DialogMessage; return dialogmessage_; } -inline void PokerTHMessage::set_allocated_dialogmessage(::DialogMessage* dialogmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dialogmessage_; - } - if (dialogmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dialogmessage = ::google::protobuf::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) +inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { + clear_has_dialogmessage(); + ::DialogMessage* temp = dialogmessage_; + dialogmessage_ = NULL; + return temp; } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; inline bool PokerTHMessage::has_timeoutwarningmessage() const { - return (_has_bits_[2] & 0x00000004u) != 0; + 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; } inline void PokerTHMessage::clear_timeoutwarningmessage() { - if (timeoutwarningmessage_ != nullptr) timeoutwarningmessage_->Clear(); - _has_bits_[2] &= ~0x00000004u; + if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); + clear_has_timeoutwarningmessage(); } inline const ::TimeoutWarningMessage& PokerTHMessage::timeoutwarningmessage() const { - const ::TimeoutWarningMessage* p = timeoutwarningmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.timeoutWarningMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_TimeoutWarningMessage_default_instance_); -} -inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.timeoutWarningMessage) - _has_bits_[2] &= ~0x00000004u; - ::TimeoutWarningMessage* temp = timeoutwarningmessage_; - timeoutwarningmessage_ = nullptr; - return temp; + return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance_->timeoutwarningmessage_; } inline ::TimeoutWarningMessage* PokerTHMessage::mutable_timeoutwarningmessage() { - _has_bits_[2] |= 0x00000004u; - if (timeoutwarningmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::TimeoutWarningMessage>(GetArenaNoVirtual()); - timeoutwarningmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.timeoutWarningMessage) + set_has_timeoutwarningmessage(); + if (timeoutwarningmessage_ == NULL) timeoutwarningmessage_ = new ::TimeoutWarningMessage; return timeoutwarningmessage_; } -inline void PokerTHMessage::set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete timeoutwarningmessage_; - } - if (timeoutwarningmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - timeoutwarningmessage = ::google::protobuf::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) +inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { + clear_has_timeoutwarningmessage(); + ::TimeoutWarningMessage* temp = timeoutwarningmessage_; + timeoutwarningmessage_ = NULL; + return temp; } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; inline bool PokerTHMessage::has_resettimeoutmessage() const { - return (_has_bits_[2] & 0x00000008u) != 0; + 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; } inline void PokerTHMessage::clear_resettimeoutmessage() { - if (resettimeoutmessage_ != nullptr) resettimeoutmessage_->Clear(); - _has_bits_[2] &= ~0x00000008u; + if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); + clear_has_resettimeoutmessage(); } inline const ::ResetTimeoutMessage& PokerTHMessage::resettimeoutmessage() const { - const ::ResetTimeoutMessage* p = resettimeoutmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.resetTimeoutMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ResetTimeoutMessage_default_instance_); -} -inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.resetTimeoutMessage) - _has_bits_[2] &= ~0x00000008u; - ::ResetTimeoutMessage* temp = resettimeoutmessage_; - resettimeoutmessage_ = nullptr; - return temp; + return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance_->resettimeoutmessage_; } inline ::ResetTimeoutMessage* PokerTHMessage::mutable_resettimeoutmessage() { - _has_bits_[2] |= 0x00000008u; - if (resettimeoutmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ResetTimeoutMessage>(GetArenaNoVirtual()); - resettimeoutmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.resetTimeoutMessage) + set_has_resettimeoutmessage(); + if (resettimeoutmessage_ == NULL) resettimeoutmessage_ = new ::ResetTimeoutMessage; return resettimeoutmessage_; } -inline void PokerTHMessage::set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resettimeoutmessage_; - } - if (resettimeoutmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resettimeoutmessage = ::google::protobuf::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) +inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { + clear_has_resettimeoutmessage(); + ::ResetTimeoutMessage* temp = resettimeoutmessage_; + resettimeoutmessage_ = NULL; + return temp; } // optional .ReportAvatarMessage reportAvatarMessage = 70; inline bool PokerTHMessage::has_reportavatarmessage() const { - return (_has_bits_[2] & 0x00000010u) != 0; + 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; } inline void PokerTHMessage::clear_reportavatarmessage() { - if (reportavatarmessage_ != nullptr) reportavatarmessage_->Clear(); - _has_bits_[2] &= ~0x00000010u; + if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); + clear_has_reportavatarmessage(); } inline const ::ReportAvatarMessage& PokerTHMessage::reportavatarmessage() const { - const ::ReportAvatarMessage* p = reportavatarmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ReportAvatarMessage_default_instance_); -} -inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.reportAvatarMessage) - _has_bits_[2] &= ~0x00000010u; - ::ReportAvatarMessage* temp = reportavatarmessage_; - reportavatarmessage_ = nullptr; - return temp; + return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance_->reportavatarmessage_; } inline ::ReportAvatarMessage* PokerTHMessage::mutable_reportavatarmessage() { - _has_bits_[2] |= 0x00000010u; - if (reportavatarmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ReportAvatarMessage>(GetArenaNoVirtual()); - reportavatarmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarMessage) + set_has_reportavatarmessage(); + if (reportavatarmessage_ == NULL) reportavatarmessage_ = new ::ReportAvatarMessage; return reportavatarmessage_; } -inline void PokerTHMessage::set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reportavatarmessage_; - } - if (reportavatarmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reportavatarmessage = ::google::protobuf::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) +inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { + clear_has_reportavatarmessage(); + ::ReportAvatarMessage* temp = reportavatarmessage_; + reportavatarmessage_ = NULL; + return temp; } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; inline bool PokerTHMessage::has_reportavatarackmessage() const { - return (_has_bits_[2] & 0x00000020u) != 0; + 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; } inline void PokerTHMessage::clear_reportavatarackmessage() { - if (reportavatarackmessage_ != nullptr) reportavatarackmessage_->Clear(); - _has_bits_[2] &= ~0x00000020u; + if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); + clear_has_reportavatarackmessage(); } inline const ::ReportAvatarAckMessage& PokerTHMessage::reportavatarackmessage() const { - const ::ReportAvatarAckMessage* p = reportavatarackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ReportAvatarAckMessage_default_instance_); -} -inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.reportAvatarAckMessage) - _has_bits_[2] &= ~0x00000020u; - ::ReportAvatarAckMessage* temp = reportavatarackmessage_; - reportavatarackmessage_ = nullptr; - return temp; + return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance_->reportavatarackmessage_; } inline ::ReportAvatarAckMessage* PokerTHMessage::mutable_reportavatarackmessage() { - _has_bits_[2] |= 0x00000020u; - if (reportavatarackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ReportAvatarAckMessage>(GetArenaNoVirtual()); - reportavatarackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarAckMessage) + set_has_reportavatarackmessage(); + if (reportavatarackmessage_ == NULL) reportavatarackmessage_ = new ::ReportAvatarAckMessage; return reportavatarackmessage_; } -inline void PokerTHMessage::set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reportavatarackmessage_; - } - if (reportavatarackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reportavatarackmessage = ::google::protobuf::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) +inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { + clear_has_reportavatarackmessage(); + ::ReportAvatarAckMessage* temp = reportavatarackmessage_; + reportavatarackmessage_ = NULL; + return temp; } // optional .ReportGameMessage reportGameMessage = 72; inline bool PokerTHMessage::has_reportgamemessage() const { - return (_has_bits_[2] & 0x00000040u) != 0; + 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; } inline void PokerTHMessage::clear_reportgamemessage() { - if (reportgamemessage_ != nullptr) reportgamemessage_->Clear(); - _has_bits_[2] &= ~0x00000040u; + if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); + clear_has_reportgamemessage(); } inline const ::ReportGameMessage& PokerTHMessage::reportgamemessage() const { - const ::ReportGameMessage* p = reportgamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ReportGameMessage_default_instance_); -} -inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.reportGameMessage) - _has_bits_[2] &= ~0x00000040u; - ::ReportGameMessage* temp = reportgamemessage_; - reportgamemessage_ = nullptr; - return temp; + return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance_->reportgamemessage_; } inline ::ReportGameMessage* PokerTHMessage::mutable_reportgamemessage() { - _has_bits_[2] |= 0x00000040u; - if (reportgamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ReportGameMessage>(GetArenaNoVirtual()); - reportgamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameMessage) + set_has_reportgamemessage(); + if (reportgamemessage_ == NULL) reportgamemessage_ = new ::ReportGameMessage; return reportgamemessage_; } -inline void PokerTHMessage::set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reportgamemessage_; - } - if (reportgamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reportgamemessage = ::google::protobuf::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) +inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { + clear_has_reportgamemessage(); + ::ReportGameMessage* temp = reportgamemessage_; + reportgamemessage_ = NULL; + return temp; } // optional .ReportGameAckMessage reportGameAckMessage = 73; inline bool PokerTHMessage::has_reportgameackmessage() const { - return (_has_bits_[2] & 0x00000080u) != 0; + 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; } inline void PokerTHMessage::clear_reportgameackmessage() { - if (reportgameackmessage_ != nullptr) reportgameackmessage_->Clear(); - _has_bits_[2] &= ~0x00000080u; + if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); + clear_has_reportgameackmessage(); } inline const ::ReportGameAckMessage& PokerTHMessage::reportgameackmessage() const { - const ::ReportGameAckMessage* p = reportgameackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ReportGameAckMessage_default_instance_); -} -inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.reportGameAckMessage) - _has_bits_[2] &= ~0x00000080u; - ::ReportGameAckMessage* temp = reportgameackmessage_; - reportgameackmessage_ = nullptr; - return temp; + return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance_->reportgameackmessage_; } inline ::ReportGameAckMessage* PokerTHMessage::mutable_reportgameackmessage() { - _has_bits_[2] |= 0x00000080u; - if (reportgameackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ReportGameAckMessage>(GetArenaNoVirtual()); - reportgameackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameAckMessage) + set_has_reportgameackmessage(); + if (reportgameackmessage_ == NULL) reportgameackmessage_ = new ::ReportGameAckMessage; return reportgameackmessage_; } -inline void PokerTHMessage::set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reportgameackmessage_; - } - if (reportgameackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reportgameackmessage = ::google::protobuf::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) +inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { + clear_has_reportgameackmessage(); + ::ReportGameAckMessage* temp = reportgameackmessage_; + reportgameackmessage_ = NULL; + return temp; } // optional .ErrorMessage errorMessage = 74; inline bool PokerTHMessage::has_errormessage() const { - return (_has_bits_[2] & 0x00000100u) != 0; + 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; } inline void PokerTHMessage::clear_errormessage() { - if (errormessage_ != nullptr) errormessage_->Clear(); - _has_bits_[2] &= ~0x00000100u; + if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); + clear_has_errormessage(); } inline const ::ErrorMessage& PokerTHMessage::errormessage() const { - const ::ErrorMessage* p = errormessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.errorMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_ErrorMessage_default_instance_); -} -inline ::ErrorMessage* PokerTHMessage::release_errormessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.errorMessage) - _has_bits_[2] &= ~0x00000100u; - ::ErrorMessage* temp = errormessage_; - errormessage_ = nullptr; - return temp; + return errormessage_ != NULL ? *errormessage_ : *default_instance_->errormessage_; } inline ::ErrorMessage* PokerTHMessage::mutable_errormessage() { - _has_bits_[2] |= 0x00000100u; - if (errormessage_ == nullptr) { - auto* p = CreateMaybeMessage<::ErrorMessage>(GetArenaNoVirtual()); - errormessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.errorMessage) + set_has_errormessage(); + if (errormessage_ == NULL) errormessage_ = new ::ErrorMessage; return errormessage_; } -inline void PokerTHMessage::set_allocated_errormessage(::ErrorMessage* errormessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete errormessage_; - } - if (errormessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - errormessage = ::google::protobuf::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) +inline ::ErrorMessage* PokerTHMessage::release_errormessage() { + clear_has_errormessage(); + ::ErrorMessage* temp = errormessage_; + errormessage_ = NULL; + return temp; } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; inline bool PokerTHMessage::has_adminremovegamemessage() const { - return (_has_bits_[2] & 0x00000200u) != 0; + 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; } inline void PokerTHMessage::clear_adminremovegamemessage() { - if (adminremovegamemessage_ != nullptr) adminremovegamemessage_->Clear(); - _has_bits_[2] &= ~0x00000200u; + if (adminremovegamemessage_ != NULL) adminremovegamemessage_->::AdminRemoveGameMessage::Clear(); + clear_has_adminremovegamemessage(); } inline const ::AdminRemoveGameMessage& PokerTHMessage::adminremovegamemessage() const { - const ::AdminRemoveGameMessage* p = adminremovegamemessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AdminRemoveGameMessage_default_instance_); -} -inline ::AdminRemoveGameMessage* PokerTHMessage::release_adminremovegamemessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.adminRemoveGameMessage) - _has_bits_[2] &= ~0x00000200u; - ::AdminRemoveGameMessage* temp = adminremovegamemessage_; - adminremovegamemessage_ = nullptr; - return temp; + return adminremovegamemessage_ != NULL ? *adminremovegamemessage_ : *default_instance_->adminremovegamemessage_; } inline ::AdminRemoveGameMessage* PokerTHMessage::mutable_adminremovegamemessage() { - _has_bits_[2] |= 0x00000200u; - if (adminremovegamemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AdminRemoveGameMessage>(GetArenaNoVirtual()); - adminremovegamemessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameMessage) + set_has_adminremovegamemessage(); + if (adminremovegamemessage_ == NULL) adminremovegamemessage_ = new ::AdminRemoveGameMessage; return adminremovegamemessage_; } -inline void PokerTHMessage::set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete adminremovegamemessage_; - } - if (adminremovegamemessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - adminremovegamemessage = ::google::protobuf::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) +inline ::AdminRemoveGameMessage* PokerTHMessage::release_adminremovegamemessage() { + clear_has_adminremovegamemessage(); + ::AdminRemoveGameMessage* temp = adminremovegamemessage_; + adminremovegamemessage_ = NULL; + return temp; } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; inline bool PokerTHMessage::has_adminremovegameackmessage() const { - return (_has_bits_[2] & 0x00000400u) != 0; + 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; } inline void PokerTHMessage::clear_adminremovegameackmessage() { - if (adminremovegameackmessage_ != nullptr) adminremovegameackmessage_->Clear(); - _has_bits_[2] &= ~0x00000400u; + if (adminremovegameackmessage_ != NULL) adminremovegameackmessage_->::AdminRemoveGameAckMessage::Clear(); + clear_has_adminremovegameackmessage(); } inline const ::AdminRemoveGameAckMessage& PokerTHMessage::adminremovegameackmessage() const { - const ::AdminRemoveGameAckMessage* p = adminremovegameackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AdminRemoveGameAckMessage_default_instance_); -} -inline ::AdminRemoveGameAckMessage* PokerTHMessage::release_adminremovegameackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.adminRemoveGameAckMessage) - _has_bits_[2] &= ~0x00000400u; - ::AdminRemoveGameAckMessage* temp = adminremovegameackmessage_; - adminremovegameackmessage_ = nullptr; - return temp; + return adminremovegameackmessage_ != NULL ? *adminremovegameackmessage_ : *default_instance_->adminremovegameackmessage_; } inline ::AdminRemoveGameAckMessage* PokerTHMessage::mutable_adminremovegameackmessage() { - _has_bits_[2] |= 0x00000400u; - if (adminremovegameackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AdminRemoveGameAckMessage>(GetArenaNoVirtual()); - adminremovegameackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameAckMessage) + set_has_adminremovegameackmessage(); + if (adminremovegameackmessage_ == NULL) adminremovegameackmessage_ = new ::AdminRemoveGameAckMessage; return adminremovegameackmessage_; } -inline void PokerTHMessage::set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete adminremovegameackmessage_; - } - if (adminremovegameackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - adminremovegameackmessage = ::google::protobuf::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) +inline ::AdminRemoveGameAckMessage* PokerTHMessage::release_adminremovegameackmessage() { + clear_has_adminremovegameackmessage(); + ::AdminRemoveGameAckMessage* temp = adminremovegameackmessage_; + adminremovegameackmessage_ = NULL; + return temp; } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; inline bool PokerTHMessage::has_adminbanplayermessage() const { - return (_has_bits_[2] & 0x00000800u) != 0; + 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; } inline void PokerTHMessage::clear_adminbanplayermessage() { - if (adminbanplayermessage_ != nullptr) adminbanplayermessage_->Clear(); - _has_bits_[2] &= ~0x00000800u; + if (adminbanplayermessage_ != NULL) adminbanplayermessage_->::AdminBanPlayerMessage::Clear(); + clear_has_adminbanplayermessage(); } inline const ::AdminBanPlayerMessage& PokerTHMessage::adminbanplayermessage() const { - const ::AdminBanPlayerMessage* p = adminbanplayermessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AdminBanPlayerMessage_default_instance_); -} -inline ::AdminBanPlayerMessage* PokerTHMessage::release_adminbanplayermessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.adminBanPlayerMessage) - _has_bits_[2] &= ~0x00000800u; - ::AdminBanPlayerMessage* temp = adminbanplayermessage_; - adminbanplayermessage_ = nullptr; - return temp; + return adminbanplayermessage_ != NULL ? *adminbanplayermessage_ : *default_instance_->adminbanplayermessage_; } inline ::AdminBanPlayerMessage* PokerTHMessage::mutable_adminbanplayermessage() { - _has_bits_[2] |= 0x00000800u; - if (adminbanplayermessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AdminBanPlayerMessage>(GetArenaNoVirtual()); - adminbanplayermessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerMessage) + set_has_adminbanplayermessage(); + if (adminbanplayermessage_ == NULL) adminbanplayermessage_ = new ::AdminBanPlayerMessage; return adminbanplayermessage_; } -inline void PokerTHMessage::set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete adminbanplayermessage_; - } - if (adminbanplayermessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - adminbanplayermessage = ::google::protobuf::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) +inline ::AdminBanPlayerMessage* PokerTHMessage::release_adminbanplayermessage() { + clear_has_adminbanplayermessage(); + ::AdminBanPlayerMessage* temp = adminbanplayermessage_; + adminbanplayermessage_ = NULL; + return temp; } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; inline bool PokerTHMessage::has_adminbanplayerackmessage() const { - return (_has_bits_[2] & 0x00001000u) != 0; + 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; } inline void PokerTHMessage::clear_adminbanplayerackmessage() { - if (adminbanplayerackmessage_ != nullptr) adminbanplayerackmessage_->Clear(); - _has_bits_[2] &= ~0x00001000u; + if (adminbanplayerackmessage_ != NULL) adminbanplayerackmessage_->::AdminBanPlayerAckMessage::Clear(); + clear_has_adminbanplayerackmessage(); } inline const ::AdminBanPlayerAckMessage& PokerTHMessage::adminbanplayerackmessage() const { - const ::AdminBanPlayerAckMessage* p = adminbanplayerackmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerAckMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_AdminBanPlayerAckMessage_default_instance_); -} -inline ::AdminBanPlayerAckMessage* PokerTHMessage::release_adminbanplayerackmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.adminBanPlayerAckMessage) - _has_bits_[2] &= ~0x00001000u; - ::AdminBanPlayerAckMessage* temp = adminbanplayerackmessage_; - adminbanplayerackmessage_ = nullptr; - return temp; + return adminbanplayerackmessage_ != NULL ? *adminbanplayerackmessage_ : *default_instance_->adminbanplayerackmessage_; } inline ::AdminBanPlayerAckMessage* PokerTHMessage::mutable_adminbanplayerackmessage() { - _has_bits_[2] |= 0x00001000u; - if (adminbanplayerackmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::AdminBanPlayerAckMessage>(GetArenaNoVirtual()); - adminbanplayerackmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerAckMessage) + set_has_adminbanplayerackmessage(); + if (adminbanplayerackmessage_ == NULL) adminbanplayerackmessage_ = new ::AdminBanPlayerAckMessage; return adminbanplayerackmessage_; } -inline void PokerTHMessage::set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete adminbanplayerackmessage_; - } - if (adminbanplayerackmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - adminbanplayerackmessage = ::google::protobuf::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) +inline ::AdminBanPlayerAckMessage* PokerTHMessage::release_adminbanplayerackmessage() { + clear_has_adminbanplayerackmessage(); + ::AdminBanPlayerAckMessage* temp = adminbanplayerackmessage_; + adminbanplayerackmessage_ = NULL; + return temp; } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; inline bool PokerTHMessage::has_gamelistspectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00002000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistspectatorjoinedmessage() { - if (gamelistspectatorjoinedmessage_ != nullptr) gamelistspectatorjoinedmessage_->Clear(); - _has_bits_[2] &= ~0x00002000u; + if (gamelistspectatorjoinedmessage_ != NULL) gamelistspectatorjoinedmessage_->::GameListSpectatorJoinedMessage::Clear(); + clear_has_gamelistspectatorjoinedmessage(); } inline const ::GameListSpectatorJoinedMessage& PokerTHMessage::gamelistspectatorjoinedmessage() const { - const ::GameListSpectatorJoinedMessage* p = gamelistspectatorjoinedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorJoinedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListSpectatorJoinedMessage_default_instance_); -} -inline ::GameListSpectatorJoinedMessage* PokerTHMessage::release_gamelistspectatorjoinedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListSpectatorJoinedMessage) - _has_bits_[2] &= ~0x00002000u; - ::GameListSpectatorJoinedMessage* temp = gamelistspectatorjoinedmessage_; - gamelistspectatorjoinedmessage_ = nullptr; - return temp; + return gamelistspectatorjoinedmessage_ != NULL ? *gamelistspectatorjoinedmessage_ : *default_instance_->gamelistspectatorjoinedmessage_; } inline ::GameListSpectatorJoinedMessage* PokerTHMessage::mutable_gamelistspectatorjoinedmessage() { - _has_bits_[2] |= 0x00002000u; - if (gamelistspectatorjoinedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListSpectatorJoinedMessage>(GetArenaNoVirtual()); - gamelistspectatorjoinedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorJoinedMessage) + set_has_gamelistspectatorjoinedmessage(); + if (gamelistspectatorjoinedmessage_ == NULL) gamelistspectatorjoinedmessage_ = new ::GameListSpectatorJoinedMessage; return gamelistspectatorjoinedmessage_; } -inline void PokerTHMessage::set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistspectatorjoinedmessage_; - } - if (gamelistspectatorjoinedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistspectatorjoinedmessage = ::google::protobuf::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) +inline ::GameListSpectatorJoinedMessage* PokerTHMessage::release_gamelistspectatorjoinedmessage() { + clear_has_gamelistspectatorjoinedmessage(); + ::GameListSpectatorJoinedMessage* temp = gamelistspectatorjoinedmessage_; + gamelistspectatorjoinedmessage_ = NULL; + return temp; } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; inline bool PokerTHMessage::has_gamelistspectatorleftmessage() const { - return (_has_bits_[2] & 0x00004000u) != 0; + 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; } inline void PokerTHMessage::clear_gamelistspectatorleftmessage() { - if (gamelistspectatorleftmessage_ != nullptr) gamelistspectatorleftmessage_->Clear(); - _has_bits_[2] &= ~0x00004000u; + if (gamelistspectatorleftmessage_ != NULL) gamelistspectatorleftmessage_->::GameListSpectatorLeftMessage::Clear(); + clear_has_gamelistspectatorleftmessage(); } inline const ::GameListSpectatorLeftMessage& PokerTHMessage::gamelistspectatorleftmessage() const { - const ::GameListSpectatorLeftMessage* p = gamelistspectatorleftmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorLeftMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameListSpectatorLeftMessage_default_instance_); -} -inline ::GameListSpectatorLeftMessage* PokerTHMessage::release_gamelistspectatorleftmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameListSpectatorLeftMessage) - _has_bits_[2] &= ~0x00004000u; - ::GameListSpectatorLeftMessage* temp = gamelistspectatorleftmessage_; - gamelistspectatorleftmessage_ = nullptr; - return temp; + return gamelistspectatorleftmessage_ != NULL ? *gamelistspectatorleftmessage_ : *default_instance_->gamelistspectatorleftmessage_; } inline ::GameListSpectatorLeftMessage* PokerTHMessage::mutable_gamelistspectatorleftmessage() { - _has_bits_[2] |= 0x00004000u; - if (gamelistspectatorleftmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameListSpectatorLeftMessage>(GetArenaNoVirtual()); - gamelistspectatorleftmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorLeftMessage) + set_has_gamelistspectatorleftmessage(); + if (gamelistspectatorleftmessage_ == NULL) gamelistspectatorleftmessage_ = new ::GameListSpectatorLeftMessage; return gamelistspectatorleftmessage_; } -inline void PokerTHMessage::set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamelistspectatorleftmessage_; - } - if (gamelistspectatorleftmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamelistspectatorleftmessage = ::google::protobuf::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) +inline ::GameListSpectatorLeftMessage* PokerTHMessage::release_gamelistspectatorleftmessage() { + clear_has_gamelistspectatorleftmessage(); + ::GameListSpectatorLeftMessage* temp = gamelistspectatorleftmessage_; + gamelistspectatorleftmessage_ = NULL; + return temp; } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; inline bool PokerTHMessage::has_gamespectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00008000u) != 0; + 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; } inline void PokerTHMessage::clear_gamespectatorjoinedmessage() { - if (gamespectatorjoinedmessage_ != nullptr) gamespectatorjoinedmessage_->Clear(); - _has_bits_[2] &= ~0x00008000u; + if (gamespectatorjoinedmessage_ != NULL) gamespectatorjoinedmessage_->::GameSpectatorJoinedMessage::Clear(); + clear_has_gamespectatorjoinedmessage(); } inline const ::GameSpectatorJoinedMessage& PokerTHMessage::gamespectatorjoinedmessage() const { - const ::GameSpectatorJoinedMessage* p = gamespectatorjoinedmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorJoinedMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameSpectatorJoinedMessage_default_instance_); -} -inline ::GameSpectatorJoinedMessage* PokerTHMessage::release_gamespectatorjoinedmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameSpectatorJoinedMessage) - _has_bits_[2] &= ~0x00008000u; - ::GameSpectatorJoinedMessage* temp = gamespectatorjoinedmessage_; - gamespectatorjoinedmessage_ = nullptr; - return temp; + return gamespectatorjoinedmessage_ != NULL ? *gamespectatorjoinedmessage_ : *default_instance_->gamespectatorjoinedmessage_; } inline ::GameSpectatorJoinedMessage* PokerTHMessage::mutable_gamespectatorjoinedmessage() { - _has_bits_[2] |= 0x00008000u; - if (gamespectatorjoinedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameSpectatorJoinedMessage>(GetArenaNoVirtual()); - gamespectatorjoinedmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorJoinedMessage) + set_has_gamespectatorjoinedmessage(); + if (gamespectatorjoinedmessage_ == NULL) gamespectatorjoinedmessage_ = new ::GameSpectatorJoinedMessage; return gamespectatorjoinedmessage_; } -inline void PokerTHMessage::set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamespectatorjoinedmessage_; - } - if (gamespectatorjoinedmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamespectatorjoinedmessage = ::google::protobuf::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) +inline ::GameSpectatorJoinedMessage* PokerTHMessage::release_gamespectatorjoinedmessage() { + clear_has_gamespectatorjoinedmessage(); + ::GameSpectatorJoinedMessage* temp = gamespectatorjoinedmessage_; + gamespectatorjoinedmessage_ = NULL; + return temp; } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; inline bool PokerTHMessage::has_gamespectatorleftmessage() const { - return (_has_bits_[2] & 0x00010000u) != 0; + 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; } inline void PokerTHMessage::clear_gamespectatorleftmessage() { - if (gamespectatorleftmessage_ != nullptr) gamespectatorleftmessage_->Clear(); - _has_bits_[2] &= ~0x00010000u; + if (gamespectatorleftmessage_ != NULL) gamespectatorleftmessage_->::GameSpectatorLeftMessage::Clear(); + clear_has_gamespectatorleftmessage(); } inline const ::GameSpectatorLeftMessage& PokerTHMessage::gamespectatorleftmessage() const { - const ::GameSpectatorLeftMessage* p = gamespectatorleftmessage_; - // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorLeftMessage) - return p != nullptr ? *p : *reinterpret_cast( - &::_GameSpectatorLeftMessage_default_instance_); -} -inline ::GameSpectatorLeftMessage* PokerTHMessage::release_gamespectatorleftmessage() { - // @@protoc_insertion_point(field_release:PokerTHMessage.gameSpectatorLeftMessage) - _has_bits_[2] &= ~0x00010000u; - ::GameSpectatorLeftMessage* temp = gamespectatorleftmessage_; - gamespectatorleftmessage_ = nullptr; - return temp; + return gamespectatorleftmessage_ != NULL ? *gamespectatorleftmessage_ : *default_instance_->gamespectatorleftmessage_; } inline ::GameSpectatorLeftMessage* PokerTHMessage::mutable_gamespectatorleftmessage() { - _has_bits_[2] |= 0x00010000u; - if (gamespectatorleftmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::GameSpectatorLeftMessage>(GetArenaNoVirtual()); - gamespectatorleftmessage_ = p; - } - // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorLeftMessage) + set_has_gamespectatorleftmessage(); + if (gamespectatorleftmessage_ == NULL) gamespectatorleftmessage_ = new ::GameSpectatorLeftMessage; return gamespectatorleftmessage_; } -inline void PokerTHMessage::set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gamespectatorleftmessage_; - } - if (gamespectatorleftmessage) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gamespectatorleftmessage = ::google::protobuf::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) +inline ::GameSpectatorLeftMessage* PokerTHMessage::release_gamespectatorleftmessage() { + clear_has_gamespectatorleftmessage(); + ::GameSpectatorLeftMessage* temp = gamespectatorleftmessage_; + gamespectatorleftmessage_ = NULL; + return temp; } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) - -namespace google { -namespace protobuf { - -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 {}; - -} // namespace protobuf -} // namespace google - // @@protoc_insertion_point(global_scope) -#include -#endif // PROTOBUF_INCLUDED_pokerth_2eproto +#endif // PROTOBUF_pokerth_2eproto__INCLUDED diff --git a/src/third_party/websocketpp/websocketpp-config.cmake b/src/third_party/websocketpp.new/websocketpp-config.cmake similarity index 100% rename from src/third_party/websocketpp/websocketpp-config.cmake rename to src/third_party/websocketpp.new/websocketpp-config.cmake diff --git a/src/third_party/websocketpp/websocketpp-configVersion.cmake b/src/third_party/websocketpp.new/websocketpp-configVersion.cmake similarity index 100% rename from src/third_party/websocketpp/websocketpp-configVersion.cmake rename to src/third_party/websocketpp.new/websocketpp-configVersion.cmake diff --git a/src/third_party/websocketpp.old/COPYING b/src/third_party/websocketpp/COPYING similarity index 100% rename from src/third_party/websocketpp.old/COPYING rename to src/third_party/websocketpp/COPYING diff --git a/src/third_party/websocketpp.old/websocketpp/CMakeLists.txt b/src/third_party/websocketpp/websocketpp/CMakeLists.txt similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/CMakeLists.txt rename to src/third_party/websocketpp/websocketpp/CMakeLists.txt diff --git a/src/third_party/websocketpp.old/websocketpp/base64/base64.hpp b/src/third_party/websocketpp/websocketpp/base64/base64.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/base64/base64.hpp rename to src/third_party/websocketpp/websocketpp/base64/base64.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/client.hpp b/src/third_party/websocketpp/websocketpp/client.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/client.hpp rename to src/third_party/websocketpp/websocketpp/client.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/close.hpp b/src/third_party/websocketpp/websocketpp/close.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/close.hpp rename to src/third_party/websocketpp/websocketpp/close.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/asio.hpp b/src/third_party/websocketpp/websocketpp/common/asio.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/asio.hpp rename to src/third_party/websocketpp/websocketpp/common/asio.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/asio_ssl.hpp b/src/third_party/websocketpp/websocketpp/common/asio_ssl.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/asio_ssl.hpp rename to src/third_party/websocketpp/websocketpp/common/asio_ssl.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/chrono.hpp b/src/third_party/websocketpp/websocketpp/common/chrono.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/chrono.hpp rename to src/third_party/websocketpp/websocketpp/common/chrono.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/connection_hdl.hpp b/src/third_party/websocketpp/websocketpp/common/connection_hdl.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/connection_hdl.hpp rename to src/third_party/websocketpp/websocketpp/common/connection_hdl.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/cpp11.hpp b/src/third_party/websocketpp/websocketpp/common/cpp11.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/cpp11.hpp rename to src/third_party/websocketpp/websocketpp/common/cpp11.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/functional.hpp b/src/third_party/websocketpp/websocketpp/common/functional.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/functional.hpp rename to src/third_party/websocketpp/websocketpp/common/functional.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/md5.hpp b/src/third_party/websocketpp/websocketpp/common/md5.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/md5.hpp rename to src/third_party/websocketpp/websocketpp/common/md5.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/memory.hpp b/src/third_party/websocketpp/websocketpp/common/memory.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/memory.hpp rename to src/third_party/websocketpp/websocketpp/common/memory.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/network.hpp b/src/third_party/websocketpp/websocketpp/common/network.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/network.hpp rename to src/third_party/websocketpp/websocketpp/common/network.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/platforms.hpp b/src/third_party/websocketpp/websocketpp/common/platforms.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/platforms.hpp rename to src/third_party/websocketpp/websocketpp/common/platforms.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/random.hpp b/src/third_party/websocketpp/websocketpp/common/random.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/random.hpp rename to src/third_party/websocketpp/websocketpp/common/random.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/regex.hpp b/src/third_party/websocketpp/websocketpp/common/regex.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/regex.hpp rename to src/third_party/websocketpp/websocketpp/common/regex.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/stdint.hpp b/src/third_party/websocketpp/websocketpp/common/stdint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/stdint.hpp rename to src/third_party/websocketpp/websocketpp/common/stdint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/system_error.hpp b/src/third_party/websocketpp/websocketpp/common/system_error.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/system_error.hpp rename to src/third_party/websocketpp/websocketpp/common/system_error.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/thread.hpp b/src/third_party/websocketpp/websocketpp/common/thread.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/thread.hpp rename to src/third_party/websocketpp/websocketpp/common/thread.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/time.hpp b/src/third_party/websocketpp/websocketpp/common/time.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/time.hpp rename to src/third_party/websocketpp/websocketpp/common/time.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/common/type_traits.hpp b/src/third_party/websocketpp/websocketpp/common/type_traits.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/common/type_traits.hpp rename to src/third_party/websocketpp/websocketpp/common/type_traits.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/concurrency/basic.hpp b/src/third_party/websocketpp/websocketpp/concurrency/basic.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/concurrency/basic.hpp rename to src/third_party/websocketpp/websocketpp/concurrency/basic.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/concurrency/none.hpp b/src/third_party/websocketpp/websocketpp/concurrency/none.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/concurrency/none.hpp rename to src/third_party/websocketpp/websocketpp/concurrency/none.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/asio.hpp b/src/third_party/websocketpp/websocketpp/config/asio.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/asio.hpp rename to src/third_party/websocketpp/websocketpp/config/asio.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/asio_client.hpp b/src/third_party/websocketpp/websocketpp/config/asio_client.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/asio_client.hpp rename to src/third_party/websocketpp/websocketpp/config/asio_client.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/asio_no_tls.hpp b/src/third_party/websocketpp/websocketpp/config/asio_no_tls.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/asio_no_tls.hpp rename to src/third_party/websocketpp/websocketpp/config/asio_no_tls.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/asio_no_tls_client.hpp b/src/third_party/websocketpp/websocketpp/config/asio_no_tls_client.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/asio_no_tls_client.hpp rename to src/third_party/websocketpp/websocketpp/config/asio_no_tls_client.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/boost_config.hpp b/src/third_party/websocketpp/websocketpp/config/boost_config.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/boost_config.hpp rename to src/third_party/websocketpp/websocketpp/config/boost_config.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/core.hpp b/src/third_party/websocketpp/websocketpp/config/core.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/core.hpp rename to src/third_party/websocketpp/websocketpp/config/core.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/core_client.hpp b/src/third_party/websocketpp/websocketpp/config/core_client.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/core_client.hpp rename to src/third_party/websocketpp/websocketpp/config/core_client.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/debug.hpp b/src/third_party/websocketpp/websocketpp/config/debug.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/debug.hpp rename to src/third_party/websocketpp/websocketpp/config/debug.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/debug_asio.hpp b/src/third_party/websocketpp/websocketpp/config/debug_asio.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/debug_asio.hpp rename to src/third_party/websocketpp/websocketpp/config/debug_asio.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/debug_asio_no_tls.hpp b/src/third_party/websocketpp/websocketpp/config/debug_asio_no_tls.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/debug_asio_no_tls.hpp rename to src/third_party/websocketpp/websocketpp/config/debug_asio_no_tls.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/minimal_client.hpp b/src/third_party/websocketpp/websocketpp/config/minimal_client.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/minimal_client.hpp rename to src/third_party/websocketpp/websocketpp/config/minimal_client.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/config/minimal_server.hpp b/src/third_party/websocketpp/websocketpp/config/minimal_server.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/config/minimal_server.hpp rename to src/third_party/websocketpp/websocketpp/config/minimal_server.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/connection.hpp b/src/third_party/websocketpp/websocketpp/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/connection.hpp rename to src/third_party/websocketpp/websocketpp/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/connection_base.hpp b/src/third_party/websocketpp/websocketpp/connection_base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/connection_base.hpp rename to src/third_party/websocketpp/websocketpp/connection_base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/endpoint.hpp b/src/third_party/websocketpp/websocketpp/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/endpoint_base.hpp b/src/third_party/websocketpp/websocketpp/endpoint_base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/endpoint_base.hpp rename to src/third_party/websocketpp/websocketpp/endpoint_base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/error.hpp b/src/third_party/websocketpp/websocketpp/error.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/error.hpp rename to src/third_party/websocketpp/websocketpp/error.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/extensions/extension.hpp b/src/third_party/websocketpp/websocketpp/extensions/extension.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/extensions/extension.hpp rename to src/third_party/websocketpp/websocketpp/extensions/extension.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/disabled.hpp b/src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/disabled.hpp rename to src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/enabled.hpp b/src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/enabled.hpp rename to src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/frame.hpp b/src/third_party/websocketpp/websocketpp/frame.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/frame.hpp rename to src/third_party/websocketpp/websocketpp/frame.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/constants.hpp b/src/third_party/websocketpp/websocketpp/http/constants.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/constants.hpp rename to src/third_party/websocketpp/websocketpp/http/constants.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/impl/parser.hpp b/src/third_party/websocketpp/websocketpp/http/impl/parser.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/impl/parser.hpp rename to src/third_party/websocketpp/websocketpp/http/impl/parser.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/impl/request.hpp b/src/third_party/websocketpp/websocketpp/http/impl/request.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/impl/request.hpp rename to src/third_party/websocketpp/websocketpp/http/impl/request.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/impl/response.hpp b/src/third_party/websocketpp/websocketpp/http/impl/response.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/impl/response.hpp rename to src/third_party/websocketpp/websocketpp/http/impl/response.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/parser.hpp b/src/third_party/websocketpp/websocketpp/http/parser.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/parser.hpp rename to src/third_party/websocketpp/websocketpp/http/parser.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/request.hpp b/src/third_party/websocketpp/websocketpp/http/request.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/request.hpp rename to src/third_party/websocketpp/websocketpp/http/request.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/http/response.hpp b/src/third_party/websocketpp/websocketpp/http/response.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/http/response.hpp rename to src/third_party/websocketpp/websocketpp/http/response.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/impl/connection_impl.hpp b/src/third_party/websocketpp/websocketpp/impl/connection_impl.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/impl/connection_impl.hpp rename to src/third_party/websocketpp/websocketpp/impl/connection_impl.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/impl/endpoint_impl.hpp b/src/third_party/websocketpp/websocketpp/impl/endpoint_impl.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/impl/endpoint_impl.hpp rename to src/third_party/websocketpp/websocketpp/impl/endpoint_impl.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/impl/utilities_impl.hpp b/src/third_party/websocketpp/websocketpp/impl/utilities_impl.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/impl/utilities_impl.hpp rename to src/third_party/websocketpp/websocketpp/impl/utilities_impl.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/logger/basic.hpp b/src/third_party/websocketpp/websocketpp/logger/basic.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/logger/basic.hpp rename to src/third_party/websocketpp/websocketpp/logger/basic.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/logger/levels.hpp b/src/third_party/websocketpp/websocketpp/logger/levels.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/logger/levels.hpp rename to src/third_party/websocketpp/websocketpp/logger/levels.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/logger/stub.hpp b/src/third_party/websocketpp/websocketpp/logger/stub.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/logger/stub.hpp rename to src/third_party/websocketpp/websocketpp/logger/stub.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/logger/syslog.hpp b/src/third_party/websocketpp/websocketpp/logger/syslog.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/logger/syslog.hpp rename to src/third_party/websocketpp/websocketpp/logger/syslog.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/message_buffer/alloc.hpp b/src/third_party/websocketpp/websocketpp/message_buffer/alloc.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/message_buffer/alloc.hpp rename to src/third_party/websocketpp/websocketpp/message_buffer/alloc.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/message_buffer/message.hpp b/src/third_party/websocketpp/websocketpp/message_buffer/message.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/message_buffer/message.hpp rename to src/third_party/websocketpp/websocketpp/message_buffer/message.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/message_buffer/pool.hpp b/src/third_party/websocketpp/websocketpp/message_buffer/pool.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/message_buffer/pool.hpp rename to src/third_party/websocketpp/websocketpp/message_buffer/pool.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/base.hpp b/src/third_party/websocketpp/websocketpp/processors/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/base.hpp rename to src/third_party/websocketpp/websocketpp/processors/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/hybi00.hpp b/src/third_party/websocketpp/websocketpp/processors/hybi00.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/hybi00.hpp rename to src/third_party/websocketpp/websocketpp/processors/hybi00.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/hybi07.hpp b/src/third_party/websocketpp/websocketpp/processors/hybi07.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/hybi07.hpp rename to src/third_party/websocketpp/websocketpp/processors/hybi07.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/hybi08.hpp b/src/third_party/websocketpp/websocketpp/processors/hybi08.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/hybi08.hpp rename to src/third_party/websocketpp/websocketpp/processors/hybi08.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/hybi13.hpp b/src/third_party/websocketpp/websocketpp/processors/hybi13.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/hybi13.hpp rename to src/third_party/websocketpp/websocketpp/processors/hybi13.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/processors/processor.hpp b/src/third_party/websocketpp/websocketpp/processors/processor.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/processors/processor.hpp rename to src/third_party/websocketpp/websocketpp/processors/processor.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/random/none.hpp b/src/third_party/websocketpp/websocketpp/random/none.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/random/none.hpp rename to src/third_party/websocketpp/websocketpp/random/none.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/random/random_device.hpp b/src/third_party/websocketpp/websocketpp/random/random_device.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/random/random_device.hpp rename to src/third_party/websocketpp/websocketpp/random/random_device.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/roles/client_endpoint.hpp b/src/third_party/websocketpp/websocketpp/roles/client_endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/roles/client_endpoint.hpp rename to src/third_party/websocketpp/websocketpp/roles/client_endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/roles/server_endpoint.hpp b/src/third_party/websocketpp/websocketpp/roles/server_endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/roles/server_endpoint.hpp rename to src/third_party/websocketpp/websocketpp/roles/server_endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/server.hpp b/src/third_party/websocketpp/websocketpp/server.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/server.hpp rename to src/third_party/websocketpp/websocketpp/server.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/sha1/sha1.hpp b/src/third_party/websocketpp/websocketpp/sha1/sha1.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/sha1/sha1.hpp rename to src/third_party/websocketpp/websocketpp/sha1/sha1.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/base.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/base.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/connection.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/security/base.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/security/base.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/security/none.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/security/none.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/asio/security/tls.hpp b/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/asio/security/tls.hpp rename to src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/base/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/base/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/base/connection.hpp rename to src/third_party/websocketpp/websocketpp/transport/base/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/base/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/base/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/base/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/transport/base/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/debug/base.hpp b/src/third_party/websocketpp/websocketpp/transport/debug/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/debug/base.hpp rename to src/third_party/websocketpp/websocketpp/transport/debug/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/debug/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/debug/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/debug/connection.hpp rename to src/third_party/websocketpp/websocketpp/transport/debug/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/debug/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/debug/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/debug/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/transport/debug/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/iostream/base.hpp b/src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/iostream/base.hpp rename to src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/iostream/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/iostream/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/iostream/connection.hpp rename to src/third_party/websocketpp/websocketpp/transport/iostream/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/iostream/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/iostream/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/iostream/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/transport/iostream/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/stub/base.hpp b/src/third_party/websocketpp/websocketpp/transport/stub/base.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/stub/base.hpp rename to src/third_party/websocketpp/websocketpp/transport/stub/base.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/stub/connection.hpp b/src/third_party/websocketpp/websocketpp/transport/stub/connection.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/stub/connection.hpp rename to src/third_party/websocketpp/websocketpp/transport/stub/connection.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/transport/stub/endpoint.hpp b/src/third_party/websocketpp/websocketpp/transport/stub/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/transport/stub/endpoint.hpp rename to src/third_party/websocketpp/websocketpp/transport/stub/endpoint.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/uri.hpp b/src/third_party/websocketpp/websocketpp/uri.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/uri.hpp rename to src/third_party/websocketpp/websocketpp/uri.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/utf8_validator.hpp b/src/third_party/websocketpp/websocketpp/utf8_validator.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/utf8_validator.hpp rename to src/third_party/websocketpp/websocketpp/utf8_validator.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/utilities.hpp b/src/third_party/websocketpp/websocketpp/utilities.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/utilities.hpp rename to src/third_party/websocketpp/websocketpp/utilities.hpp diff --git a/src/third_party/websocketpp.old/websocketpp/version.hpp b/src/third_party/websocketpp/websocketpp/version.hpp similarity index 100% rename from src/third_party/websocketpp.old/websocketpp/version.hpp rename to src/third_party/websocketpp/websocketpp/version.hpp diff --git a/tests/src/de/pokerth/protocol/ProtoBuf.java b/tests/src/de/pokerth/protocol/ProtoBuf.java index 4d630440..073d7833 100644 --- a/tests/src/de/pokerth/protocol/ProtoBuf.java +++ b/tests/src/de/pokerth/protocol/ProtoBuf.java @@ -8,53 +8,21 @@ public final class ProtoBuf { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } - /** - * Protobuf enum {@code NetGameMode} - */ public enum NetGameMode implements com.google.protobuf.Internal.EnumLite { - /** - * netGameCreated = 1; - */ - netGameCreated(1), - /** - * netGameStarted = 2; - */ - netGameStarted(2), - /** - * netGameClosed = 3; - */ - netGameClosed(3), + netGameCreated(0, 1), + netGameStarted(1, 2), + netGameClosed(2, 3), ; - - /** - * netGameCreated = 1; - */ + public static final int netGameCreated_VALUE = 1; - /** - * netGameStarted = 2; - */ public static final int netGameStarted_VALUE = 2; - /** - * netGameClosed = 3; - */ public static final int netGameClosed_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetGameMode valueOf(int value) { - return forNumber(value); - } - - public static NetGameMode forNumber(int value) { switch (value) { case 1: return netGameCreated; case 2: return netGameStarted; @@ -62,114 +30,49 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetGameMode> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetGameMode findValueByNumber(int number) { - return NetGameMode.forNumber(number); + return NetGameMode.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetGameModeVerifier.INSTANCE; - } - - private static final class NetGameModeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetGameModeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetGameMode.forNumber(number) != null; - } - }; - + private final int value; - - private NetGameMode(int value) { + + private NetGameMode(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetGameMode) } - - /** - * Protobuf enum {@code NetGameState} - */ + public enum NetGameState implements com.google.protobuf.Internal.EnumLite { - /** - * netStatePreflop = 0; - */ - netStatePreflop(0), - /** - * netStateFlop = 1; - */ - netStateFlop(1), - /** - * netStateTurn = 2; - */ - netStateTurn(2), - /** - * netStateRiver = 3; - */ - netStateRiver(3), - /** - * netStatePreflopSmallBlind = 4; - */ - netStatePreflopSmallBlind(4), - /** - * netStatePreflopBigBlind = 5; - */ - netStatePreflopBigBlind(5), + netStatePreflop(0, 0), + netStateFlop(1, 1), + netStateTurn(2, 2), + netStateRiver(3, 3), + netStatePreflopSmallBlind(4, 4), + netStatePreflopBigBlind(5, 5), ; - - /** - * netStatePreflop = 0; - */ + public static final int netStatePreflop_VALUE = 0; - /** - * netStateFlop = 1; - */ public static final int netStateFlop_VALUE = 1; - /** - * netStateTurn = 2; - */ public static final int netStateTurn_VALUE = 2; - /** - * netStateRiver = 3; - */ public static final int netStateRiver_VALUE = 3; - /** - * netStatePreflopSmallBlind = 4; - */ public static final int netStatePreflopSmallBlind_VALUE = 4; - /** - * netStatePreflopBigBlind = 5; - */ public static final int netStatePreflopBigBlind_VALUE = 5; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetGameState valueOf(int value) { - return forNumber(value); - } - - public static NetGameState forNumber(int value) { switch (value) { case 0: return netStatePreflop; case 1: return netStateFlop; @@ -180,122 +83,51 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetGameState> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetGameState findValueByNumber(int number) { - return NetGameState.forNumber(number); + return NetGameState.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetGameStateVerifier.INSTANCE; - } - - private static final class NetGameStateVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetGameStateVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetGameState.forNumber(number) != null; - } - }; - + private final int value; - - private NetGameState(int value) { + + private NetGameState(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetGameState) } - - /** - * Protobuf enum {@code NetPlayerAction} - */ + public enum NetPlayerAction implements com.google.protobuf.Internal.EnumLite { - /** - * netActionNone = 0; - */ - netActionNone(0), - /** - * netActionFold = 1; - */ - netActionFold(1), - /** - * netActionCheck = 2; - */ - netActionCheck(2), - /** - * netActionCall = 3; - */ - netActionCall(3), - /** - * netActionBet = 4; - */ - netActionBet(4), - /** - * netActionRaise = 5; - */ - netActionRaise(5), - /** - * netActionAllIn = 6; - */ - netActionAllIn(6), + netActionNone(0, 0), + netActionFold(1, 1), + netActionCheck(2, 2), + netActionCall(3, 3), + netActionBet(4, 4), + netActionRaise(5, 5), + netActionAllIn(6, 6), ; - - /** - * netActionNone = 0; - */ + public static final int netActionNone_VALUE = 0; - /** - * netActionFold = 1; - */ public static final int netActionFold_VALUE = 1; - /** - * netActionCheck = 2; - */ public static final int netActionCheck_VALUE = 2; - /** - * netActionCall = 3; - */ public static final int netActionCall_VALUE = 3; - /** - * netActionBet = 4; - */ public static final int netActionBet_VALUE = 4; - /** - * netActionRaise = 5; - */ public static final int netActionRaise_VALUE = 5; - /** - * netActionAllIn = 6; - */ public static final int netActionAllIn_VALUE = 6; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetPlayerAction valueOf(int value) { - return forNumber(value); - } - - public static NetPlayerAction forNumber(int value) { switch (value) { case 0: return netActionNone; case 1: return netActionFold; @@ -307,90 +139,43 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetPlayerAction> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetPlayerAction findValueByNumber(int number) { - return NetPlayerAction.forNumber(number); + return NetPlayerAction.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetPlayerActionVerifier.INSTANCE; - } - - private static final class NetPlayerActionVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetPlayerActionVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetPlayerAction.forNumber(number) != null; - } - }; - + private final int value; - - private NetPlayerAction(int value) { + + private NetPlayerAction(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetPlayerAction) } - - /** - * Protobuf enum {@code NetPlayerState} - */ + public enum NetPlayerState implements com.google.protobuf.Internal.EnumLite { - /** - * netPlayerStateNormal = 0; - */ - netPlayerStateNormal(0), - /** - * netPlayerStateSessionInactive = 1; - */ - netPlayerStateSessionInactive(1), - /** - * netPlayerStateNoMoney = 2; - */ - netPlayerStateNoMoney(2), + netPlayerStateNormal(0, 0), + netPlayerStateSessionInactive(1, 1), + netPlayerStateNoMoney(2, 2), ; - - /** - * netPlayerStateNormal = 0; - */ + public static final int netPlayerStateNormal_VALUE = 0; - /** - * netPlayerStateSessionInactive = 1; - */ public static final int netPlayerStateSessionInactive_VALUE = 1; - /** - * netPlayerStateNoMoney = 2; - */ public static final int netPlayerStateNoMoney_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetPlayerState valueOf(int value) { - return forNumber(value); - } - - public static NetPlayerState forNumber(int value) { switch (value) { case 0: return netPlayerStateNormal; case 1: return netPlayerStateSessionInactive; @@ -398,90 +183,43 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetPlayerState> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetPlayerState findValueByNumber(int number) { - return NetPlayerState.forNumber(number); + return NetPlayerState.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetPlayerStateVerifier.INSTANCE; - } - - private static final class NetPlayerStateVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetPlayerStateVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetPlayerState.forNumber(number) != null; - } - }; - + private final int value; - - private NetPlayerState(int value) { + + private NetPlayerState(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetPlayerState) } - - /** - * Protobuf enum {@code NetPlayerInfoRights} - */ + public enum NetPlayerInfoRights implements com.google.protobuf.Internal.EnumLite { - /** - * netPlayerRightsGuest = 1; - */ - netPlayerRightsGuest(1), - /** - * netPlayerRightsNormal = 2; - */ - netPlayerRightsNormal(2), - /** - * netPlayerRightsAdmin = 3; - */ - netPlayerRightsAdmin(3), + netPlayerRightsGuest(0, 1), + netPlayerRightsNormal(1, 2), + netPlayerRightsAdmin(2, 3), ; - - /** - * netPlayerRightsGuest = 1; - */ + public static final int netPlayerRightsGuest_VALUE = 1; - /** - * netPlayerRightsNormal = 2; - */ public static final int netPlayerRightsNormal_VALUE = 2; - /** - * netPlayerRightsAdmin = 3; - */ public static final int netPlayerRightsAdmin_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetPlayerInfoRights valueOf(int value) { - return forNumber(value); - } - - public static NetPlayerInfoRights forNumber(int value) { switch (value) { case 1: return netPlayerRightsGuest; case 2: return netPlayerRightsNormal; @@ -489,90 +227,43 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetPlayerInfoRights> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetPlayerInfoRights findValueByNumber(int number) { - return NetPlayerInfoRights.forNumber(number); + return NetPlayerInfoRights.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetPlayerInfoRightsVerifier.INSTANCE; - } - - private static final class NetPlayerInfoRightsVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetPlayerInfoRightsVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetPlayerInfoRights.forNumber(number) != null; - } - }; - + private final int value; - - private NetPlayerInfoRights(int value) { + + private NetPlayerInfoRights(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetPlayerInfoRights) } - - /** - * Protobuf enum {@code NetAvatarType} - */ + public enum NetAvatarType implements com.google.protobuf.Internal.EnumLite { - /** - * netAvatarImagePng = 1; - */ - netAvatarImagePng(1), - /** - * netAvatarImageJpg = 2; - */ - netAvatarImageJpg(2), - /** - * netAvatarImageGif = 3; - */ - netAvatarImageGif(3), + netAvatarImagePng(0, 1), + netAvatarImageJpg(1, 2), + netAvatarImageGif(2, 3), ; - - /** - * netAvatarImagePng = 1; - */ + public static final int netAvatarImagePng_VALUE = 1; - /** - * netAvatarImageJpg = 2; - */ public static final int netAvatarImageJpg_VALUE = 2; - /** - * netAvatarImageGif = 3; - */ public static final int netAvatarImageGif_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetAvatarType valueOf(int value) { - return forNumber(value); - } - - public static NetAvatarType forNumber(int value) { switch (value) { case 1: return netAvatarImagePng; case 2: return netAvatarImageJpg; @@ -580,278 +271,127 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetAvatarType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetAvatarType findValueByNumber(int number) { - return NetAvatarType.forNumber(number); + return NetAvatarType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetAvatarTypeVerifier.INSTANCE; - } - - private static final class NetAvatarTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetAvatarTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetAvatarType.forNumber(number) != null; - } - }; - + private final int value; - - private NetAvatarType(int value) { + + private NetAvatarType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetAvatarType) } - - public interface NetGameInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:NetGameInfo) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required string gameName = 1; - */ + + public interface NetGameInfoOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required string gameName = 1; boolean hasGameName(); - /** - * required string gameName = 1; - */ - java.lang.String getGameName(); - /** - * required string gameName = 1; - */ - com.google.protobuf.ByteString - getGameNameBytes(); - - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ + String getGameName(); + + // required .NetGameInfo.NetGameType netGameType = 2; boolean hasNetGameType(); - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType(); - - /** - * required uint32 maxNumPlayers = 3; - */ + + // required uint32 maxNumPlayers = 3; boolean hasMaxNumPlayers(); - /** - * required uint32 maxNumPlayers = 3; - */ int getMaxNumPlayers(); - - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; boolean hasRaiseIntervalMode(); - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode(); - - /** - * optional uint32 raiseEveryHands = 5; - */ + + // optional uint32 raiseEveryHands = 5; boolean hasRaiseEveryHands(); - /** - * optional uint32 raiseEveryHands = 5; - */ int getRaiseEveryHands(); - - /** - * optional uint32 raiseEveryMinutes = 6; - */ + + // optional uint32 raiseEveryMinutes = 6; boolean hasRaiseEveryMinutes(); - /** - * optional uint32 raiseEveryMinutes = 6; - */ int getRaiseEveryMinutes(); - - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; boolean hasEndRaiseMode(); - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode(); - - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ + + // optional uint32 endRaiseSmallBlindValue = 8; boolean hasEndRaiseSmallBlindValue(); - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ int getEndRaiseSmallBlindValue(); - - /** - * required uint32 proposedGuiSpeed = 9; - */ + + // required uint32 proposedGuiSpeed = 9; boolean hasProposedGuiSpeed(); - /** - * required uint32 proposedGuiSpeed = 9; - */ int getProposedGuiSpeed(); - - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ + + // required uint32 delayBetweenHands = 10; boolean hasDelayBetweenHands(); - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ int getDelayBetweenHands(); - - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ + + // required uint32 playerActionTimeout = 11; boolean hasPlayerActionTimeout(); - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ int getPlayerActionTimeout(); - - /** - * required uint32 firstSmallBlind = 12; - */ + + // required uint32 firstSmallBlind = 12; boolean hasFirstSmallBlind(); - /** - * required uint32 firstSmallBlind = 12; - */ int getFirstSmallBlind(); - - /** - * required uint32 startMoney = 13; - */ + + // required uint32 startMoney = 13; boolean hasStartMoney(); - /** - * required uint32 startMoney = 13; - */ int getStartMoney(); - - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ + + // repeated uint32 manualBlinds = 14 [packed = true]; java.util.List getManualBlindsList(); - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ int getManualBlindsCount(); - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ int getManualBlinds(int index); - - /** - * optional bool allowSpectators = 15 [default = true]; - */ + + // optional bool allowSpectators = 15 [default = true]; boolean hasAllowSpectators(); - /** - * optional bool allowSpectators = 15 [default = true]; - */ boolean getAllowSpectators(); } - /** - * Protobuf type {@code NetGameInfo} - */ - public static final class NetGameInfo extends - com.google.protobuf.GeneratedMessageLite< - NetGameInfo, NetGameInfo.Builder> implements - // @@protoc_insertion_point(message_implements:NetGameInfo) - NetGameInfoOrBuilder { - private NetGameInfo() { - gameName_ = ""; - netGameType_ = 1; - raiseIntervalMode_ = 1; - endRaiseMode_ = 1; - manualBlinds_ = emptyIntList(); - allowSpectators_ = true; + public static final class NetGameInfo extends + com.google.protobuf.GeneratedMessageLite + implements NetGameInfoOrBuilder { + // Use NetGameInfo.newBuilder() to construct. + private NetGameInfo(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code NetGameInfo.NetGameType} - */ + private NetGameInfo(boolean noInit) {} + + private static final NetGameInfo defaultInstance; + public static NetGameInfo getDefaultInstance() { + return defaultInstance; + } + + public NetGameInfo getDefaultInstanceForType() { + return defaultInstance; + } + public enum NetGameType implements com.google.protobuf.Internal.EnumLite { - /** - * normalGame = 1; - */ - normalGame(1), - /** - * registeredOnlyGame = 2; - */ - registeredOnlyGame(2), - /** - * inviteOnlyGame = 3; - */ - inviteOnlyGame(3), - /** - * rankingGame = 4; - */ - rankingGame(4), + normalGame(0, 1), + registeredOnlyGame(1, 2), + inviteOnlyGame(2, 3), + rankingGame(3, 4), ; - - /** - * normalGame = 1; - */ + public static final int normalGame_VALUE = 1; - /** - * registeredOnlyGame = 2; - */ public static final int registeredOnlyGame_VALUE = 2; - /** - * inviteOnlyGame = 3; - */ public static final int inviteOnlyGame_VALUE = 3; - /** - * rankingGame = 4; - */ public static final int rankingGame_VALUE = 4; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static NetGameType valueOf(int value) { - return forNumber(value); - } - - public static NetGameType forNumber(int value) { switch (value) { case 1: return normalGame; case 2: return registeredOnlyGame; @@ -860,172 +400,84 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NetGameType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public NetGameType findValueByNumber(int number) { - return NetGameType.forNumber(number); + return NetGameType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return NetGameTypeVerifier.INSTANCE; - } - - private static final class NetGameTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new NetGameTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return NetGameType.forNumber(number) != null; - } - }; - + private final int value; - - private NetGameType(int value) { + + private NetGameType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetGameInfo.NetGameType) } - - /** - * Protobuf enum {@code NetGameInfo.RaiseIntervalMode} - */ + public enum RaiseIntervalMode implements com.google.protobuf.Internal.EnumLite { - /** - * raiseOnHandNum = 1; - */ - raiseOnHandNum(1), - /** - * raiseOnMinutes = 2; - */ - raiseOnMinutes(2), + raiseOnHandNum(0, 1), + raiseOnMinutes(1, 2), ; - - /** - * raiseOnHandNum = 1; - */ + public static final int raiseOnHandNum_VALUE = 1; - /** - * raiseOnMinutes = 2; - */ public static final int raiseOnMinutes_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static RaiseIntervalMode valueOf(int value) { - return forNumber(value); - } - - public static RaiseIntervalMode forNumber(int value) { switch (value) { case 1: return raiseOnHandNum; case 2: return raiseOnMinutes; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RaiseIntervalMode> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public RaiseIntervalMode findValueByNumber(int number) { - return RaiseIntervalMode.forNumber(number); + return RaiseIntervalMode.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return RaiseIntervalModeVerifier.INSTANCE; - } - - private static final class RaiseIntervalModeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RaiseIntervalModeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return RaiseIntervalMode.forNumber(number) != null; - } - }; - + private final int value; - - private RaiseIntervalMode(int value) { + + private RaiseIntervalMode(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetGameInfo.RaiseIntervalMode) } - - /** - * Protobuf enum {@code NetGameInfo.EndRaiseMode} - */ + public enum EndRaiseMode implements com.google.protobuf.Internal.EnumLite { - /** - * doubleBlinds = 1; - */ - doubleBlinds(1), - /** - * raiseByEndValue = 2; - */ - raiseByEndValue(2), - /** - * keepLastBlind = 3; - */ - keepLastBlind(3), + doubleBlinds(0, 1), + raiseByEndValue(1, 2), + keepLastBlind(2, 3), ; - - /** - * doubleBlinds = 1; - */ + public static final int doubleBlinds_VALUE = 1; - /** - * raiseByEndValue = 2; - */ public static final int raiseByEndValue_VALUE = 2; - /** - * keepLastBlind = 3; - */ public static final int keepLastBlind_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static EndRaiseMode valueOf(int value) { - return forNumber(value); - } - - public static EndRaiseMode forNumber(int value) { switch (value) { case 1: return doubleBlinds; case 2: return raiseByEndValue; @@ -1033,718 +485,381 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - EndRaiseMode> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public EndRaiseMode findValueByNumber(int number) { - return EndRaiseMode.forNumber(number); + return EndRaiseMode.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return EndRaiseModeVerifier.INSTANCE; - } - - private static final class EndRaiseModeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new EndRaiseModeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return EndRaiseMode.forNumber(number) != null; - } - }; - + private final int value; - - private EndRaiseMode(int value) { + + private EndRaiseMode(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:NetGameInfo.EndRaiseMode) } - + private int bitField0_; + // required string gameName = 1; public static final int GAMENAME_FIELD_NUMBER = 1; - private java.lang.String gameName_; - /** - * required string gameName = 1; - */ - @java.lang.Override + private java.lang.Object gameName_; public boolean hasGameName() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string gameName = 1; - */ - @java.lang.Override - public java.lang.String getGameName() { - return gameName_; - } - /** - * required string gameName = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGameNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(gameName_); - } - /** - * required string gameName = 1; - */ - private void setGameName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gameName_ = value; - } - /** - * required string gameName = 1; - */ - private void clearGameName() { - bitField0_ = (bitField0_ & ~0x00000001); - gameName_ = getDefaultInstance().getGameName(); - } - /** - * required string gameName = 1; - */ - private void setGameNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gameName_ = value.toStringUtf8(); - } - - public static final int NETGAMETYPE_FIELD_NUMBER = 2; - private int netGameType_; - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - @java.lang.Override - public boolean hasNetGameType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { - de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType result = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.forNumber(netGameType_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame : result; - } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - private void setNetGameType(de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value) { - if (value == null) { - throw new NullPointerException(); + public String getGameName() { + java.lang.Object ref = gameName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + gameName_ = s; + } + return s; } - bitField0_ |= 0x00000002; - netGameType_ = value.getNumber(); } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - private void clearNetGameType() { - bitField0_ = (bitField0_ & ~0x00000002); - netGameType_ = 1; + private com.google.protobuf.ByteString getGameNameBytes() { + java.lang.Object ref = gameName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + gameName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - + + // required .NetGameInfo.NetGameType netGameType = 2; + public static final int NETGAMETYPE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_; + public boolean hasNetGameType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { + return netGameType_; + } + + // required uint32 maxNumPlayers = 3; public static final int MAXNUMPLAYERS_FIELD_NUMBER = 3; private int maxNumPlayers_; - /** - * required uint32 maxNumPlayers = 3; - */ - @java.lang.Override public boolean hasMaxNumPlayers() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 maxNumPlayers = 3; - */ - @java.lang.Override public int getMaxNumPlayers() { return maxNumPlayers_; } - /** - * required uint32 maxNumPlayers = 3; - */ - private void setMaxNumPlayers(int value) { - bitField0_ |= 0x00000004; - maxNumPlayers_ = value; - } - /** - * required uint32 maxNumPlayers = 3; - */ - private void clearMaxNumPlayers() { - bitField0_ = (bitField0_ & ~0x00000004); - maxNumPlayers_ = 0; - } - + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; public static final int RAISEINTERVALMODE_FIELD_NUMBER = 4; - private int raiseIntervalMode_; - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_; public boolean hasRaiseIntervalMode() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { - de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode result = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.forNumber(raiseIntervalMode_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum : result; + return raiseIntervalMode_; } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - private void setRaiseIntervalMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - raiseIntervalMode_ = value.getNumber(); - } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - private void clearRaiseIntervalMode() { - bitField0_ = (bitField0_ & ~0x00000008); - raiseIntervalMode_ = 1; - } - + + // optional uint32 raiseEveryHands = 5; public static final int RAISEEVERYHANDS_FIELD_NUMBER = 5; private int raiseEveryHands_; - /** - * optional uint32 raiseEveryHands = 5; - */ - @java.lang.Override public boolean hasRaiseEveryHands() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional uint32 raiseEveryHands = 5; - */ - @java.lang.Override public int getRaiseEveryHands() { return raiseEveryHands_; } - /** - * optional uint32 raiseEveryHands = 5; - */ - private void setRaiseEveryHands(int value) { - bitField0_ |= 0x00000010; - raiseEveryHands_ = value; - } - /** - * optional uint32 raiseEveryHands = 5; - */ - private void clearRaiseEveryHands() { - bitField0_ = (bitField0_ & ~0x00000010); - raiseEveryHands_ = 0; - } - + + // optional uint32 raiseEveryMinutes = 6; public static final int RAISEEVERYMINUTES_FIELD_NUMBER = 6; private int raiseEveryMinutes_; - /** - * optional uint32 raiseEveryMinutes = 6; - */ - @java.lang.Override public boolean hasRaiseEveryMinutes() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional uint32 raiseEveryMinutes = 6; - */ - @java.lang.Override public int getRaiseEveryMinutes() { return raiseEveryMinutes_; } - /** - * optional uint32 raiseEveryMinutes = 6; - */ - private void setRaiseEveryMinutes(int value) { - bitField0_ |= 0x00000020; - raiseEveryMinutes_ = value; - } - /** - * optional uint32 raiseEveryMinutes = 6; - */ - private void clearRaiseEveryMinutes() { - bitField0_ = (bitField0_ & ~0x00000020); - raiseEveryMinutes_ = 0; - } - + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; public static final int ENDRAISEMODE_FIELD_NUMBER = 7; - private int endRaiseMode_; - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_; public boolean hasEndRaiseMode() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { - de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode result = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.forNumber(endRaiseMode_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds : result; + return endRaiseMode_; } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - private void setEndRaiseMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - endRaiseMode_ = value.getNumber(); - } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - private void clearEndRaiseMode() { - bitField0_ = (bitField0_ & ~0x00000040); - endRaiseMode_ = 1; - } - + + // optional uint32 endRaiseSmallBlindValue = 8; public static final int ENDRAISESMALLBLINDVALUE_FIELD_NUMBER = 8; private int endRaiseSmallBlindValue_; - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - @java.lang.Override public boolean hasEndRaiseSmallBlindValue() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - @java.lang.Override public int getEndRaiseSmallBlindValue() { return endRaiseSmallBlindValue_; } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - private void setEndRaiseSmallBlindValue(int value) { - bitField0_ |= 0x00000080; - endRaiseSmallBlindValue_ = value; - } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - private void clearEndRaiseSmallBlindValue() { - bitField0_ = (bitField0_ & ~0x00000080); - endRaiseSmallBlindValue_ = 0; - } - + + // required uint32 proposedGuiSpeed = 9; public static final int PROPOSEDGUISPEED_FIELD_NUMBER = 9; private int proposedGuiSpeed_; - /** - * required uint32 proposedGuiSpeed = 9; - */ - @java.lang.Override public boolean hasProposedGuiSpeed() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000100) == 0x00000100); } - /** - * required uint32 proposedGuiSpeed = 9; - */ - @java.lang.Override public int getProposedGuiSpeed() { return proposedGuiSpeed_; } - /** - * required uint32 proposedGuiSpeed = 9; - */ - private void setProposedGuiSpeed(int value) { - bitField0_ |= 0x00000100; - proposedGuiSpeed_ = value; - } - /** - * required uint32 proposedGuiSpeed = 9; - */ - private void clearProposedGuiSpeed() { - bitField0_ = (bitField0_ & ~0x00000100); - proposedGuiSpeed_ = 0; - } - + + // required uint32 delayBetweenHands = 10; public static final int DELAYBETWEENHANDS_FIELD_NUMBER = 10; private int delayBetweenHands_; - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ - @java.lang.Override public boolean hasDelayBetweenHands() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000200) == 0x00000200); } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ - @java.lang.Override public int getDelayBetweenHands() { return delayBetweenHands_; } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ - private void setDelayBetweenHands(int value) { - bitField0_ |= 0x00000200; - delayBetweenHands_ = value; - } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 delayBetweenHands = 10; - */ - private void clearDelayBetweenHands() { - bitField0_ = (bitField0_ & ~0x00000200); - delayBetweenHands_ = 0; - } - + + // required uint32 playerActionTimeout = 11; public static final int PLAYERACTIONTIMEOUT_FIELD_NUMBER = 11; private int playerActionTimeout_; - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ - @java.lang.Override public boolean hasPlayerActionTimeout() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000400) == 0x00000400); } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ - @java.lang.Override public int getPlayerActionTimeout() { return playerActionTimeout_; } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ - private void setPlayerActionTimeout(int value) { - bitField0_ |= 0x00000400; - playerActionTimeout_ = value; - } - /** - *
-     * These are seconds
-     * 
- * - * required uint32 playerActionTimeout = 11; - */ - private void clearPlayerActionTimeout() { - bitField0_ = (bitField0_ & ~0x00000400); - playerActionTimeout_ = 0; - } - + + // required uint32 firstSmallBlind = 12; public static final int FIRSTSMALLBLIND_FIELD_NUMBER = 12; private int firstSmallBlind_; - /** - * required uint32 firstSmallBlind = 12; - */ - @java.lang.Override public boolean hasFirstSmallBlind() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00000800) == 0x00000800); } - /** - * required uint32 firstSmallBlind = 12; - */ - @java.lang.Override public int getFirstSmallBlind() { return firstSmallBlind_; } - /** - * required uint32 firstSmallBlind = 12; - */ - private void setFirstSmallBlind(int value) { - bitField0_ |= 0x00000800; - firstSmallBlind_ = value; - } - /** - * required uint32 firstSmallBlind = 12; - */ - private void clearFirstSmallBlind() { - bitField0_ = (bitField0_ & ~0x00000800); - firstSmallBlind_ = 0; - } - + + // required uint32 startMoney = 13; public static final int STARTMONEY_FIELD_NUMBER = 13; private int startMoney_; - /** - * required uint32 startMoney = 13; - */ - @java.lang.Override public boolean hasStartMoney() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00001000) == 0x00001000); } - /** - * required uint32 startMoney = 13; - */ - @java.lang.Override public int getStartMoney() { return startMoney_; } - /** - * required uint32 startMoney = 13; - */ - private void setStartMoney(int value) { - bitField0_ |= 0x00001000; - startMoney_ = value; - } - /** - * required uint32 startMoney = 13; - */ - private void clearStartMoney() { - bitField0_ = (bitField0_ & ~0x00001000); - startMoney_ = 0; - } - + + // repeated uint32 manualBlinds = 14 [packed = true]; public static final int MANUALBLINDS_FIELD_NUMBER = 14; - private com.google.protobuf.Internal.IntList manualBlinds_; - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override + private java.util.List manualBlinds_; public java.util.List getManualBlindsList() { return manualBlinds_; } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override public int getManualBlindsCount() { return manualBlinds_.size(); } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override public int getManualBlinds(int index) { - return manualBlinds_.getInt(index); + return manualBlinds_.get(index); } private int manualBlindsMemoizedSerializedSize = -1; - private void ensureManualBlindsIsMutable() { - if (!manualBlinds_.isModifiable()) { - manualBlinds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(manualBlinds_); - } - } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - private void setManualBlinds( - int index, int value) { - ensureManualBlindsIsMutable(); - manualBlinds_.setInt(index, value); - } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - private void addManualBlinds(int value) { - ensureManualBlindsIsMutable(); - manualBlinds_.addInt(value); - } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - private void addAllManualBlinds( - java.lang.Iterable values) { - ensureManualBlindsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, manualBlinds_); - } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - private void clearManualBlinds() { - manualBlinds_ = emptyIntList(); - } - + + // optional bool allowSpectators = 15 [default = true]; public static final int ALLOWSPECTATORS_FIELD_NUMBER = 15; private boolean allowSpectators_; - /** - * optional bool allowSpectators = 15 [default = true]; - */ - @java.lang.Override public boolean hasAllowSpectators() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00002000) == 0x00002000); } - /** - * optional bool allowSpectators = 15 [default = true]; - */ - @java.lang.Override public boolean getAllowSpectators() { return allowSpectators_; } - /** - * optional bool allowSpectators = 15 [default = true]; - */ - private void setAllowSpectators(boolean value) { - bitField0_ |= 0x00002000; - allowSpectators_ = value; - } - /** - * optional bool allowSpectators = 15 [default = true]; - */ - private void clearAllowSpectators() { - bitField0_ = (bitField0_ & ~0x00002000); + + private void initFields() { + gameName_ = ""; + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + maxNumPlayers_ = 0; + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + raiseEveryHands_ = 0; + raiseEveryMinutes_ = 0; + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + endRaiseSmallBlindValue_ = 0; + proposedGuiSpeed_ = 0; + delayBetweenHands_ = 0; + playerActionTimeout_ = 0; + firstSmallBlind_ = 0; + startMoney_ = 0; + manualBlinds_ = java.util.Collections.emptyList();; allowSpectators_ = true; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNetGameType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMaxNumPlayers()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRaiseIntervalMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEndRaiseMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasProposedGuiSpeed()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDelayBetweenHands()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerActionTimeout()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFirstSmallBlind()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) != 0)) { - output.writeString(1, getGameName()); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getGameNameBytes()); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, netGameType_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, netGameType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, maxNumPlayers_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(4, raiseIntervalMode_); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, raiseIntervalMode_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, raiseEveryHands_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, raiseEveryMinutes_); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(7, endRaiseMode_); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeEnum(7, endRaiseMode_.getNumber()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, endRaiseSmallBlindValue_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeUInt32(9, proposedGuiSpeed_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt32(10, delayBetweenHands_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt32(11, playerActionTimeout_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(12, firstSmallBlind_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeUInt32(13, startMoney_); } if (getManualBlindsList().size() > 0) { - output.writeUInt32NoTag(114); - output.writeUInt32NoTag(manualBlindsMemoizedSerializedSize); + output.writeRawVarint32(114); + output.writeRawVarint32(manualBlindsMemoizedSerializedSize); } for (int i = 0; i < manualBlinds_.size(); i++) { - output.writeUInt32NoTag(manualBlinds_.getInt(i)); + output.writeUInt32NoTag(manualBlinds_.get(i)); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(15, allowSpectators_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getGameName()); + .computeBytesSize(1, getGameNameBytes()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, netGameType_); + .computeEnumSize(2, netGameType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, maxNumPlayers_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, raiseIntervalMode_); + .computeEnumSize(4, raiseIntervalMode_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, raiseEveryHands_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, raiseEveryMinutes_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, endRaiseMode_); + .computeEnumSize(7, endRaiseMode_.getNumber()); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, endRaiseSmallBlindValue_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, proposedGuiSpeed_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, delayBetweenHands_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, playerActionTimeout_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, firstSmallBlind_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, startMoney_); } @@ -1752,7 +867,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < manualBlinds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(manualBlinds_.getInt(i)); + .computeUInt32SizeNoTag(manualBlinds_.get(i)); } size += dataSize; if (!getManualBlindsList().isEmpty()) { @@ -1762,1328 +877,1043 @@ public final class ProtoBuf { } manualBlindsMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, allowSpectators_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.NetGameInfo prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code NetGameInfo} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.NetGameInfo, Builder> implements - // @@protoc_insertion_point(builder_implements:NetGameInfo) - de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder { + de.pokerth.protocol.ProtoBuf.NetGameInfo, Builder> + implements de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required string gameName = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + bitField0_ = (bitField0_ & ~0x00000002); + maxNumPlayers_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + bitField0_ = (bitField0_ & ~0x00000008); + raiseEveryHands_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + raiseEveryMinutes_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + bitField0_ = (bitField0_ & ~0x00000040); + endRaiseSmallBlindValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + proposedGuiSpeed_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + delayBetweenHands_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + playerActionTimeout_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); + firstSmallBlind_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); + startMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00001000); + manualBlinds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00002000); + allowSpectators_ = true; + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo build() { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.NetGameInfo buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo buildPartial() { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = new de.pokerth.protocol.ProtoBuf.NetGameInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameName_ = gameName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.netGameType_ = netGameType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.maxNumPlayers_ = maxNumPlayers_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.raiseIntervalMode_ = raiseIntervalMode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.raiseEveryHands_ = raiseEveryHands_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.raiseEveryMinutes_ = raiseEveryMinutes_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.endRaiseMode_ = endRaiseMode_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.endRaiseSmallBlindValue_ = endRaiseSmallBlindValue_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.proposedGuiSpeed_ = proposedGuiSpeed_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.delayBetweenHands_ = delayBetweenHands_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.playerActionTimeout_ = playerActionTimeout_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + result.firstSmallBlind_ = firstSmallBlind_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + result.startMoney_ = startMoney_; + if (((bitField0_ & 0x00002000) == 0x00002000)) { + manualBlinds_ = java.util.Collections.unmodifiableList(manualBlinds_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.manualBlinds_ = manualBlinds_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00002000; + } + result.allowSpectators_ = allowSpectators_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.NetGameInfo other) { + if (other == de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) return this; + if (other.hasGameName()) { + setGameName(other.getGameName()); + } + if (other.hasNetGameType()) { + setNetGameType(other.getNetGameType()); + } + if (other.hasMaxNumPlayers()) { + setMaxNumPlayers(other.getMaxNumPlayers()); + } + if (other.hasRaiseIntervalMode()) { + setRaiseIntervalMode(other.getRaiseIntervalMode()); + } + if (other.hasRaiseEveryHands()) { + setRaiseEveryHands(other.getRaiseEveryHands()); + } + if (other.hasRaiseEveryMinutes()) { + setRaiseEveryMinutes(other.getRaiseEveryMinutes()); + } + if (other.hasEndRaiseMode()) { + setEndRaiseMode(other.getEndRaiseMode()); + } + if (other.hasEndRaiseSmallBlindValue()) { + setEndRaiseSmallBlindValue(other.getEndRaiseSmallBlindValue()); + } + if (other.hasProposedGuiSpeed()) { + setProposedGuiSpeed(other.getProposedGuiSpeed()); + } + if (other.hasDelayBetweenHands()) { + setDelayBetweenHands(other.getDelayBetweenHands()); + } + if (other.hasPlayerActionTimeout()) { + setPlayerActionTimeout(other.getPlayerActionTimeout()); + } + if (other.hasFirstSmallBlind()) { + setFirstSmallBlind(other.getFirstSmallBlind()); + } + if (other.hasStartMoney()) { + setStartMoney(other.getStartMoney()); + } + if (!other.manualBlinds_.isEmpty()) { + if (manualBlinds_.isEmpty()) { + manualBlinds_ = other.manualBlinds_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureManualBlindsIsMutable(); + manualBlinds_.addAll(other.manualBlinds_); + } + + } + if (other.hasAllowSpectators()) { + setAllowSpectators(other.getAllowSpectators()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameName()) { + + return false; + } + if (!hasNetGameType()) { + + return false; + } + if (!hasMaxNumPlayers()) { + + return false; + } + if (!hasRaiseIntervalMode()) { + + return false; + } + if (!hasEndRaiseMode()) { + + return false; + } + if (!hasProposedGuiSpeed()) { + + return false; + } + if (!hasDelayBetweenHands()) { + + return false; + } + if (!hasPlayerActionTimeout()) { + + return false; + } + if (!hasFirstSmallBlind()) { + + return false; + } + if (!hasStartMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + gameName_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + netGameType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + maxNumPlayers_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000008; + raiseIntervalMode_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + raiseEveryHands_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + raiseEveryMinutes_ = input.readUInt32(); + break; + } + case 56: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000040; + endRaiseMode_ = value; + } + break; + } + case 64: { + bitField0_ |= 0x00000080; + endRaiseSmallBlindValue_ = input.readUInt32(); + break; + } + case 72: { + bitField0_ |= 0x00000100; + proposedGuiSpeed_ = input.readUInt32(); + break; + } + case 80: { + bitField0_ |= 0x00000200; + delayBetweenHands_ = input.readUInt32(); + break; + } + case 88: { + bitField0_ |= 0x00000400; + playerActionTimeout_ = input.readUInt32(); + break; + } + case 96: { + bitField0_ |= 0x00000800; + firstSmallBlind_ = input.readUInt32(); + break; + } + case 104: { + bitField0_ |= 0x00001000; + startMoney_ = input.readUInt32(); + break; + } + case 112: { + ensureManualBlindsIsMutable(); + manualBlinds_.add(input.readUInt32()); + break; + } + case 114: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addManualBlinds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 120: { + bitField0_ |= 0x00004000; + allowSpectators_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required string gameName = 1; + private java.lang.Object gameName_ = ""; public boolean hasGameName() { - return instance.hasGameName(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string gameName = 1; - */ - @java.lang.Override - public java.lang.String getGameName() { - return instance.getGameName(); + public String getGameName() { + java.lang.Object ref = gameName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + gameName_ = s; + return s; + } else { + return (String) ref; + } } - /** - * required string gameName = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGameNameBytes() { - return instance.getGameNameBytes(); - } - /** - * required string gameName = 1; - */ - public Builder setGameName( - java.lang.String value) { - copyOnWrite(); - instance.setGameName(value); + public Builder setGameName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gameName_ = value; + return this; } - /** - * required string gameName = 1; - */ public Builder clearGameName() { - copyOnWrite(); - instance.clearGameName(); + bitField0_ = (bitField0_ & ~0x00000001); + gameName_ = getDefaultInstance().getGameName(); + return this; } - /** - * required string gameName = 1; - */ - public Builder setGameNameBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setGameNameBytes(value); - return this; + void setGameName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + gameName_ = value; + } - - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - @java.lang.Override + + // required .NetGameInfo.NetGameType netGameType = 2; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; public boolean hasNetGameType() { - return instance.hasNetGameType(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { - return instance.getNetGameType(); + return netGameType_; } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ public Builder setNetGameType(de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value) { - copyOnWrite(); - instance.setNetGameType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + netGameType_ = value; + return this; } - /** - * required .NetGameInfo.NetGameType netGameType = 2; - */ public Builder clearNetGameType() { - copyOnWrite(); - instance.clearNetGameType(); + bitField0_ = (bitField0_ & ~0x00000002); + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + return this; } - - /** - * required uint32 maxNumPlayers = 3; - */ - @java.lang.Override + + // required uint32 maxNumPlayers = 3; + private int maxNumPlayers_ ; public boolean hasMaxNumPlayers() { - return instance.hasMaxNumPlayers(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 maxNumPlayers = 3; - */ - @java.lang.Override public int getMaxNumPlayers() { - return instance.getMaxNumPlayers(); + return maxNumPlayers_; } - /** - * required uint32 maxNumPlayers = 3; - */ public Builder setMaxNumPlayers(int value) { - copyOnWrite(); - instance.setMaxNumPlayers(value); + bitField0_ |= 0x00000004; + maxNumPlayers_ = value; + return this; } - /** - * required uint32 maxNumPlayers = 3; - */ public Builder clearMaxNumPlayers() { - copyOnWrite(); - instance.clearMaxNumPlayers(); + bitField0_ = (bitField0_ & ~0x00000004); + maxNumPlayers_ = 0; + return this; } - - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - @java.lang.Override + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; public boolean hasRaiseIntervalMode() { - return instance.hasRaiseIntervalMode(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { - return instance.getRaiseIntervalMode(); + return raiseIntervalMode_; } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ public Builder setRaiseIntervalMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value) { - copyOnWrite(); - instance.setRaiseIntervalMode(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + raiseIntervalMode_ = value; + return this; } - /** - * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - */ public Builder clearRaiseIntervalMode() { - copyOnWrite(); - instance.clearRaiseIntervalMode(); + bitField0_ = (bitField0_ & ~0x00000008); + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + return this; } - - /** - * optional uint32 raiseEveryHands = 5; - */ - @java.lang.Override + + // optional uint32 raiseEveryHands = 5; + private int raiseEveryHands_ ; public boolean hasRaiseEveryHands() { - return instance.hasRaiseEveryHands(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional uint32 raiseEveryHands = 5; - */ - @java.lang.Override public int getRaiseEveryHands() { - return instance.getRaiseEveryHands(); + return raiseEveryHands_; } - /** - * optional uint32 raiseEveryHands = 5; - */ public Builder setRaiseEveryHands(int value) { - copyOnWrite(); - instance.setRaiseEveryHands(value); + bitField0_ |= 0x00000010; + raiseEveryHands_ = value; + return this; } - /** - * optional uint32 raiseEveryHands = 5; - */ public Builder clearRaiseEveryHands() { - copyOnWrite(); - instance.clearRaiseEveryHands(); + bitField0_ = (bitField0_ & ~0x00000010); + raiseEveryHands_ = 0; + return this; } - - /** - * optional uint32 raiseEveryMinutes = 6; - */ - @java.lang.Override + + // optional uint32 raiseEveryMinutes = 6; + private int raiseEveryMinutes_ ; public boolean hasRaiseEveryMinutes() { - return instance.hasRaiseEveryMinutes(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional uint32 raiseEveryMinutes = 6; - */ - @java.lang.Override public int getRaiseEveryMinutes() { - return instance.getRaiseEveryMinutes(); + return raiseEveryMinutes_; } - /** - * optional uint32 raiseEveryMinutes = 6; - */ public Builder setRaiseEveryMinutes(int value) { - copyOnWrite(); - instance.setRaiseEveryMinutes(value); + bitField0_ |= 0x00000020; + raiseEveryMinutes_ = value; + return this; } - /** - * optional uint32 raiseEveryMinutes = 6; - */ public Builder clearRaiseEveryMinutes() { - copyOnWrite(); - instance.clearRaiseEveryMinutes(); + bitField0_ = (bitField0_ & ~0x00000020); + raiseEveryMinutes_ = 0; + return this; } - - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - @java.lang.Override + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; public boolean hasEndRaiseMode() { - return instance.hasEndRaiseMode(); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { - return instance.getEndRaiseMode(); + return endRaiseMode_; } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ public Builder setEndRaiseMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value) { - copyOnWrite(); - instance.setEndRaiseMode(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + endRaiseMode_ = value; + return this; } - /** - * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - */ public Builder clearEndRaiseMode() { - copyOnWrite(); - instance.clearEndRaiseMode(); + bitField0_ = (bitField0_ & ~0x00000040); + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + return this; } - - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - @java.lang.Override + + // optional uint32 endRaiseSmallBlindValue = 8; + private int endRaiseSmallBlindValue_ ; public boolean hasEndRaiseSmallBlindValue() { - return instance.hasEndRaiseSmallBlindValue(); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ - @java.lang.Override public int getEndRaiseSmallBlindValue() { - return instance.getEndRaiseSmallBlindValue(); + return endRaiseSmallBlindValue_; } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ public Builder setEndRaiseSmallBlindValue(int value) { - copyOnWrite(); - instance.setEndRaiseSmallBlindValue(value); + bitField0_ |= 0x00000080; + endRaiseSmallBlindValue_ = value; + return this; } - /** - * optional uint32 endRaiseSmallBlindValue = 8; - */ public Builder clearEndRaiseSmallBlindValue() { - copyOnWrite(); - instance.clearEndRaiseSmallBlindValue(); + bitField0_ = (bitField0_ & ~0x00000080); + endRaiseSmallBlindValue_ = 0; + return this; } - - /** - * required uint32 proposedGuiSpeed = 9; - */ - @java.lang.Override + + // required uint32 proposedGuiSpeed = 9; + private int proposedGuiSpeed_ ; public boolean hasProposedGuiSpeed() { - return instance.hasProposedGuiSpeed(); + return ((bitField0_ & 0x00000100) == 0x00000100); } - /** - * required uint32 proposedGuiSpeed = 9; - */ - @java.lang.Override public int getProposedGuiSpeed() { - return instance.getProposedGuiSpeed(); + return proposedGuiSpeed_; } - /** - * required uint32 proposedGuiSpeed = 9; - */ public Builder setProposedGuiSpeed(int value) { - copyOnWrite(); - instance.setProposedGuiSpeed(value); + bitField0_ |= 0x00000100; + proposedGuiSpeed_ = value; + return this; } - /** - * required uint32 proposedGuiSpeed = 9; - */ public Builder clearProposedGuiSpeed() { - copyOnWrite(); - instance.clearProposedGuiSpeed(); + bitField0_ = (bitField0_ & ~0x00000100); + proposedGuiSpeed_ = 0; + return this; } - - /** - *
-       * These are seconds
-       * 
- * - * required uint32 delayBetweenHands = 10; - */ - @java.lang.Override + + // required uint32 delayBetweenHands = 10; + private int delayBetweenHands_ ; public boolean hasDelayBetweenHands() { - return instance.hasDelayBetweenHands(); + return ((bitField0_ & 0x00000200) == 0x00000200); } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 delayBetweenHands = 10; - */ - @java.lang.Override public int getDelayBetweenHands() { - return instance.getDelayBetweenHands(); + return delayBetweenHands_; } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 delayBetweenHands = 10; - */ public Builder setDelayBetweenHands(int value) { - copyOnWrite(); - instance.setDelayBetweenHands(value); + bitField0_ |= 0x00000200; + delayBetweenHands_ = value; + return this; } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 delayBetweenHands = 10; - */ public Builder clearDelayBetweenHands() { - copyOnWrite(); - instance.clearDelayBetweenHands(); + bitField0_ = (bitField0_ & ~0x00000200); + delayBetweenHands_ = 0; + return this; } - - /** - *
-       * These are seconds
-       * 
- * - * required uint32 playerActionTimeout = 11; - */ - @java.lang.Override + + // required uint32 playerActionTimeout = 11; + private int playerActionTimeout_ ; public boolean hasPlayerActionTimeout() { - return instance.hasPlayerActionTimeout(); + return ((bitField0_ & 0x00000400) == 0x00000400); } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 playerActionTimeout = 11; - */ - @java.lang.Override public int getPlayerActionTimeout() { - return instance.getPlayerActionTimeout(); + return playerActionTimeout_; } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 playerActionTimeout = 11; - */ public Builder setPlayerActionTimeout(int value) { - copyOnWrite(); - instance.setPlayerActionTimeout(value); + bitField0_ |= 0x00000400; + playerActionTimeout_ = value; + return this; } - /** - *
-       * These are seconds
-       * 
- * - * required uint32 playerActionTimeout = 11; - */ public Builder clearPlayerActionTimeout() { - copyOnWrite(); - instance.clearPlayerActionTimeout(); + bitField0_ = (bitField0_ & ~0x00000400); + playerActionTimeout_ = 0; + return this; } - - /** - * required uint32 firstSmallBlind = 12; - */ - @java.lang.Override + + // required uint32 firstSmallBlind = 12; + private int firstSmallBlind_ ; public boolean hasFirstSmallBlind() { - return instance.hasFirstSmallBlind(); + return ((bitField0_ & 0x00000800) == 0x00000800); } - /** - * required uint32 firstSmallBlind = 12; - */ - @java.lang.Override public int getFirstSmallBlind() { - return instance.getFirstSmallBlind(); + return firstSmallBlind_; } - /** - * required uint32 firstSmallBlind = 12; - */ public Builder setFirstSmallBlind(int value) { - copyOnWrite(); - instance.setFirstSmallBlind(value); + bitField0_ |= 0x00000800; + firstSmallBlind_ = value; + return this; } - /** - * required uint32 firstSmallBlind = 12; - */ public Builder clearFirstSmallBlind() { - copyOnWrite(); - instance.clearFirstSmallBlind(); + bitField0_ = (bitField0_ & ~0x00000800); + firstSmallBlind_ = 0; + return this; } - - /** - * required uint32 startMoney = 13; - */ - @java.lang.Override + + // required uint32 startMoney = 13; + private int startMoney_ ; public boolean hasStartMoney() { - return instance.hasStartMoney(); + return ((bitField0_ & 0x00001000) == 0x00001000); } - /** - * required uint32 startMoney = 13; - */ - @java.lang.Override public int getStartMoney() { - return instance.getStartMoney(); + return startMoney_; } - /** - * required uint32 startMoney = 13; - */ public Builder setStartMoney(int value) { - copyOnWrite(); - instance.setStartMoney(value); + bitField0_ |= 0x00001000; + startMoney_ = value; + return this; } - /** - * required uint32 startMoney = 13; - */ public Builder clearStartMoney() { - copyOnWrite(); - instance.clearStartMoney(); + bitField0_ = (bitField0_ & ~0x00001000); + startMoney_ = 0; + return this; } - - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override + + // repeated uint32 manualBlinds = 14 [packed = true]; + private java.util.List manualBlinds_ = java.util.Collections.emptyList();; + private void ensureManualBlindsIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + manualBlinds_ = new java.util.ArrayList(manualBlinds_); + bitField0_ |= 0x00002000; + } + } public java.util.List getManualBlindsList() { - return java.util.Collections.unmodifiableList( - instance.getManualBlindsList()); + return java.util.Collections.unmodifiableList(manualBlinds_); } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override public int getManualBlindsCount() { - return instance.getManualBlindsCount(); + return manualBlinds_.size(); } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ - @java.lang.Override public int getManualBlinds(int index) { - return instance.getManualBlinds(index); + return manualBlinds_.get(index); } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ public Builder setManualBlinds( int index, int value) { - copyOnWrite(); - instance.setManualBlinds(index, value); + ensureManualBlindsIsMutable(); + manualBlinds_.set(index, value); + return this; } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ public Builder addManualBlinds(int value) { - copyOnWrite(); - instance.addManualBlinds(value); + ensureManualBlindsIsMutable(); + manualBlinds_.add(value); + return this; } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ public Builder addAllManualBlinds( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllManualBlinds(values); + ensureManualBlindsIsMutable(); + super.addAll(values, manualBlinds_); + return this; } - /** - * repeated uint32 manualBlinds = 14 [packed = true]; - */ public Builder clearManualBlinds() { - copyOnWrite(); - instance.clearManualBlinds(); + manualBlinds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00002000); + return this; } - - /** - * optional bool allowSpectators = 15 [default = true]; - */ - @java.lang.Override + + // optional bool allowSpectators = 15 [default = true]; + private boolean allowSpectators_ = true; public boolean hasAllowSpectators() { - return instance.hasAllowSpectators(); + return ((bitField0_ & 0x00004000) == 0x00004000); } - /** - * optional bool allowSpectators = 15 [default = true]; - */ - @java.lang.Override public boolean getAllowSpectators() { - return instance.getAllowSpectators(); + return allowSpectators_; } - /** - * optional bool allowSpectators = 15 [default = true]; - */ public Builder setAllowSpectators(boolean value) { - copyOnWrite(); - instance.setAllowSpectators(value); + bitField0_ |= 0x00004000; + allowSpectators_ = value; + return this; } - /** - * optional bool allowSpectators = 15 [default = true]; - */ public Builder clearAllowSpectators() { - copyOnWrite(); - instance.clearAllowSpectators(); + bitField0_ = (bitField0_ & ~0x00004000); + allowSpectators_ = true; + return this; } - + // @@protoc_insertion_point(builder_scope:NetGameInfo) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.NetGameInfo(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameName()) { - return null; - } - if (!hasNetGameType()) { - return null; - } - if (!hasMaxNumPlayers()) { - return null; - } - if (!hasRaiseIntervalMode()) { - return null; - } - if (!hasEndRaiseMode()) { - return null; - } - if (!hasProposedGuiSpeed()) { - return null; - } - if (!hasDelayBetweenHands()) { - return null; - } - if (!hasPlayerActionTimeout()) { - return null; - } - if (!hasFirstSmallBlind()) { - return null; - } - if (!hasStartMoney()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - manualBlinds_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.NetGameInfo other = (de.pokerth.protocol.ProtoBuf.NetGameInfo) arg1; - gameName_ = visitor.visitString( - hasGameName(), gameName_, - other.hasGameName(), other.gameName_); - netGameType_ = visitor.visitInt(hasNetGameType(), netGameType_, - other.hasNetGameType(), other.netGameType_); - maxNumPlayers_ = visitor.visitInt( - hasMaxNumPlayers(), maxNumPlayers_, - other.hasMaxNumPlayers(), other.maxNumPlayers_); - raiseIntervalMode_ = visitor.visitInt(hasRaiseIntervalMode(), raiseIntervalMode_, - other.hasRaiseIntervalMode(), other.raiseIntervalMode_); - raiseEveryHands_ = visitor.visitInt( - hasRaiseEveryHands(), raiseEveryHands_, - other.hasRaiseEveryHands(), other.raiseEveryHands_); - raiseEveryMinutes_ = visitor.visitInt( - hasRaiseEveryMinutes(), raiseEveryMinutes_, - other.hasRaiseEveryMinutes(), other.raiseEveryMinutes_); - endRaiseMode_ = visitor.visitInt(hasEndRaiseMode(), endRaiseMode_, - other.hasEndRaiseMode(), other.endRaiseMode_); - endRaiseSmallBlindValue_ = visitor.visitInt( - hasEndRaiseSmallBlindValue(), endRaiseSmallBlindValue_, - other.hasEndRaiseSmallBlindValue(), other.endRaiseSmallBlindValue_); - proposedGuiSpeed_ = visitor.visitInt( - hasProposedGuiSpeed(), proposedGuiSpeed_, - other.hasProposedGuiSpeed(), other.proposedGuiSpeed_); - delayBetweenHands_ = visitor.visitInt( - hasDelayBetweenHands(), delayBetweenHands_, - other.hasDelayBetweenHands(), other.delayBetweenHands_); - playerActionTimeout_ = visitor.visitInt( - hasPlayerActionTimeout(), playerActionTimeout_, - other.hasPlayerActionTimeout(), other.playerActionTimeout_); - firstSmallBlind_ = visitor.visitInt( - hasFirstSmallBlind(), firstSmallBlind_, - other.hasFirstSmallBlind(), other.firstSmallBlind_); - startMoney_ = visitor.visitInt( - hasStartMoney(), startMoney_, - other.hasStartMoney(), other.startMoney_); - manualBlinds_= visitor.visitIntList(manualBlinds_, other.manualBlinds_); - allowSpectators_ = visitor.visitBoolean( - hasAllowSpectators(), allowSpectators_, - other.hasAllowSpectators(), other.allowSpectators_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000001; - gameName_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - netGameType_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - maxNumPlayers_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - raiseIntervalMode_ = rawValue; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - raiseEveryHands_ = input.readUInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - raiseEveryMinutes_ = input.readUInt32(); - break; - } - case 56: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000040; - endRaiseMode_ = rawValue; - } - break; - } - case 64: { - bitField0_ |= 0x00000080; - endRaiseSmallBlindValue_ = input.readUInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - proposedGuiSpeed_ = input.readUInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - delayBetweenHands_ = input.readUInt32(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - playerActionTimeout_ = input.readUInt32(); - break; - } - case 96: { - bitField0_ |= 0x00000800; - firstSmallBlind_ = input.readUInt32(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - startMoney_ = input.readUInt32(); - break; - } - case 112: { - if (!manualBlinds_.isModifiable()) { - manualBlinds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(manualBlinds_); - } - manualBlinds_.addInt(input.readUInt32()); - break; - } - case 114: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!manualBlinds_.isModifiable() && input.getBytesUntilLimit() > 0) { - manualBlinds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(manualBlinds_); - } - while (input.getBytesUntilLimit() > 0) { - manualBlinds_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 120: { - bitField0_ |= 0x00002000; - allowSpectators_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.NetGameInfo.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:NetGameInfo) - private static final de.pokerth.protocol.ProtoBuf.NetGameInfo DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new NetGameInfo(); - } - - public static de.pokerth.protocol.ProtoBuf.NetGameInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new NetGameInfo(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:NetGameInfo) } - - public interface PlayerResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerResult) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 playerId = 1; - */ + + public interface PlayerResultOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 playerId = 1; boolean hasPlayerId(); - /** - * required uint32 playerId = 1; - */ int getPlayerId(); - - /** - * required uint32 resultCard1 = 2; - */ + + // required uint32 resultCard1 = 2; boolean hasResultCard1(); - /** - * required uint32 resultCard1 = 2; - */ int getResultCard1(); - - /** - * required uint32 resultCard2 = 3; - */ + + // required uint32 resultCard2 = 3; boolean hasResultCard2(); - /** - * required uint32 resultCard2 = 3; - */ int getResultCard2(); - - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ + + // repeated uint32 bestHandPosition = 4 [packed = true]; java.util.List getBestHandPositionList(); - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ int getBestHandPositionCount(); - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ int getBestHandPosition(int index); - - /** - * required uint32 moneyWon = 5; - */ + + // required uint32 moneyWon = 5; boolean hasMoneyWon(); - /** - * required uint32 moneyWon = 5; - */ int getMoneyWon(); - - /** - * required uint32 playerMoney = 6; - */ + + // required uint32 playerMoney = 6; boolean hasPlayerMoney(); - /** - * required uint32 playerMoney = 6; - */ int getPlayerMoney(); - - /** - * optional uint32 cardsValue = 7; - */ + + // optional uint32 cardsValue = 7; boolean hasCardsValue(); - /** - * optional uint32 cardsValue = 7; - */ int getCardsValue(); } - /** - * Protobuf type {@code PlayerResult} - */ - public static final class PlayerResult extends - com.google.protobuf.GeneratedMessageLite< - PlayerResult, PlayerResult.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerResult) - PlayerResultOrBuilder { - private PlayerResult() { - bestHandPosition_ = emptyIntList(); + public static final class PlayerResult extends + com.google.protobuf.GeneratedMessageLite + implements PlayerResultOrBuilder { + // Use PlayerResult.newBuilder() to construct. + private PlayerResult(Builder builder) { + super(builder); } + private PlayerResult(boolean noInit) {} + + private static final PlayerResult defaultInstance; + public static PlayerResult getDefaultInstance() { + return defaultInstance; + } + + public PlayerResult getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 playerId = 1; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 1; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - } - /** - * required uint32 playerId = 1; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - } - + + // required uint32 resultCard1 = 2; public static final int RESULTCARD1_FIELD_NUMBER = 2; private int resultCard1_; - /** - * required uint32 resultCard1 = 2; - */ - @java.lang.Override public boolean hasResultCard1() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 resultCard1 = 2; - */ - @java.lang.Override public int getResultCard1() { return resultCard1_; } - /** - * required uint32 resultCard1 = 2; - */ - private void setResultCard1(int value) { - bitField0_ |= 0x00000002; - resultCard1_ = value; - } - /** - * required uint32 resultCard1 = 2; - */ - private void clearResultCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - resultCard1_ = 0; - } - + + // required uint32 resultCard2 = 3; public static final int RESULTCARD2_FIELD_NUMBER = 3; private int resultCard2_; - /** - * required uint32 resultCard2 = 3; - */ - @java.lang.Override public boolean hasResultCard2() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 resultCard2 = 3; - */ - @java.lang.Override public int getResultCard2() { return resultCard2_; } - /** - * required uint32 resultCard2 = 3; - */ - private void setResultCard2(int value) { - bitField0_ |= 0x00000004; - resultCard2_ = value; - } - /** - * required uint32 resultCard2 = 3; - */ - private void clearResultCard2() { - bitField0_ = (bitField0_ & ~0x00000004); - resultCard2_ = 0; - } - + + // repeated uint32 bestHandPosition = 4 [packed = true]; public static final int BESTHANDPOSITION_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList bestHandPosition_; - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override + private java.util.List bestHandPosition_; public java.util.List getBestHandPositionList() { return bestHandPosition_; } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override public int getBestHandPositionCount() { return bestHandPosition_.size(); } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override public int getBestHandPosition(int index) { - return bestHandPosition_.getInt(index); + return bestHandPosition_.get(index); } private int bestHandPositionMemoizedSerializedSize = -1; - private void ensureBestHandPositionIsMutable() { - if (!bestHandPosition_.isModifiable()) { - bestHandPosition_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(bestHandPosition_); - } - } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - private void setBestHandPosition( - int index, int value) { - ensureBestHandPositionIsMutable(); - bestHandPosition_.setInt(index, value); - } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - private void addBestHandPosition(int value) { - ensureBestHandPositionIsMutable(); - bestHandPosition_.addInt(value); - } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - private void addAllBestHandPosition( - java.lang.Iterable values) { - ensureBestHandPositionIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, bestHandPosition_); - } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - private void clearBestHandPosition() { - bestHandPosition_ = emptyIntList(); - } - + + // required uint32 moneyWon = 5; public static final int MONEYWON_FIELD_NUMBER = 5; private int moneyWon_; - /** - * required uint32 moneyWon = 5; - */ - @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 moneyWon = 5; - */ - @java.lang.Override public int getMoneyWon() { return moneyWon_; } - /** - * required uint32 moneyWon = 5; - */ - private void setMoneyWon(int value) { - bitField0_ |= 0x00000008; - moneyWon_ = value; - } - /** - * required uint32 moneyWon = 5; - */ - private void clearMoneyWon() { - bitField0_ = (bitField0_ & ~0x00000008); - moneyWon_ = 0; - } - + + // required uint32 playerMoney = 6; public static final int PLAYERMONEY_FIELD_NUMBER = 6; private int playerMoney_; - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - /** - * required uint32 playerMoney = 6; - */ - private void setPlayerMoney(int value) { - bitField0_ |= 0x00000010; - playerMoney_ = value; - } - /** - * required uint32 playerMoney = 6; - */ - private void clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000010); - playerMoney_ = 0; - } - + + // optional uint32 cardsValue = 7; public static final int CARDSVALUE_FIELD_NUMBER = 7; private int cardsValue_; - /** - * optional uint32 cardsValue = 7; - */ - @java.lang.Override public boolean hasCardsValue() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional uint32 cardsValue = 7; - */ - @java.lang.Override public int getCardsValue() { return cardsValue_; } - /** - * optional uint32 cardsValue = 7; - */ - private void setCardsValue(int value) { - bitField0_ |= 0x00000020; - cardsValue_ = value; - } - /** - * optional uint32 cardsValue = 7; - */ - private void clearCardsValue() { - bitField0_ = (bitField0_ & ~0x00000020); + + private void initFields() { + playerId_ = 0; + resultCard1_ = 0; + resultCard2_ = 0; + bestHandPosition_ = java.util.Collections.emptyList();; + moneyWon_ = 0; + playerMoney_ = 0; cardsValue_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultCard2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMoneyWon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, resultCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, resultCard2_); } if (getBestHandPositionList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(bestHandPositionMemoizedSerializedSize); + output.writeRawVarint32(34); + output.writeRawVarint32(bestHandPositionMemoizedSerializedSize); } for (int i = 0; i < bestHandPosition_.size(); i++) { - output.writeUInt32NoTag(bestHandPosition_.getInt(i)); + output.writeUInt32NoTag(bestHandPosition_.get(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, moneyWon_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(6, playerMoney_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(7, cardsValue_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, resultCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, resultCard2_); } @@ -3091,7 +1921,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < bestHandPosition_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(bestHandPosition_.getInt(i)); + .computeUInt32SizeNoTag(bestHandPosition_.get(i)); } size += dataSize; if (!getBestHandPositionList().isEmpty()) { @@ -3101,671 +1931,562 @@ public final class ProtoBuf { } bestHandPositionMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, moneyWon_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, playerMoney_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, cardsValue_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerResult prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerResult} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerResult, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerResult) - de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerResult, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 playerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + resultCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + resultCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bestHandPosition_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + moneyWon_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + cardsValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult build() { + de.pokerth.protocol.ProtoBuf.PlayerResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerResult buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerResult result = new de.pokerth.protocol.ProtoBuf.PlayerResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.resultCard1_ = resultCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.resultCard2_ = resultCard2_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + bestHandPosition_ = java.util.Collections.unmodifiableList(bestHandPosition_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.bestHandPosition_ = bestHandPosition_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.moneyWon_ = moneyWon_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.playerMoney_ = playerMoney_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.cardsValue_ = cardsValue_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerResult other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasResultCard1()) { + setResultCard1(other.getResultCard1()); + } + if (other.hasResultCard2()) { + setResultCard2(other.getResultCard2()); + } + if (!other.bestHandPosition_.isEmpty()) { + if (bestHandPosition_.isEmpty()) { + bestHandPosition_ = other.bestHandPosition_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBestHandPositionIsMutable(); + bestHandPosition_.addAll(other.bestHandPosition_); + } + + } + if (other.hasMoneyWon()) { + setMoneyWon(other.getMoneyWon()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + if (other.hasCardsValue()) { + setCardsValue(other.getCardsValue()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasResultCard1()) { + + return false; + } + if (!hasResultCard2()) { + + return false; + } + if (!hasMoneyWon()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + resultCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + resultCard2_ = input.readUInt32(); + break; + } + case 32: { + ensureBestHandPositionIsMutable(); + bestHandPosition_.add(input.readUInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addBestHandPosition(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 40: { + bitField0_ |= 0x00000010; + moneyWon_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + playerMoney_ = input.readUInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + cardsValue_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 1; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000001; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 1; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + return this; } - - /** - * required uint32 resultCard1 = 2; - */ - @java.lang.Override + + // required uint32 resultCard1 = 2; + private int resultCard1_ ; public boolean hasResultCard1() { - return instance.hasResultCard1(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 resultCard1 = 2; - */ - @java.lang.Override public int getResultCard1() { - return instance.getResultCard1(); + return resultCard1_; } - /** - * required uint32 resultCard1 = 2; - */ public Builder setResultCard1(int value) { - copyOnWrite(); - instance.setResultCard1(value); + bitField0_ |= 0x00000002; + resultCard1_ = value; + return this; } - /** - * required uint32 resultCard1 = 2; - */ public Builder clearResultCard1() { - copyOnWrite(); - instance.clearResultCard1(); + bitField0_ = (bitField0_ & ~0x00000002); + resultCard1_ = 0; + return this; } - - /** - * required uint32 resultCard2 = 3; - */ - @java.lang.Override + + // required uint32 resultCard2 = 3; + private int resultCard2_ ; public boolean hasResultCard2() { - return instance.hasResultCard2(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 resultCard2 = 3; - */ - @java.lang.Override public int getResultCard2() { - return instance.getResultCard2(); + return resultCard2_; } - /** - * required uint32 resultCard2 = 3; - */ public Builder setResultCard2(int value) { - copyOnWrite(); - instance.setResultCard2(value); + bitField0_ |= 0x00000004; + resultCard2_ = value; + return this; } - /** - * required uint32 resultCard2 = 3; - */ public Builder clearResultCard2() { - copyOnWrite(); - instance.clearResultCard2(); + bitField0_ = (bitField0_ & ~0x00000004); + resultCard2_ = 0; + return this; } - - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override + + // repeated uint32 bestHandPosition = 4 [packed = true]; + private java.util.List bestHandPosition_ = java.util.Collections.emptyList();; + private void ensureBestHandPositionIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + bestHandPosition_ = new java.util.ArrayList(bestHandPosition_); + bitField0_ |= 0x00000008; + } + } public java.util.List getBestHandPositionList() { - return java.util.Collections.unmodifiableList( - instance.getBestHandPositionList()); + return java.util.Collections.unmodifiableList(bestHandPosition_); } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override public int getBestHandPositionCount() { - return instance.getBestHandPositionCount(); + return bestHandPosition_.size(); } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ - @java.lang.Override public int getBestHandPosition(int index) { - return instance.getBestHandPosition(index); + return bestHandPosition_.get(index); } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ public Builder setBestHandPosition( int index, int value) { - copyOnWrite(); - instance.setBestHandPosition(index, value); + ensureBestHandPositionIsMutable(); + bestHandPosition_.set(index, value); + return this; } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ public Builder addBestHandPosition(int value) { - copyOnWrite(); - instance.addBestHandPosition(value); + ensureBestHandPositionIsMutable(); + bestHandPosition_.add(value); + return this; } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ public Builder addAllBestHandPosition( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllBestHandPosition(values); + ensureBestHandPositionIsMutable(); + super.addAll(values, bestHandPosition_); + return this; } - /** - * repeated uint32 bestHandPosition = 4 [packed = true]; - */ public Builder clearBestHandPosition() { - copyOnWrite(); - instance.clearBestHandPosition(); + bestHandPosition_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + return this; } - - /** - * required uint32 moneyWon = 5; - */ - @java.lang.Override + + // required uint32 moneyWon = 5; + private int moneyWon_ ; public boolean hasMoneyWon() { - return instance.hasMoneyWon(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 moneyWon = 5; - */ - @java.lang.Override public int getMoneyWon() { - return instance.getMoneyWon(); + return moneyWon_; } - /** - * required uint32 moneyWon = 5; - */ public Builder setMoneyWon(int value) { - copyOnWrite(); - instance.setMoneyWon(value); + bitField0_ |= 0x00000010; + moneyWon_ = value; + return this; } - /** - * required uint32 moneyWon = 5; - */ public Builder clearMoneyWon() { - copyOnWrite(); - instance.clearMoneyWon(); + bitField0_ = (bitField0_ & ~0x00000010); + moneyWon_ = 0; + return this; } - - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override + + // required uint32 playerMoney = 6; + private int playerMoney_ ; public boolean hasPlayerMoney() { - return instance.hasPlayerMoney(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public int getPlayerMoney() { - return instance.getPlayerMoney(); + return playerMoney_; } - /** - * required uint32 playerMoney = 6; - */ public Builder setPlayerMoney(int value) { - copyOnWrite(); - instance.setPlayerMoney(value); + bitField0_ |= 0x00000020; + playerMoney_ = value; + return this; } - /** - * required uint32 playerMoney = 6; - */ public Builder clearPlayerMoney() { - copyOnWrite(); - instance.clearPlayerMoney(); + bitField0_ = (bitField0_ & ~0x00000020); + playerMoney_ = 0; + return this; } - - /** - * optional uint32 cardsValue = 7; - */ - @java.lang.Override + + // optional uint32 cardsValue = 7; + private int cardsValue_ ; public boolean hasCardsValue() { - return instance.hasCardsValue(); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * optional uint32 cardsValue = 7; - */ - @java.lang.Override public int getCardsValue() { - return instance.getCardsValue(); + return cardsValue_; } - /** - * optional uint32 cardsValue = 7; - */ public Builder setCardsValue(int value) { - copyOnWrite(); - instance.setCardsValue(value); + bitField0_ |= 0x00000040; + cardsValue_ = value; + return this; } - /** - * optional uint32 cardsValue = 7; - */ public Builder clearCardsValue() { - copyOnWrite(); - instance.clearCardsValue(); + bitField0_ = (bitField0_ & ~0x00000040); + cardsValue_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:PlayerResult) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerResult(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerId()) { - return null; - } - if (!hasResultCard1()) { - return null; - } - if (!hasResultCard2()) { - return null; - } - if (!hasMoneyWon()) { - return null; - } - if (!hasPlayerMoney()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - bestHandPosition_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerResult other = (de.pokerth.protocol.ProtoBuf.PlayerResult) arg1; - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - resultCard1_ = visitor.visitInt( - hasResultCard1(), resultCard1_, - other.hasResultCard1(), other.resultCard1_); - resultCard2_ = visitor.visitInt( - hasResultCard2(), resultCard2_, - other.hasResultCard2(), other.resultCard2_); - bestHandPosition_= visitor.visitIntList(bestHandPosition_, other.bestHandPosition_); - moneyWon_ = visitor.visitInt( - hasMoneyWon(), moneyWon_, - other.hasMoneyWon(), other.moneyWon_); - playerMoney_ = visitor.visitInt( - hasPlayerMoney(), playerMoney_, - other.hasPlayerMoney(), other.playerMoney_); - cardsValue_ = visitor.visitInt( - hasCardsValue(), cardsValue_, - other.hasCardsValue(), other.cardsValue_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - resultCard1_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - resultCard2_ = input.readUInt32(); - break; - } - case 32: { - if (!bestHandPosition_.isModifiable()) { - bestHandPosition_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(bestHandPosition_); - } - bestHandPosition_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!bestHandPosition_.isModifiable() && input.getBytesUntilLimit() > 0) { - bestHandPosition_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(bestHandPosition_); - } - while (input.getBytesUntilLimit() > 0) { - bestHandPosition_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - bitField0_ |= 0x00000008; - moneyWon_ = input.readUInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000010; - playerMoney_ = input.readUInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000020; - cardsValue_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerResult.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerResult) - private static final de.pokerth.protocol.ProtoBuf.PlayerResult DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerResult(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerResult(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerResult) } - - public interface AnnounceMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AnnounceMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ + + public interface AnnounceMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .AnnounceMessage.Version protocolVersion = 1; boolean hasProtocolVersion(); - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion(); - - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ + + // required .AnnounceMessage.Version latestGameVersion = 2; boolean hasLatestGameVersion(); - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion(); - - /** - * required uint32 latestBetaRevision = 3; - */ + + // required uint32 latestBetaRevision = 3; boolean hasLatestBetaRevision(); - /** - * required uint32 latestBetaRevision = 3; - */ int getLatestBetaRevision(); - - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ + + // required .AnnounceMessage.ServerType serverType = 4; boolean hasServerType(); - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType(); - - /** - * required uint32 numPlayersOnServer = 5; - */ + + // required uint32 numPlayersOnServer = 5; boolean hasNumPlayersOnServer(); - /** - * required uint32 numPlayersOnServer = 5; - */ int getNumPlayersOnServer(); } - /** - * Protobuf type {@code AnnounceMessage} - */ - public static final class AnnounceMessage extends - com.google.protobuf.GeneratedMessageLite< - AnnounceMessage, AnnounceMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AnnounceMessage) - AnnounceMessageOrBuilder { - private AnnounceMessage() { + public static final class AnnounceMessage extends + com.google.protobuf.GeneratedMessageLite + implements AnnounceMessageOrBuilder { + // Use AnnounceMessage.newBuilder() to construct. + private AnnounceMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code AnnounceMessage.ServerType} - */ + private AnnounceMessage(boolean noInit) {} + + private static final AnnounceMessage defaultInstance; + public static AnnounceMessage getDefaultInstance() { + return defaultInstance; + } + + public AnnounceMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum ServerType implements com.google.protobuf.Internal.EnumLite { - /** - * serverTypeLAN = 0; - */ - serverTypeLAN(0), - /** - * serverTypeInternetNoAuth = 1; - */ - serverTypeInternetNoAuth(1), - /** - * serverTypeInternetAuth = 2; - */ - serverTypeInternetAuth(2), + serverTypeLAN(0, 0), + serverTypeInternetNoAuth(1, 1), + serverTypeInternetAuth(2, 2), ; - - /** - * serverTypeLAN = 0; - */ + public static final int serverTypeLAN_VALUE = 0; - /** - * serverTypeInternetNoAuth = 1; - */ public static final int serverTypeInternetNoAuth_VALUE = 1; - /** - * serverTypeInternetAuth = 2; - */ public static final int serverTypeInternetAuth_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static ServerType valueOf(int value) { - return forNumber(value); - } - - public static ServerType forNumber(int value) { switch (value) { case 0: return serverTypeLAN; case 1: return serverTypeInternetNoAuth; @@ -3773,1388 +2494,1037 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServerType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public ServerType findValueByNumber(int number) { - return ServerType.forNumber(number); + return ServerType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return ServerTypeVerifier.INSTANCE; - } - - private static final class ServerTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ServerTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return ServerType.forNumber(number) != null; - } - }; - + private final int value; - - private ServerType(int value) { + + private ServerType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:AnnounceMessage.ServerType) } - - public interface VersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:AnnounceMessage.Version) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 majorVersion = 1; - */ + + public interface VersionOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 majorVersion = 1; boolean hasMajorVersion(); - /** - * required uint32 majorVersion = 1; - */ int getMajorVersion(); - - /** - * required uint32 minorVersion = 2; - */ + + // required uint32 minorVersion = 2; boolean hasMinorVersion(); - /** - * required uint32 minorVersion = 2; - */ int getMinorVersion(); } - /** - * Protobuf type {@code AnnounceMessage.Version} - */ - public static final class Version extends - com.google.protobuf.GeneratedMessageLite< - Version, Version.Builder> implements - // @@protoc_insertion_point(message_implements:AnnounceMessage.Version) - VersionOrBuilder { - private Version() { + public static final class Version extends + com.google.protobuf.GeneratedMessageLite + implements VersionOrBuilder { + // Use Version.newBuilder() to construct. + private Version(Builder builder) { + super(builder); } + private Version(boolean noInit) {} + + private static final Version defaultInstance; + public static Version getDefaultInstance() { + return defaultInstance; + } + + public Version getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 majorVersion = 1; public static final int MAJORVERSION_FIELD_NUMBER = 1; private int majorVersion_; - /** - * required uint32 majorVersion = 1; - */ - @java.lang.Override public boolean hasMajorVersion() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 majorVersion = 1; - */ - @java.lang.Override public int getMajorVersion() { return majorVersion_; } - /** - * required uint32 majorVersion = 1; - */ - private void setMajorVersion(int value) { - bitField0_ |= 0x00000001; - majorVersion_ = value; - } - /** - * required uint32 majorVersion = 1; - */ - private void clearMajorVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - majorVersion_ = 0; - } - + + // required uint32 minorVersion = 2; public static final int MINORVERSION_FIELD_NUMBER = 2; private int minorVersion_; - /** - * required uint32 minorVersion = 2; - */ - @java.lang.Override public boolean hasMinorVersion() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 minorVersion = 2; - */ - @java.lang.Override public int getMinorVersion() { return minorVersion_; } - /** - * required uint32 minorVersion = 2; - */ - private void setMinorVersion(int value) { - bitField0_ |= 0x00000002; - minorVersion_ = value; - } - /** - * required uint32 minorVersion = 2; - */ - private void clearMinorVersion() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + majorVersion_ = 0; minorVersion_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMajorVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMinorVersion()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, majorVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, minorVersion_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, majorVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, minorVersion_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AnnounceMessage.Version} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, Builder> implements - // @@protoc_insertion_point(builder_implements:AnnounceMessage.Version) - de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, Builder> + implements de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 majorVersion = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + majorVersion_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + minorVersion_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version build() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version buildPartial() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = new de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.majorVersion_ = majorVersion_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.minorVersion_ = minorVersion_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version other) { + if (other == de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) return this; + if (other.hasMajorVersion()) { + setMajorVersion(other.getMajorVersion()); + } + if (other.hasMinorVersion()) { + setMinorVersion(other.getMinorVersion()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasMajorVersion()) { + + return false; + } + if (!hasMinorVersion()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + majorVersion_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + minorVersion_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 majorVersion = 1; + private int majorVersion_ ; public boolean hasMajorVersion() { - return instance.hasMajorVersion(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 majorVersion = 1; - */ - @java.lang.Override public int getMajorVersion() { - return instance.getMajorVersion(); + return majorVersion_; } - /** - * required uint32 majorVersion = 1; - */ public Builder setMajorVersion(int value) { - copyOnWrite(); - instance.setMajorVersion(value); + bitField0_ |= 0x00000001; + majorVersion_ = value; + return this; } - /** - * required uint32 majorVersion = 1; - */ public Builder clearMajorVersion() { - copyOnWrite(); - instance.clearMajorVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + majorVersion_ = 0; + return this; } - - /** - * required uint32 minorVersion = 2; - */ - @java.lang.Override + + // required uint32 minorVersion = 2; + private int minorVersion_ ; public boolean hasMinorVersion() { - return instance.hasMinorVersion(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 minorVersion = 2; - */ - @java.lang.Override public int getMinorVersion() { - return instance.getMinorVersion(); + return minorVersion_; } - /** - * required uint32 minorVersion = 2; - */ public Builder setMinorVersion(int value) { - copyOnWrite(); - instance.setMinorVersion(value); + bitField0_ |= 0x00000002; + minorVersion_ = value; + return this; } - /** - * required uint32 minorVersion = 2; - */ public Builder clearMinorVersion() { - copyOnWrite(); - instance.clearMinorVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + minorVersion_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AnnounceMessage.Version) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasMajorVersion()) { - return null; - } - if (!hasMinorVersion()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version other = (de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version) arg1; - majorVersion_ = visitor.visitInt( - hasMajorVersion(), majorVersion_, - other.hasMajorVersion(), other.majorVersion_); - minorVersion_ = visitor.visitInt( - hasMinorVersion(), minorVersion_, - other.hasMinorVersion(), other.minorVersion_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - majorVersion_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - minorVersion_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) - private static final de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new Version(); - } - - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new Version(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) } - + private int bitField0_; + // required .AnnounceMessage.Version protocolVersion = 1; public static final int PROTOCOLVERSION_FIELD_NUMBER = 1; private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version protocolVersion_; - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - @java.lang.Override public boolean hasProtocolVersion() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { - return protocolVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : protocolVersion_; + return protocolVersion_; } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - private void setProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - protocolVersion_ = value; - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - private void setProtocolVersion( - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - protocolVersion_ = builderForValue.build(); - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - if (protocolVersion_ != null && - protocolVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { - protocolVersion_ = - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); - } else { - protocolVersion_ = value; - } - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - private void clearProtocolVersion() { protocolVersion_ = null; - bitField0_ = (bitField0_ & ~0x00000001); - } - + + // required .AnnounceMessage.Version latestGameVersion = 2; public static final int LATESTGAMEVERSION_FIELD_NUMBER = 2; private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version latestGameVersion_; - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - @java.lang.Override public boolean hasLatestGameVersion() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { - return latestGameVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : latestGameVersion_; + return latestGameVersion_; } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - private void setLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - latestGameVersion_ = value; - bitField0_ |= 0x00000002; - } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - private void setLatestGameVersion( - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - latestGameVersion_ = builderForValue.build(); - bitField0_ |= 0x00000002; - } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - if (latestGameVersion_ != null && - latestGameVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { - latestGameVersion_ = - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(latestGameVersion_).mergeFrom(value).buildPartial(); - } else { - latestGameVersion_ = value; - } - bitField0_ |= 0x00000002; - } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - private void clearLatestGameVersion() { latestGameVersion_ = null; - bitField0_ = (bitField0_ & ~0x00000002); - } - + + // required uint32 latestBetaRevision = 3; public static final int LATESTBETAREVISION_FIELD_NUMBER = 3; private int latestBetaRevision_; - /** - * required uint32 latestBetaRevision = 3; - */ - @java.lang.Override public boolean hasLatestBetaRevision() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 latestBetaRevision = 3; - */ - @java.lang.Override public int getLatestBetaRevision() { return latestBetaRevision_; } - /** - * required uint32 latestBetaRevision = 3; - */ - private void setLatestBetaRevision(int value) { - bitField0_ |= 0x00000004; - latestBetaRevision_ = value; - } - /** - * required uint32 latestBetaRevision = 3; - */ - private void clearLatestBetaRevision() { - bitField0_ = (bitField0_ & ~0x00000004); - latestBetaRevision_ = 0; - } - + + // required .AnnounceMessage.ServerType serverType = 4; public static final int SERVERTYPE_FIELD_NUMBER = 4; - private int serverType_; - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_; public boolean hasServerType() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType result = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.forNumber(serverType_); - return result == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN : result; + return serverType_; } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - private void setServerType(de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - serverType_ = value.getNumber(); - } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - private void clearServerType() { - bitField0_ = (bitField0_ & ~0x00000008); - serverType_ = 0; - } - + + // required uint32 numPlayersOnServer = 5; public static final int NUMPLAYERSONSERVER_FIELD_NUMBER = 5; private int numPlayersOnServer_; - /** - * required uint32 numPlayersOnServer = 5; - */ - @java.lang.Override public boolean hasNumPlayersOnServer() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 numPlayersOnServer = 5; - */ - @java.lang.Override public int getNumPlayersOnServer() { return numPlayersOnServer_; } - /** - * required uint32 numPlayersOnServer = 5; - */ - private void setNumPlayersOnServer(int value) { - bitField0_ |= 0x00000010; - numPlayersOnServer_ = value; - } - /** - * required uint32 numPlayersOnServer = 5; - */ - private void clearNumPlayersOnServer() { - bitField0_ = (bitField0_ & ~0x00000010); + + private void initFields() { + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + latestBetaRevision_ = 0; + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; numPlayersOnServer_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasProtocolVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLatestGameVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLatestBetaRevision()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasServerType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumPlayersOnServer()) { + memoizedIsInitialized = 0; + return false; + } + if (!getProtocolVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (!getLatestGameVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getProtocolVersion()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, protocolVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getLatestGameVersion()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, latestGameVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, latestBetaRevision_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(4, serverType_); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, serverType_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, numPlayersOnServer_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProtocolVersion()); + .computeMessageSize(1, protocolVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLatestGameVersion()); + .computeMessageSize(2, latestGameVersion_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, latestBetaRevision_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, serverType_); + .computeEnumSize(4, serverType_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, numPlayersOnServer_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AnnounceMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AnnounceMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AnnounceMessage) - de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AnnounceMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - @java.lang.Override - public boolean hasProtocolVersion() { - return instance.hasProtocolVersion(); + + private void maybeForceBuilderInitialization() { } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { - return instance.getProtocolVersion(); + private static Builder create() { + return new Builder(); } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - public Builder setProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.setProtocolVersion(value); + + public Builder clear() { + super.clear(); + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + latestBetaRevision_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + bitField0_ = (bitField0_ & ~0x00000008); + numPlayersOnServer_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage build() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.AnnounceMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = new de.pokerth.protocol.ProtoBuf.AnnounceMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.protocolVersion_ = protocolVersion_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.latestGameVersion_ = latestGameVersion_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.latestBetaRevision_ = latestBetaRevision_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.serverType_ = serverType_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.numPlayersOnServer_ = numPlayersOnServer_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AnnounceMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance()) return this; + if (other.hasProtocolVersion()) { + mergeProtocolVersion(other.getProtocolVersion()); + } + if (other.hasLatestGameVersion()) { + mergeLatestGameVersion(other.getLatestGameVersion()); + } + if (other.hasLatestBetaRevision()) { + setLatestBetaRevision(other.getLatestBetaRevision()); + } + if (other.hasServerType()) { + setServerType(other.getServerType()); + } + if (other.hasNumPlayersOnServer()) { + setNumPlayersOnServer(other.getNumPlayersOnServer()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasProtocolVersion()) { + + return false; + } + if (!hasLatestGameVersion()) { + + return false; + } + if (!hasLatestBetaRevision()) { + + return false; + } + if (!hasServerType()) { + + return false; + } + if (!hasNumPlayersOnServer()) { + + return false; + } + if (!getProtocolVersion().isInitialized()) { + + return false; + } + if (!getLatestGameVersion().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasProtocolVersion()) { + subBuilder.mergeFrom(getProtocolVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setProtocolVersion(subBuilder.buildPartial()); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasLatestGameVersion()) { + subBuilder.mergeFrom(getLatestGameVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setLatestGameVersion(subBuilder.buildPartial()); + break; + } + case 24: { + bitField0_ |= 0x00000004; + latestBetaRevision_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000008; + serverType_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + numPlayersOnServer_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .AnnounceMessage.Version protocolVersion = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + public boolean hasProtocolVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { + return protocolVersion_; + } + public Builder setProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (value == null) { + throw new NullPointerException(); + } + protocolVersion_ = value; + + bitField0_ |= 0x00000001; + return this; + } public Builder setProtocolVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - copyOnWrite(); - instance.setProtocolVersion(builderForValue); + protocolVersion_ = builderForValue.build(); + + bitField0_ |= 0x00000001; return this; } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ public Builder mergeProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.mergeProtocolVersion(value); - return this; - } - /** - * required .AnnounceMessage.Version protocolVersion = 1; - */ - public Builder clearProtocolVersion() { copyOnWrite(); - instance.clearProtocolVersion(); - return this; - } - - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - @java.lang.Override - public boolean hasLatestGameVersion() { - return instance.hasLatestGameVersion(); - } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { - return instance.getLatestGameVersion(); - } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - public Builder setLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.setLatestGameVersion(value); - return this; + if (((bitField0_ & 0x00000001) == 0x00000001) && + protocolVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + protocolVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); + } else { + protocolVersion_ = value; } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ + + bitField0_ |= 0x00000001; + return this; + } + public Builder clearProtocolVersion() { + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + public boolean hasLatestGameVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { + return latestGameVersion_; + } + public Builder setLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (value == null) { + throw new NullPointerException(); + } + latestGameVersion_ = value; + + bitField0_ |= 0x00000002; + return this; + } public Builder setLatestGameVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - copyOnWrite(); - instance.setLatestGameVersion(builderForValue); + latestGameVersion_ = builderForValue.build(); + + bitField0_ |= 0x00000002; return this; } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ public Builder mergeLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.mergeLatestGameVersion(value); + if (((bitField0_ & 0x00000002) == 0x00000002) && + latestGameVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + latestGameVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(latestGameVersion_).mergeFrom(value).buildPartial(); + } else { + latestGameVersion_ = value; + } + + bitField0_ |= 0x00000002; return this; } - /** - * required .AnnounceMessage.Version latestGameVersion = 2; - */ - public Builder clearLatestGameVersion() { copyOnWrite(); - instance.clearLatestGameVersion(); + public Builder clearLatestGameVersion() { + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000002); return this; } - - /** - * required uint32 latestBetaRevision = 3; - */ - @java.lang.Override + + // required uint32 latestBetaRevision = 3; + private int latestBetaRevision_ ; public boolean hasLatestBetaRevision() { - return instance.hasLatestBetaRevision(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 latestBetaRevision = 3; - */ - @java.lang.Override public int getLatestBetaRevision() { - return instance.getLatestBetaRevision(); + return latestBetaRevision_; } - /** - * required uint32 latestBetaRevision = 3; - */ public Builder setLatestBetaRevision(int value) { - copyOnWrite(); - instance.setLatestBetaRevision(value); + bitField0_ |= 0x00000004; + latestBetaRevision_ = value; + return this; } - /** - * required uint32 latestBetaRevision = 3; - */ public Builder clearLatestBetaRevision() { - copyOnWrite(); - instance.clearLatestBetaRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + latestBetaRevision_ = 0; + return this; } - - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - @java.lang.Override + + // required .AnnounceMessage.ServerType serverType = 4; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; public boolean hasServerType() { - return instance.hasServerType(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { - return instance.getServerType(); + return serverType_; } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ public Builder setServerType(de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value) { - copyOnWrite(); - instance.setServerType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + serverType_ = value; + return this; } - /** - * required .AnnounceMessage.ServerType serverType = 4; - */ public Builder clearServerType() { - copyOnWrite(); - instance.clearServerType(); + bitField0_ = (bitField0_ & ~0x00000008); + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + return this; } - - /** - * required uint32 numPlayersOnServer = 5; - */ - @java.lang.Override + + // required uint32 numPlayersOnServer = 5; + private int numPlayersOnServer_ ; public boolean hasNumPlayersOnServer() { - return instance.hasNumPlayersOnServer(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 numPlayersOnServer = 5; - */ - @java.lang.Override public int getNumPlayersOnServer() { - return instance.getNumPlayersOnServer(); + return numPlayersOnServer_; } - /** - * required uint32 numPlayersOnServer = 5; - */ public Builder setNumPlayersOnServer(int value) { - copyOnWrite(); - instance.setNumPlayersOnServer(value); + bitField0_ |= 0x00000010; + numPlayersOnServer_ = value; + return this; } - /** - * required uint32 numPlayersOnServer = 5; - */ public Builder clearNumPlayersOnServer() { - copyOnWrite(); - instance.clearNumPlayersOnServer(); + bitField0_ = (bitField0_ & ~0x00000010); + numPlayersOnServer_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AnnounceMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AnnounceMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasProtocolVersion()) { - return null; - } - if (!hasLatestGameVersion()) { - return null; - } - if (!hasLatestBetaRevision()) { - return null; - } - if (!hasServerType()) { - return null; - } - if (!hasNumPlayersOnServer()) { - return null; - } - if (!getProtocolVersion().isInitialized()) { - return null; - } - if (!getLatestGameVersion().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AnnounceMessage other = (de.pokerth.protocol.ProtoBuf.AnnounceMessage) arg1; - protocolVersion_ = visitor.visitMessage(protocolVersion_, other.protocolVersion_); - latestGameVersion_ = visitor.visitMessage(latestGameVersion_, other.latestGameVersion_); - latestBetaRevision_ = visitor.visitInt( - hasLatestBetaRevision(), latestBetaRevision_, - other.hasLatestBetaRevision(), other.latestBetaRevision_); - serverType_ = visitor.visitInt(hasServerType(), serverType_, - other.hasServerType(), other.serverType_); - numPlayersOnServer_ = visitor.visitInt( - hasNumPlayersOnServer(), numPlayersOnServer_, - other.hasNumPlayersOnServer(), other.numPlayersOnServer_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = protocolVersion_.toBuilder(); - } - protocolVersion_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(protocolVersion_); - protocolVersion_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = latestGameVersion_.toBuilder(); - } - latestGameVersion_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestGameVersion_); - latestGameVersion_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 24: { - bitField0_ |= 0x00000004; - latestBetaRevision_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - serverType_ = rawValue; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - numPlayersOnServer_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AnnounceMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AnnounceMessage) - private static final de.pokerth.protocol.ProtoBuf.AnnounceMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AnnounceMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AnnounceMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AnnounceMessage) } - - public interface InitMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:InitMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ + + public interface InitMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .AnnounceMessage.Version requestedVersion = 1; boolean hasRequestedVersion(); - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion(); - - /** - * required uint32 buildId = 2; - */ + + // required uint32 buildId = 2; boolean hasBuildId(); - /** - * required uint32 buildId = 2; - */ int getBuildId(); - - /** - * optional bytes myLastSessionId = 3; - */ + + // optional bytes myLastSessionId = 3; boolean hasMyLastSessionId(); - /** - * optional bytes myLastSessionId = 3; - */ com.google.protobuf.ByteString getMyLastSessionId(); - - /** - * optional string authServerPassword = 4; - */ + + // optional string authServerPassword = 4; boolean hasAuthServerPassword(); - /** - * optional string authServerPassword = 4; - */ - java.lang.String getAuthServerPassword(); - /** - * optional string authServerPassword = 4; - */ - com.google.protobuf.ByteString - getAuthServerPasswordBytes(); - - /** - * required .InitMessage.LoginType login = 5; - */ + String getAuthServerPassword(); + + // required .InitMessage.LoginType login = 5; boolean hasLogin(); - /** - * required .InitMessage.LoginType login = 5; - */ de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin(); - - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ + + // optional string nickName = 6; boolean hasNickName(); - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - java.lang.String getNickName(); - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - com.google.protobuf.ByteString - getNickNameBytes(); - - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ + String getNickName(); + + // optional bytes clientUserData = 7; boolean hasClientUserData(); - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ com.google.protobuf.ByteString getClientUserData(); - - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ + + // optional bytes avatarHash = 8; boolean hasAvatarHash(); - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ com.google.protobuf.ByteString getAvatarHash(); } - /** - *
-   * buildId contains a constant build id (specific for Windows/Linux/Mac builds)
-   * 
- * - * Protobuf type {@code InitMessage} - */ - public static final class InitMessage extends - com.google.protobuf.GeneratedMessageLite< - InitMessage, InitMessage.Builder> implements - // @@protoc_insertion_point(message_implements:InitMessage) - InitMessageOrBuilder { - private InitMessage() { - myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; - authServerPassword_ = ""; - nickName_ = ""; - clientUserData_ = com.google.protobuf.ByteString.EMPTY; - avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public static final class InitMessage extends + com.google.protobuf.GeneratedMessageLite + implements InitMessageOrBuilder { + // Use InitMessage.newBuilder() to construct. + private InitMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code InitMessage.LoginType} - */ + private InitMessage(boolean noInit) {} + + private static final InitMessage defaultInstance; + public static InitMessage getDefaultInstance() { + return defaultInstance; + } + + public InitMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum LoginType implements com.google.protobuf.Internal.EnumLite { - /** - * guestLogin = 0; - */ - guestLogin(0), - /** - * authenticatedLogin = 1; - */ - authenticatedLogin(1), - /** - * unauthenticatedLogin = 2; - */ - unauthenticatedLogin(2), + guestLogin(0, 0), + authenticatedLogin(1, 1), + unauthenticatedLogin(2, 2), ; - - /** - * guestLogin = 0; - */ + public static final int guestLogin_VALUE = 0; - /** - * authenticatedLogin = 1; - */ public static final int authenticatedLogin_VALUE = 1; - /** - * unauthenticatedLogin = 2; - */ public static final int unauthenticatedLogin_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static LoginType valueOf(int value) { - return forNumber(value); - } - - public static LoginType forNumber(int value) { switch (value) { case 0: return guestLogin; case 1: return authenticatedLogin; @@ -5162,5783 +3532,4518 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - LoginType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public LoginType findValueByNumber(int number) { - return LoginType.forNumber(number); + return LoginType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return LoginTypeVerifier.INSTANCE; - } - - private static final class LoginTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new LoginTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return LoginType.forNumber(number) != null; - } - }; - + private final int value; - - private LoginType(int value) { + + private LoginType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:InitMessage.LoginType) } - + private int bitField0_; + // required .AnnounceMessage.Version requestedVersion = 1; public static final int REQUESTEDVERSION_FIELD_NUMBER = 1; private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version requestedVersion_; - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - @java.lang.Override public boolean hasRequestedVersion() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { - return requestedVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : requestedVersion_; + return requestedVersion_; } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - private void setRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - requestedVersion_ = value; - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - private void setRequestedVersion( - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - requestedVersion_ = builderForValue.build(); - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - if (requestedVersion_ != null && - requestedVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { - requestedVersion_ = - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(requestedVersion_).mergeFrom(value).buildPartial(); - } else { - requestedVersion_ = value; - } - bitField0_ |= 0x00000001; - } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - private void clearRequestedVersion() { requestedVersion_ = null; - bitField0_ = (bitField0_ & ~0x00000001); - } - + + // required uint32 buildId = 2; public static final int BUILDID_FIELD_NUMBER = 2; private int buildId_; - /** - * required uint32 buildId = 2; - */ - @java.lang.Override public boolean hasBuildId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 buildId = 2; - */ - @java.lang.Override public int getBuildId() { return buildId_; } - /** - * required uint32 buildId = 2; - */ - private void setBuildId(int value) { - bitField0_ |= 0x00000002; - buildId_ = value; - } - /** - * required uint32 buildId = 2; - */ - private void clearBuildId() { - bitField0_ = (bitField0_ & ~0x00000002); - buildId_ = 0; - } - + + // optional bytes myLastSessionId = 3; public static final int MYLASTSESSIONID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString myLastSessionId_; - /** - * optional bytes myLastSessionId = 3; - */ - @java.lang.Override public boolean hasMyLastSessionId() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes myLastSessionId = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getMyLastSessionId() { return myLastSessionId_; } - /** - * optional bytes myLastSessionId = 3; - */ - private void setMyLastSessionId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - myLastSessionId_ = value; - } - /** - * optional bytes myLastSessionId = 3; - */ - private void clearMyLastSessionId() { - bitField0_ = (bitField0_ & ~0x00000004); - myLastSessionId_ = getDefaultInstance().getMyLastSessionId(); - } - + + // optional string authServerPassword = 4; public static final int AUTHSERVERPASSWORD_FIELD_NUMBER = 4; - private java.lang.String authServerPassword_; - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override + private java.lang.Object authServerPassword_; public boolean hasAuthServerPassword() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override - public java.lang.String getAuthServerPassword() { - return authServerPassword_; - } - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAuthServerPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(authServerPassword_); - } - /** - * optional string authServerPassword = 4; - */ - private void setAuthServerPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - authServerPassword_ = value; - } - /** - * optional string authServerPassword = 4; - */ - private void clearAuthServerPassword() { - bitField0_ = (bitField0_ & ~0x00000008); - authServerPassword_ = getDefaultInstance().getAuthServerPassword(); - } - /** - * optional string authServerPassword = 4; - */ - private void setAuthServerPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - authServerPassword_ = value.toStringUtf8(); - } - - public static final int LOGIN_FIELD_NUMBER = 5; - private int login_; - /** - * required .InitMessage.LoginType login = 5; - */ - @java.lang.Override - public boolean hasLogin() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .InitMessage.LoginType login = 5; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { - de.pokerth.protocol.ProtoBuf.InitMessage.LoginType result = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.forNumber(login_); - return result == null ? de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin : result; - } - /** - * required .InitMessage.LoginType login = 5; - */ - private void setLogin(de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value) { - if (value == null) { - throw new NullPointerException(); + public String getAuthServerPassword() { + java.lang.Object ref = authServerPassword_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + authServerPassword_ = s; + } + return s; } - bitField0_ |= 0x00000010; - login_ = value.getNumber(); } - /** - * required .InitMessage.LoginType login = 5; - */ - private void clearLogin() { - bitField0_ = (bitField0_ & ~0x00000010); - login_ = 0; + private com.google.protobuf.ByteString getAuthServerPasswordBytes() { + java.lang.Object ref = authServerPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + authServerPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - + + // required .InitMessage.LoginType login = 5; + public static final int LOGIN_FIELD_NUMBER = 5; + private de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_; + public boolean hasLogin() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { + return login_; + } + + // optional string nickName = 6; public static final int NICKNAME_FIELD_NUMBER = 6; - private java.lang.String nickName_; - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - @java.lang.Override + private java.lang.Object nickName_; public boolean hasNickName() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - @java.lang.Override - public java.lang.String getNickName() { - return nickName_; + public String getNickName() { + java.lang.Object ref = nickName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nickName_ = s; + } + return s; + } } - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(nickName_); + private com.google.protobuf.ByteString getNickNameBytes() { + java.lang.Object ref = nickName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nickName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - private void setNickName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - nickName_ = value; - } - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - private void clearNickName() { - bitField0_ = (bitField0_ & ~0x00000020); - nickName_ = getDefaultInstance().getNickName(); - } - /** - *
-     * Only used for guest login or unauthenticated login.
-     * 
- * - * optional string nickName = 6; - */ - private void setNickNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - nickName_ = value.toStringUtf8(); - } - + + // optional bytes clientUserData = 7; public static final int CLIENTUSERDATA_FIELD_NUMBER = 7; private com.google.protobuf.ByteString clientUserData_; - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ - @java.lang.Override public boolean hasClientUserData() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ - @java.lang.Override public com.google.protobuf.ByteString getClientUserData() { return clientUserData_; } - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ - private void setClientUserData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - clientUserData_ = value; - } - /** - *
-     * Authenticated login data is according to SCRAM SHA-1
-     * 
- * - * optional bytes clientUserData = 7; - */ - private void clearClientUserData() { - bitField0_ = (bitField0_ & ~0x00000040); - clientUserData_ = getDefaultInstance().getClientUserData(); - } - + + // optional bytes avatarHash = 8; public static final int AVATARHASH_FIELD_NUMBER = 8; private com.google.protobuf.ByteString avatarHash_; - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ - @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ - private void setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - avatarHash_ = value; + + private void initFields() { + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + buildId_ = 0; + myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + authServerPassword_ = ""; + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + nickName_ = ""; + clientUserData_ = com.google.protobuf.ByteString.EMPTY; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - /** - *
-     * Ignored for guest login.
-     * 
- * - * optional bytes avatarHash = 8; - */ - private void clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000080); - avatarHash_ = getDefaultInstance().getAvatarHash(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestedVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBuildId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLogin()) { + memoizedIsInitialized = 0; + return false; + } + if (!getRequestedVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getRequestedVersion()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, requestedVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, buildId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, myLastSessionId_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeString(4, getAuthServerPassword()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getAuthServerPasswordBytes()); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, login_); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeEnum(5, login_.getNumber()); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeString(6, getNickName()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getNickNameBytes()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, clientUserData_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, avatarHash_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRequestedVersion()); + .computeMessageSize(1, requestedVersion_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, buildId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, myLastSessionId_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getAuthServerPassword()); + .computeBytesSize(4, getAuthServerPasswordBytes()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, login_); + .computeEnumSize(5, login_.getNumber()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(6, getNickName()); + .computeBytesSize(6, getNickNameBytes()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, clientUserData_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, avatarHash_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - *
-     * buildId contains a constant build id (specific for Windows/Linux/Mac builds)
-     * 
- * - * Protobuf type {@code InitMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InitMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:InitMessage) - de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.InitMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - @java.lang.Override - public boolean hasRequestedVersion() { - return instance.hasRequestedVersion(); + + private void maybeForceBuilderInitialization() { } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { - return instance.getRequestedVersion(); + private static Builder create() { + return new Builder(); } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - public Builder setRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.setRequestedVersion(value); + + public Builder clear() { + super.clear(); + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + buildId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + authServerPassword_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + bitField0_ = (bitField0_ & ~0x00000010); + nickName_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + clientUserData_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.InitMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InitMessage build() { + de.pokerth.protocol.ProtoBuf.InitMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.InitMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InitMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InitMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InitMessage result = new de.pokerth.protocol.ProtoBuf.InitMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestedVersion_ = requestedVersion_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.buildId_ = buildId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.myLastSessionId_ = myLastSessionId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.authServerPassword_ = authServerPassword_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.login_ = login_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.nickName_ = nickName_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.clientUserData_ = clientUserData_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InitMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance()) return this; + if (other.hasRequestedVersion()) { + mergeRequestedVersion(other.getRequestedVersion()); + } + if (other.hasBuildId()) { + setBuildId(other.getBuildId()); + } + if (other.hasMyLastSessionId()) { + setMyLastSessionId(other.getMyLastSessionId()); + } + if (other.hasAuthServerPassword()) { + setAuthServerPassword(other.getAuthServerPassword()); + } + if (other.hasLogin()) { + setLogin(other.getLogin()); + } + if (other.hasNickName()) { + setNickName(other.getNickName()); + } + if (other.hasClientUserData()) { + setClientUserData(other.getClientUserData()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestedVersion()) { + + return false; + } + if (!hasBuildId()) { + + return false; + } + if (!hasLogin()) { + + return false; + } + if (!getRequestedVersion().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasRequestedVersion()) { + subBuilder.mergeFrom(getRequestedVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setRequestedVersion(subBuilder.buildPartial()); + break; + } + case 16: { + bitField0_ |= 0x00000002; + buildId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + myLastSessionId_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + authServerPassword_ = input.readBytes(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000010; + login_ = value; + } + break; + } + case 50: { + bitField0_ |= 0x00000020; + nickName_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + clientUserData_ = input.readBytes(); + break; + } + case 66: { + bitField0_ |= 0x00000080; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required .AnnounceMessage.Version requestedVersion = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + public boolean hasRequestedVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { + return requestedVersion_; + } + public Builder setRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (value == null) { + throw new NullPointerException(); + } + requestedVersion_ = value; + + bitField0_ |= 0x00000001; + return this; + } public Builder setRequestedVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - copyOnWrite(); - instance.setRequestedVersion(builderForValue); + requestedVersion_ = builderForValue.build(); + + bitField0_ |= 0x00000001; return this; } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ public Builder mergeRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - copyOnWrite(); - instance.mergeRequestedVersion(value); + if (((bitField0_ & 0x00000001) == 0x00000001) && + requestedVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + requestedVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(requestedVersion_).mergeFrom(value).buildPartial(); + } else { + requestedVersion_ = value; + } + + bitField0_ |= 0x00000001; return this; } - /** - * required .AnnounceMessage.Version requestedVersion = 1; - */ - public Builder clearRequestedVersion() { copyOnWrite(); - instance.clearRequestedVersion(); + public Builder clearRequestedVersion() { + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000001); return this; } - - /** - * required uint32 buildId = 2; - */ - @java.lang.Override + + // required uint32 buildId = 2; + private int buildId_ ; public boolean hasBuildId() { - return instance.hasBuildId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 buildId = 2; - */ - @java.lang.Override public int getBuildId() { - return instance.getBuildId(); + return buildId_; } - /** - * required uint32 buildId = 2; - */ public Builder setBuildId(int value) { - copyOnWrite(); - instance.setBuildId(value); + bitField0_ |= 0x00000002; + buildId_ = value; + return this; } - /** - * required uint32 buildId = 2; - */ public Builder clearBuildId() { - copyOnWrite(); - instance.clearBuildId(); + bitField0_ = (bitField0_ & ~0x00000002); + buildId_ = 0; + return this; } - - /** - * optional bytes myLastSessionId = 3; - */ - @java.lang.Override + + // optional bytes myLastSessionId = 3; + private com.google.protobuf.ByteString myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; public boolean hasMyLastSessionId() { - return instance.hasMyLastSessionId(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes myLastSessionId = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getMyLastSessionId() { - return instance.getMyLastSessionId(); + return myLastSessionId_; } - /** - * optional bytes myLastSessionId = 3; - */ public Builder setMyLastSessionId(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMyLastSessionId(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + myLastSessionId_ = value; + return this; } - /** - * optional bytes myLastSessionId = 3; - */ public Builder clearMyLastSessionId() { - copyOnWrite(); - instance.clearMyLastSessionId(); + bitField0_ = (bitField0_ & ~0x00000004); + myLastSessionId_ = getDefaultInstance().getMyLastSessionId(); + return this; } - - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override + + // optional string authServerPassword = 4; + private java.lang.Object authServerPassword_ = ""; public boolean hasAuthServerPassword() { - return instance.hasAuthServerPassword(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override - public java.lang.String getAuthServerPassword() { - return instance.getAuthServerPassword(); + public String getAuthServerPassword() { + java.lang.Object ref = authServerPassword_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + authServerPassword_ = s; + return s; + } else { + return (String) ref; + } } - /** - * optional string authServerPassword = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAuthServerPasswordBytes() { - return instance.getAuthServerPasswordBytes(); - } - /** - * optional string authServerPassword = 4; - */ - public Builder setAuthServerPassword( - java.lang.String value) { - copyOnWrite(); - instance.setAuthServerPassword(value); + public Builder setAuthServerPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + authServerPassword_ = value; + return this; } - /** - * optional string authServerPassword = 4; - */ public Builder clearAuthServerPassword() { - copyOnWrite(); - instance.clearAuthServerPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + authServerPassword_ = getDefaultInstance().getAuthServerPassword(); + return this; } - /** - * optional string authServerPassword = 4; - */ - public Builder setAuthServerPasswordBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAuthServerPasswordBytes(value); - return this; + void setAuthServerPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + authServerPassword_ = value; + } - - /** - * required .InitMessage.LoginType login = 5; - */ - @java.lang.Override + + // required .InitMessage.LoginType login = 5; + private de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; public boolean hasLogin() { - return instance.hasLogin(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required .InitMessage.LoginType login = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { - return instance.getLogin(); + return login_; } - /** - * required .InitMessage.LoginType login = 5; - */ public Builder setLogin(de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value) { - copyOnWrite(); - instance.setLogin(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + login_ = value; + return this; } - /** - * required .InitMessage.LoginType login = 5; - */ public Builder clearLogin() { - copyOnWrite(); - instance.clearLogin(); + bitField0_ = (bitField0_ & ~0x00000010); + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + return this; } - - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ - @java.lang.Override + + // optional string nickName = 6; + private java.lang.Object nickName_ = ""; public boolean hasNickName() { - return instance.hasNickName(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ - @java.lang.Override - public java.lang.String getNickName() { - return instance.getNickName(); + public String getNickName() { + java.lang.Object ref = nickName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nickName_ = s; + return s; + } else { + return (String) ref; + } } - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNickNameBytes() { - return instance.getNickNameBytes(); - } - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ - public Builder setNickName( - java.lang.String value) { - copyOnWrite(); - instance.setNickName(value); + public Builder setNickName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + nickName_ = value; + return this; } - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ public Builder clearNickName() { - copyOnWrite(); - instance.clearNickName(); + bitField0_ = (bitField0_ & ~0x00000020); + nickName_ = getDefaultInstance().getNickName(); + return this; } - /** - *
-       * Only used for guest login or unauthenticated login.
-       * 
- * - * optional string nickName = 6; - */ - public Builder setNickNameBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNickNameBytes(value); - return this; + void setNickName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000020; + nickName_ = value; + } - - /** - *
-       * Authenticated login data is according to SCRAM SHA-1
-       * 
- * - * optional bytes clientUserData = 7; - */ - @java.lang.Override + + // optional bytes clientUserData = 7; + private com.google.protobuf.ByteString clientUserData_ = com.google.protobuf.ByteString.EMPTY; public boolean hasClientUserData() { - return instance.hasClientUserData(); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - *
-       * Authenticated login data is according to SCRAM SHA-1
-       * 
- * - * optional bytes clientUserData = 7; - */ - @java.lang.Override public com.google.protobuf.ByteString getClientUserData() { - return instance.getClientUserData(); + return clientUserData_; } - /** - *
-       * Authenticated login data is according to SCRAM SHA-1
-       * 
- * - * optional bytes clientUserData = 7; - */ public Builder setClientUserData(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClientUserData(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + clientUserData_ = value; + return this; } - /** - *
-       * Authenticated login data is according to SCRAM SHA-1
-       * 
- * - * optional bytes clientUserData = 7; - */ public Builder clearClientUserData() { - copyOnWrite(); - instance.clearClientUserData(); + bitField0_ = (bitField0_ & ~0x00000040); + clientUserData_ = getDefaultInstance().getClientUserData(); + return this; } - - /** - *
-       * Ignored for guest login.
-       * 
- * - * optional bytes avatarHash = 8; - */ - @java.lang.Override + + // optional bytes avatarHash = 8; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAvatarHash() { - return instance.hasAvatarHash(); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - *
-       * Ignored for guest login.
-       * 
- * - * optional bytes avatarHash = 8; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return instance.getAvatarHash(); + return avatarHash_; } - /** - *
-       * Ignored for guest login.
-       * 
- * - * optional bytes avatarHash = 8; - */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAvatarHash(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + avatarHash_ = value; + return this; } - /** - *
-       * Ignored for guest login.
-       * 
- * - * optional bytes avatarHash = 8; - */ public Builder clearAvatarHash() { - copyOnWrite(); - instance.clearAvatarHash(); + bitField0_ = (bitField0_ & ~0x00000080); + avatarHash_ = getDefaultInstance().getAvatarHash(); + return this; } - + // @@protoc_insertion_point(builder_scope:InitMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.InitMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestedVersion()) { - return null; - } - if (!hasBuildId()) { - return null; - } - if (!hasLogin()) { - return null; - } - if (!getRequestedVersion().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.InitMessage other = (de.pokerth.protocol.ProtoBuf.InitMessage) arg1; - requestedVersion_ = visitor.visitMessage(requestedVersion_, other.requestedVersion_); - buildId_ = visitor.visitInt( - hasBuildId(), buildId_, - other.hasBuildId(), other.buildId_); - myLastSessionId_ = visitor.visitByteString( - hasMyLastSessionId(), myLastSessionId_, - other.hasMyLastSessionId(), other.myLastSessionId_); - authServerPassword_ = visitor.visitString( - hasAuthServerPassword(), authServerPassword_, - other.hasAuthServerPassword(), other.authServerPassword_); - login_ = visitor.visitInt(hasLogin(), login_, - other.hasLogin(), other.login_); - nickName_ = visitor.visitString( - hasNickName(), nickName_, - other.hasNickName(), other.nickName_); - clientUserData_ = visitor.visitByteString( - hasClientUserData(), clientUserData_, - other.hasClientUserData(), other.clientUserData_); - avatarHash_ = visitor.visitByteString( - hasAvatarHash(), avatarHash_, - other.hasAvatarHash(), other.avatarHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = requestedVersion_.toBuilder(); - } - requestedVersion_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestedVersion_); - requestedVersion_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - buildId_ = input.readUInt32(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - myLastSessionId_ = input.readBytes(); - break; - } - case 34: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000008; - authServerPassword_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - login_ = rawValue; - } - break; - } - case 50: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000020; - nickName_ = s; - break; - } - case 58: { - bitField0_ |= 0x00000040; - clientUserData_ = input.readBytes(); - break; - } - case 66: { - bitField0_ |= 0x00000080; - avatarHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.InitMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InitMessage) - private static final de.pokerth.protocol.ProtoBuf.InitMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new InitMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.InitMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new InitMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:InitMessage) } - - public interface AuthServerChallengeMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AuthServerChallengeMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required bytes serverChallenge = 1; - */ + + public interface AuthServerChallengeMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required bytes serverChallenge = 1; boolean hasServerChallenge(); - /** - * required bytes serverChallenge = 1; - */ com.google.protobuf.ByteString getServerChallenge(); } - /** - * Protobuf type {@code AuthServerChallengeMessage} - */ - public static final class AuthServerChallengeMessage extends - com.google.protobuf.GeneratedMessageLite< - AuthServerChallengeMessage, AuthServerChallengeMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AuthServerChallengeMessage) - AuthServerChallengeMessageOrBuilder { - private AuthServerChallengeMessage() { - serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + public static final class AuthServerChallengeMessage extends + com.google.protobuf.GeneratedMessageLite + implements AuthServerChallengeMessageOrBuilder { + // Use AuthServerChallengeMessage.newBuilder() to construct. + private AuthServerChallengeMessage(Builder builder) { + super(builder); } + private AuthServerChallengeMessage(boolean noInit) {} + + private static final AuthServerChallengeMessage defaultInstance; + public static AuthServerChallengeMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthServerChallengeMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required bytes serverChallenge = 1; public static final int SERVERCHALLENGE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString serverChallenge_; - /** - * required bytes serverChallenge = 1; - */ - @java.lang.Override public boolean hasServerChallenge() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes serverChallenge = 1; - */ - @java.lang.Override public com.google.protobuf.ByteString getServerChallenge() { return serverChallenge_; } - /** - * required bytes serverChallenge = 1; - */ - private void setServerChallenge(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - serverChallenge_ = value; + + private void initFields() { + serverChallenge_ = com.google.protobuf.ByteString.EMPTY; } - /** - * required bytes serverChallenge = 1; - */ - private void clearServerChallenge() { - bitField0_ = (bitField0_ & ~0x00000001); - serverChallenge_ = getDefaultInstance().getServerChallenge(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasServerChallenge()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, serverChallenge_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, serverChallenge_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AuthServerChallengeMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AuthServerChallengeMessage) - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required bytes serverChallenge = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage build() { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = new de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.serverChallenge_ = serverChallenge_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance()) return this; + if (other.hasServerChallenge()) { + setServerChallenge(other.getServerChallenge()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasServerChallenge()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + serverChallenge_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes serverChallenge = 1; + private com.google.protobuf.ByteString serverChallenge_ = com.google.protobuf.ByteString.EMPTY; public boolean hasServerChallenge() { - return instance.hasServerChallenge(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes serverChallenge = 1; - */ - @java.lang.Override public com.google.protobuf.ByteString getServerChallenge() { - return instance.getServerChallenge(); + return serverChallenge_; } - /** - * required bytes serverChallenge = 1; - */ public Builder setServerChallenge(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setServerChallenge(value); - return this; - } - /** - * required bytes serverChallenge = 1; - */ - public Builder clearServerChallenge() { - copyOnWrite(); - instance.clearServerChallenge(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AuthServerChallengeMessage) - } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasServerChallenge()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage other = (de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage) arg1; - serverChallenge_ = visitor.visitByteString( - hasServerChallenge(), serverChallenge_, - other.hasServerChallenge(), other.serverChallenge_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - bitField0_ |= 0x00000001; - serverChallenge_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) - private static final de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage DEFAULT_INSTANCE; - static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AuthServerChallengeMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface AuthClientResponseMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AuthClientResponseMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required bytes clientResponse = 1; - */ - boolean hasClientResponse(); - /** - * required bytes clientResponse = 1; - */ - com.google.protobuf.ByteString getClientResponse(); - } - /** - * Protobuf type {@code AuthClientResponseMessage} - */ - public static final class AuthClientResponseMessage extends - com.google.protobuf.GeneratedMessageLite< - AuthClientResponseMessage, AuthClientResponseMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AuthClientResponseMessage) - AuthClientResponseMessageOrBuilder { - private AuthClientResponseMessage() { - clientResponse_ = com.google.protobuf.ByteString.EMPTY; - } - private int bitField0_; - public static final int CLIENTRESPONSE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString clientResponse_; - /** - * required bytes clientResponse = 1; - */ - @java.lang.Override - public boolean hasClientResponse() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required bytes clientResponse = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientResponse() { - return clientResponse_; - } - /** - * required bytes clientResponse = 1; - */ - private void setClientResponse(com.google.protobuf.ByteString value) { - if (value == null) { + if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - clientResponse_ = value; + serverChallenge_ = value; + + return this; + } + public Builder clearServerChallenge() { + bitField0_ = (bitField0_ & ~0x00000001); + serverChallenge_ = getDefaultInstance().getServerChallenge(); + + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthServerChallengeMessage) } - /** - * required bytes clientResponse = 1; - */ - private void clearClientResponse() { - bitField0_ = (bitField0_ & ~0x00000001); - clientResponse_ = getDefaultInstance().getClientResponse(); + + static { + defaultInstance = new AuthServerChallengeMessage(true); + defaultInstance.initFields(); } - - @java.lang.Override + + // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) + } + + public interface AuthClientResponseMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required bytes clientResponse = 1; + boolean hasClientResponse(); + com.google.protobuf.ByteString getClientResponse(); + } + public static final class AuthClientResponseMessage extends + com.google.protobuf.GeneratedMessageLite + implements AuthClientResponseMessageOrBuilder { + // Use AuthClientResponseMessage.newBuilder() to construct. + private AuthClientResponseMessage(Builder builder) { + super(builder); + } + private AuthClientResponseMessage(boolean noInit) {} + + private static final AuthClientResponseMessage defaultInstance; + public static AuthClientResponseMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthClientResponseMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required bytes clientResponse = 1; + public static final int CLIENTRESPONSE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString clientResponse_; + public boolean hasClientResponse() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getClientResponse() { + return clientResponse_; + } + + private void initFields() { + clientResponse_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasClientResponse()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, clientResponse_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, clientResponse_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AuthClientResponseMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AuthClientResponseMessage) - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required bytes clientResponse = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + clientResponse_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage build() { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = new de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.clientResponse_ = clientResponse_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance()) return this; + if (other.hasClientResponse()) { + setClientResponse(other.getClientResponse()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasClientResponse()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + clientResponse_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes clientResponse = 1; + private com.google.protobuf.ByteString clientResponse_ = com.google.protobuf.ByteString.EMPTY; public boolean hasClientResponse() { - return instance.hasClientResponse(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes clientResponse = 1; - */ - @java.lang.Override public com.google.protobuf.ByteString getClientResponse() { - return instance.getClientResponse(); + return clientResponse_; } - /** - * required bytes clientResponse = 1; - */ public Builder setClientResponse(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClientResponse(value); - return this; - } - /** - * required bytes clientResponse = 1; - */ - public Builder clearClientResponse() { - copyOnWrite(); - instance.clearClientResponse(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AuthClientResponseMessage) - } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasClientResponse()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage other = (de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage) arg1; - clientResponse_ = visitor.visitByteString( - hasClientResponse(), clientResponse_, - other.hasClientResponse(), other.clientResponse_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - bitField0_ |= 0x00000001; - clientResponse_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) - private static final de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage DEFAULT_INSTANCE; - static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AuthClientResponseMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface AuthServerVerificationMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AuthServerVerificationMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required bytes serverVerification = 1; - */ - boolean hasServerVerification(); - /** - * required bytes serverVerification = 1; - */ - com.google.protobuf.ByteString getServerVerification(); - } - /** - * Protobuf type {@code AuthServerVerificationMessage} - */ - public static final class AuthServerVerificationMessage extends - com.google.protobuf.GeneratedMessageLite< - AuthServerVerificationMessage, AuthServerVerificationMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AuthServerVerificationMessage) - AuthServerVerificationMessageOrBuilder { - private AuthServerVerificationMessage() { - serverVerification_ = com.google.protobuf.ByteString.EMPTY; - } - private int bitField0_; - public static final int SERVERVERIFICATION_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serverVerification_; - /** - * required bytes serverVerification = 1; - */ - @java.lang.Override - public boolean hasServerVerification() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required bytes serverVerification = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString getServerVerification() { - return serverVerification_; - } - /** - * required bytes serverVerification = 1; - */ - private void setServerVerification(com.google.protobuf.ByteString value) { - if (value == null) { + if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - serverVerification_ = value; + clientResponse_ = value; + + return this; + } + public Builder clearClientResponse() { + bitField0_ = (bitField0_ & ~0x00000001); + clientResponse_ = getDefaultInstance().getClientResponse(); + + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthClientResponseMessage) } - /** - * required bytes serverVerification = 1; - */ - private void clearServerVerification() { - bitField0_ = (bitField0_ & ~0x00000001); - serverVerification_ = getDefaultInstance().getServerVerification(); + + static { + defaultInstance = new AuthClientResponseMessage(true); + defaultInstance.initFields(); } - - @java.lang.Override + + // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) + } + + public interface AuthServerVerificationMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required bytes serverVerification = 1; + boolean hasServerVerification(); + com.google.protobuf.ByteString getServerVerification(); + } + public static final class AuthServerVerificationMessage extends + com.google.protobuf.GeneratedMessageLite + implements AuthServerVerificationMessageOrBuilder { + // Use AuthServerVerificationMessage.newBuilder() to construct. + private AuthServerVerificationMessage(Builder builder) { + super(builder); + } + private AuthServerVerificationMessage(boolean noInit) {} + + private static final AuthServerVerificationMessage defaultInstance; + public static AuthServerVerificationMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthServerVerificationMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required bytes serverVerification = 1; + public static final int SERVERVERIFICATION_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString serverVerification_; + public boolean hasServerVerification() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getServerVerification() { + return serverVerification_; + } + + private void initFields() { + serverVerification_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasServerVerification()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, serverVerification_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, serverVerification_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AuthServerVerificationMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AuthServerVerificationMessage) - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required bytes serverVerification = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + serverVerification_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage build() { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = new de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.serverVerification_ = serverVerification_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance()) return this; + if (other.hasServerVerification()) { + setServerVerification(other.getServerVerification()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasServerVerification()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + serverVerification_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes serverVerification = 1; + private com.google.protobuf.ByteString serverVerification_ = com.google.protobuf.ByteString.EMPTY; public boolean hasServerVerification() { - return instance.hasServerVerification(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes serverVerification = 1; - */ - @java.lang.Override public com.google.protobuf.ByteString getServerVerification() { - return instance.getServerVerification(); + return serverVerification_; } - /** - * required bytes serverVerification = 1; - */ public Builder setServerVerification(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setServerVerification(value); - return this; - } - /** - * required bytes serverVerification = 1; - */ - public Builder clearServerVerification() { - copyOnWrite(); - instance.clearServerVerification(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AuthServerVerificationMessage) - } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasServerVerification()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage other = (de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage) arg1; - serverVerification_ = visitor.visitByteString( - hasServerVerification(), serverVerification_, - other.hasServerVerification(), other.serverVerification_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - bitField0_ |= 0x00000001; - serverVerification_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) - private static final de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage DEFAULT_INSTANCE; - static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AuthServerVerificationMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface InitAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:InitAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required bytes yourSessionId = 1; - */ - boolean hasYourSessionId(); - /** - * required bytes yourSessionId = 1; - */ - com.google.protobuf.ByteString getYourSessionId(); - - /** - * required uint32 yourPlayerId = 2; - */ - boolean hasYourPlayerId(); - /** - * required uint32 yourPlayerId = 2; - */ - int getYourPlayerId(); - - /** - * optional bytes yourAvatarHash = 3; - */ - boolean hasYourAvatarHash(); - /** - * optional bytes yourAvatarHash = 3; - */ - com.google.protobuf.ByteString getYourAvatarHash(); - - /** - * optional uint32 rejoinGameId = 4; - */ - boolean hasRejoinGameId(); - /** - * optional uint32 rejoinGameId = 4; - */ - int getRejoinGameId(); - } - /** - * Protobuf type {@code InitAckMessage} - */ - public static final class InitAckMessage extends - com.google.protobuf.GeneratedMessageLite< - InitAckMessage, InitAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:InitAckMessage) - InitAckMessageOrBuilder { - private InitAckMessage() { - yourSessionId_ = com.google.protobuf.ByteString.EMPTY; - yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; - } - private int bitField0_; - public static final int YOURSESSIONID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString yourSessionId_; - /** - * required bytes yourSessionId = 1; - */ - @java.lang.Override - public boolean hasYourSessionId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required bytes yourSessionId = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString getYourSessionId() { - return yourSessionId_; - } - /** - * required bytes yourSessionId = 1; - */ - private void setYourSessionId(com.google.protobuf.ByteString value) { - if (value == null) { + if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - yourSessionId_ = value; + serverVerification_ = value; + + return this; + } + public Builder clearServerVerification() { + bitField0_ = (bitField0_ & ~0x00000001); + serverVerification_ = getDefaultInstance().getServerVerification(); + + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthServerVerificationMessage) } - /** - * required bytes yourSessionId = 1; - */ - private void clearYourSessionId() { - bitField0_ = (bitField0_ & ~0x00000001); - yourSessionId_ = getDefaultInstance().getYourSessionId(); + + static { + defaultInstance = new AuthServerVerificationMessage(true); + defaultInstance.initFields(); } - + + // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) + } + + public interface InitAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required bytes yourSessionId = 1; + boolean hasYourSessionId(); + com.google.protobuf.ByteString getYourSessionId(); + + // required uint32 yourPlayerId = 2; + boolean hasYourPlayerId(); + int getYourPlayerId(); + + // optional bytes yourAvatarHash = 3; + boolean hasYourAvatarHash(); + com.google.protobuf.ByteString getYourAvatarHash(); + + // optional uint32 rejoinGameId = 4; + boolean hasRejoinGameId(); + int getRejoinGameId(); + } + public static final class InitAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements InitAckMessageOrBuilder { + // Use InitAckMessage.newBuilder() to construct. + private InitAckMessage(Builder builder) { + super(builder); + } + private InitAckMessage(boolean noInit) {} + + private static final InitAckMessage defaultInstance; + public static InitAckMessage getDefaultInstance() { + return defaultInstance; + } + + public InitAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required bytes yourSessionId = 1; + public static final int YOURSESSIONID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString yourSessionId_; + public boolean hasYourSessionId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getYourSessionId() { + return yourSessionId_; + } + + // required uint32 yourPlayerId = 2; public static final int YOURPLAYERID_FIELD_NUMBER = 2; private int yourPlayerId_; - /** - * required uint32 yourPlayerId = 2; - */ - @java.lang.Override public boolean hasYourPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 yourPlayerId = 2; - */ - @java.lang.Override public int getYourPlayerId() { return yourPlayerId_; } - /** - * required uint32 yourPlayerId = 2; - */ - private void setYourPlayerId(int value) { - bitField0_ |= 0x00000002; - yourPlayerId_ = value; - } - /** - * required uint32 yourPlayerId = 2; - */ - private void clearYourPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - yourPlayerId_ = 0; - } - + + // optional bytes yourAvatarHash = 3; public static final int YOURAVATARHASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString yourAvatarHash_; - /** - * optional bytes yourAvatarHash = 3; - */ - @java.lang.Override public boolean hasYourAvatarHash() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes yourAvatarHash = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getYourAvatarHash() { return yourAvatarHash_; } - /** - * optional bytes yourAvatarHash = 3; - */ - private void setYourAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - yourAvatarHash_ = value; - } - /** - * optional bytes yourAvatarHash = 3; - */ - private void clearYourAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000004); - yourAvatarHash_ = getDefaultInstance().getYourAvatarHash(); - } - + + // optional uint32 rejoinGameId = 4; public static final int REJOINGAMEID_FIELD_NUMBER = 4; private int rejoinGameId_; - /** - * optional uint32 rejoinGameId = 4; - */ - @java.lang.Override public boolean hasRejoinGameId() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional uint32 rejoinGameId = 4; - */ - @java.lang.Override public int getRejoinGameId() { return rejoinGameId_; } - /** - * optional uint32 rejoinGameId = 4; - */ - private void setRejoinGameId(int value) { - bitField0_ |= 0x00000008; - rejoinGameId_ = value; - } - /** - * optional uint32 rejoinGameId = 4; - */ - private void clearRejoinGameId() { - bitField0_ = (bitField0_ & ~0x00000008); + + private void initFields() { + yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + yourPlayerId_ = 0; + yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; rejoinGameId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasYourSessionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, yourSessionId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, yourPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, yourAvatarHash_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, rejoinGameId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, yourSessionId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, yourPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, yourAvatarHash_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, rejoinGameId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code InitAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InitAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:InitAckMessage) - de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.InitAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required bytes yourSessionId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + yourPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + rejoinGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage build() { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InitAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = new de.pokerth.protocol.ProtoBuf.InitAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.yourSessionId_ = yourSessionId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.yourPlayerId_ = yourPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.yourAvatarHash_ = yourAvatarHash_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.rejoinGameId_ = rejoinGameId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InitAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance()) return this; + if (other.hasYourSessionId()) { + setYourSessionId(other.getYourSessionId()); + } + if (other.hasYourPlayerId()) { + setYourPlayerId(other.getYourPlayerId()); + } + if (other.hasYourAvatarHash()) { + setYourAvatarHash(other.getYourAvatarHash()); + } + if (other.hasRejoinGameId()) { + setRejoinGameId(other.getRejoinGameId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasYourSessionId()) { + + return false; + } + if (!hasYourPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + yourSessionId_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + yourPlayerId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + yourAvatarHash_ = input.readBytes(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + rejoinGameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes yourSessionId = 1; + private com.google.protobuf.ByteString yourSessionId_ = com.google.protobuf.ByteString.EMPTY; public boolean hasYourSessionId() { - return instance.hasYourSessionId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes yourSessionId = 1; - */ - @java.lang.Override public com.google.protobuf.ByteString getYourSessionId() { - return instance.getYourSessionId(); + return yourSessionId_; } - /** - * required bytes yourSessionId = 1; - */ public Builder setYourSessionId(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setYourSessionId(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + yourSessionId_ = value; + return this; } - /** - * required bytes yourSessionId = 1; - */ public Builder clearYourSessionId() { - copyOnWrite(); - instance.clearYourSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + yourSessionId_ = getDefaultInstance().getYourSessionId(); + return this; } - - /** - * required uint32 yourPlayerId = 2; - */ - @java.lang.Override + + // required uint32 yourPlayerId = 2; + private int yourPlayerId_ ; public boolean hasYourPlayerId() { - return instance.hasYourPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 yourPlayerId = 2; - */ - @java.lang.Override public int getYourPlayerId() { - return instance.getYourPlayerId(); + return yourPlayerId_; } - /** - * required uint32 yourPlayerId = 2; - */ public Builder setYourPlayerId(int value) { - copyOnWrite(); - instance.setYourPlayerId(value); + bitField0_ |= 0x00000002; + yourPlayerId_ = value; + return this; } - /** - * required uint32 yourPlayerId = 2; - */ public Builder clearYourPlayerId() { - copyOnWrite(); - instance.clearYourPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + yourPlayerId_ = 0; + return this; } - - /** - * optional bytes yourAvatarHash = 3; - */ - @java.lang.Override + + // optional bytes yourAvatarHash = 3; + private com.google.protobuf.ByteString yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; public boolean hasYourAvatarHash() { - return instance.hasYourAvatarHash(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes yourAvatarHash = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getYourAvatarHash() { - return instance.getYourAvatarHash(); + return yourAvatarHash_; } - /** - * optional bytes yourAvatarHash = 3; - */ public Builder setYourAvatarHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setYourAvatarHash(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + yourAvatarHash_ = value; + return this; } - /** - * optional bytes yourAvatarHash = 3; - */ public Builder clearYourAvatarHash() { - copyOnWrite(); - instance.clearYourAvatarHash(); + bitField0_ = (bitField0_ & ~0x00000004); + yourAvatarHash_ = getDefaultInstance().getYourAvatarHash(); + return this; } - - /** - * optional uint32 rejoinGameId = 4; - */ - @java.lang.Override + + // optional uint32 rejoinGameId = 4; + private int rejoinGameId_ ; public boolean hasRejoinGameId() { - return instance.hasRejoinGameId(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional uint32 rejoinGameId = 4; - */ - @java.lang.Override public int getRejoinGameId() { - return instance.getRejoinGameId(); + return rejoinGameId_; } - /** - * optional uint32 rejoinGameId = 4; - */ public Builder setRejoinGameId(int value) { - copyOnWrite(); - instance.setRejoinGameId(value); + bitField0_ |= 0x00000008; + rejoinGameId_ = value; + return this; } - /** - * optional uint32 rejoinGameId = 4; - */ public Builder clearRejoinGameId() { - copyOnWrite(); - instance.clearRejoinGameId(); + bitField0_ = (bitField0_ & ~0x00000008); + rejoinGameId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:InitAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.InitAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasYourSessionId()) { - return null; - } - if (!hasYourPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.InitAckMessage other = (de.pokerth.protocol.ProtoBuf.InitAckMessage) arg1; - yourSessionId_ = visitor.visitByteString( - hasYourSessionId(), yourSessionId_, - other.hasYourSessionId(), other.yourSessionId_); - yourPlayerId_ = visitor.visitInt( - hasYourPlayerId(), yourPlayerId_, - other.hasYourPlayerId(), other.yourPlayerId_); - yourAvatarHash_ = visitor.visitByteString( - hasYourAvatarHash(), yourAvatarHash_, - other.hasYourAvatarHash(), other.yourAvatarHash_); - rejoinGameId_ = visitor.visitInt( - hasRejoinGameId(), rejoinGameId_, - other.hasRejoinGameId(), other.rejoinGameId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - bitField0_ |= 0x00000001; - yourSessionId_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - yourPlayerId_ = input.readUInt32(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - yourAvatarHash_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - rejoinGameId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.InitAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InitAckMessage) - private static final de.pokerth.protocol.ProtoBuf.InitAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new InitAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.InitAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new InitAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:InitAckMessage) } - - public interface AvatarRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 requestId = 1; - */ + + public interface AvatarRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 requestId = 1; boolean hasRequestId(); - /** - * required uint32 requestId = 1; - */ int getRequestId(); - - /** - * required bytes avatarHash = 2; - */ + + // required bytes avatarHash = 2; boolean hasAvatarHash(); - /** - * required bytes avatarHash = 2; - */ com.google.protobuf.ByteString getAvatarHash(); } - /** - * Protobuf type {@code AvatarRequestMessage} - */ - public static final class AvatarRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - AvatarRequestMessage, AvatarRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AvatarRequestMessage) - AvatarRequestMessageOrBuilder { - private AvatarRequestMessage() { - avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public static final class AvatarRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements AvatarRequestMessageOrBuilder { + // Use AvatarRequestMessage.newBuilder() to construct. + private AvatarRequestMessage(Builder builder) { + super(builder); } + private AvatarRequestMessage(boolean noInit) {} + + private static final AvatarRequestMessage defaultInstance; + public static AvatarRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 requestId = 1; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { return requestId_; } - /** - * required uint32 requestId = 1; - */ - private void setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - } - /** - * required uint32 requestId = 1; - */ - private void clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - } - + + // required bytes avatarHash = 2; public static final int AVATARHASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString avatarHash_; - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - /** - * required bytes avatarHash = 2; - */ - private void setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarHash_ = value; + + private void initFields() { + requestId_ = 0; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - /** - * required bytes avatarHash = 2; - */ - private void clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarHash_ = getDefaultInstance().getAvatarHash(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, avatarHash_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarHash_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AvatarRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarRequestMessage) - de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 requestId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = new de.pokerth.protocol.ProtoBuf.AvatarRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; public boolean hasRequestId() { - return instance.hasRequestId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { - return instance.getRequestId(); + return requestId_; } - /** - * required uint32 requestId = 1; - */ public Builder setRequestId(int value) { - copyOnWrite(); - instance.setRequestId(value); + bitField0_ |= 0x00000001; + requestId_ = value; + return this; } - /** - * required uint32 requestId = 1; - */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + return this; } - - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override + + // required bytes avatarHash = 2; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAvatarHash() { - return instance.hasAvatarHash(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return instance.getAvatarHash(); + return avatarHash_; } - /** - * required bytes avatarHash = 2; - */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAvatarHash(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; + return this; } - /** - * required bytes avatarHash = 2; - */ public Builder clearAvatarHash() { - copyOnWrite(); - instance.clearAvatarHash(); + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); + return this; } - + // @@protoc_insertion_point(builder_scope:AvatarRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AvatarRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestId()) { - return null; - } - if (!hasAvatarHash()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage other = (de.pokerth.protocol.ProtoBuf.AvatarRequestMessage) arg1; - requestId_ = visitor.visitInt( - hasRequestId(), requestId_, - other.hasRequestId(), other.requestId_); - avatarHash_ = visitor.visitByteString( - hasAvatarHash(), avatarHash_, - other.hasAvatarHash(), other.avatarHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AvatarRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.AvatarRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AvatarRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AvatarRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AvatarRequestMessage) } - - public interface AvatarHeaderMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarHeaderMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 requestId = 1; - */ + + public interface AvatarHeaderMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 requestId = 1; boolean hasRequestId(); - /** - * required uint32 requestId = 1; - */ int getRequestId(); - - /** - * required .NetAvatarType avatarType = 2; - */ + + // required .NetAvatarType avatarType = 2; boolean hasAvatarType(); - /** - * required .NetAvatarType avatarType = 2; - */ de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType(); - - /** - * required uint32 avatarSize = 3; - */ + + // required uint32 avatarSize = 3; boolean hasAvatarSize(); - /** - * required uint32 avatarSize = 3; - */ int getAvatarSize(); } - /** - * Protobuf type {@code AvatarHeaderMessage} - */ - public static final class AvatarHeaderMessage extends - com.google.protobuf.GeneratedMessageLite< - AvatarHeaderMessage, AvatarHeaderMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AvatarHeaderMessage) - AvatarHeaderMessageOrBuilder { - private AvatarHeaderMessage() { - avatarType_ = 1; + public static final class AvatarHeaderMessage extends + com.google.protobuf.GeneratedMessageLite + implements AvatarHeaderMessageOrBuilder { + // Use AvatarHeaderMessage.newBuilder() to construct. + private AvatarHeaderMessage(Builder builder) { + super(builder); } + private AvatarHeaderMessage(boolean noInit) {} + + private static final AvatarHeaderMessage defaultInstance; + public static AvatarHeaderMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarHeaderMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 requestId = 1; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { return requestId_; } - /** - * required uint32 requestId = 1; - */ - private void setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - } - /** - * required uint32 requestId = 1; - */ - private void clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - } - + + // required .NetAvatarType avatarType = 2; public static final int AVATARTYPE_FIELD_NUMBER = 2; - private int avatarType_; - /** - * required .NetAvatarType avatarType = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; public boolean hasAvatarType() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetAvatarType avatarType = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - de.pokerth.protocol.ProtoBuf.NetAvatarType result = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(avatarType_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng : result; + return avatarType_; } - /** - * required .NetAvatarType avatarType = 2; - */ - private void setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarType_ = value.getNumber(); - } - /** - * required .NetAvatarType avatarType = 2; - */ - private void clearAvatarType() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarType_ = 1; - } - + + // required uint32 avatarSize = 3; public static final int AVATARSIZE_FIELD_NUMBER = 3; private int avatarSize_; - /** - * required uint32 avatarSize = 3; - */ - @java.lang.Override public boolean hasAvatarSize() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 avatarSize = 3; - */ - @java.lang.Override public int getAvatarSize() { return avatarSize_; } - /** - * required uint32 avatarSize = 3; - */ - private void setAvatarSize(int value) { - bitField0_ |= 0x00000004; - avatarSize_ = value; - } - /** - * required uint32 avatarSize = 3; - */ - private void clearAvatarSize() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + requestId_ = 0; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; avatarSize_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarSize()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, avatarType_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, avatarType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, avatarSize_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, avatarType_); + .computeEnumSize(2, avatarType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, avatarSize_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AvatarHeaderMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarHeaderMessage) - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 requestId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + bitField0_ = (bitField0_ & ~0x00000002); + avatarSize_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = new de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarType_ = avatarType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.avatarSize_ = avatarSize_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarType()) { + setAvatarType(other.getAvatarType()); + } + if (other.hasAvatarSize()) { + setAvatarSize(other.getAvatarSize()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarType()) { + + return false; + } + if (!hasAvatarSize()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + avatarType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + avatarSize_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; public boolean hasRequestId() { - return instance.hasRequestId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { - return instance.getRequestId(); + return requestId_; } - /** - * required uint32 requestId = 1; - */ public Builder setRequestId(int value) { - copyOnWrite(); - instance.setRequestId(value); + bitField0_ |= 0x00000001; + requestId_ = value; + return this; } - /** - * required uint32 requestId = 1; - */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + return this; } - - /** - * required .NetAvatarType avatarType = 2; - */ - @java.lang.Override + + // required .NetAvatarType avatarType = 2; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; public boolean hasAvatarType() { - return instance.hasAvatarType(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetAvatarType avatarType = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return instance.getAvatarType(); + return avatarType_; } - /** - * required .NetAvatarType avatarType = 2; - */ public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - copyOnWrite(); - instance.setAvatarType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarType_ = value; + return this; } - /** - * required .NetAvatarType avatarType = 2; - */ public Builder clearAvatarType() { - copyOnWrite(); - instance.clearAvatarType(); + bitField0_ = (bitField0_ & ~0x00000002); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + return this; } - - /** - * required uint32 avatarSize = 3; - */ - @java.lang.Override + + // required uint32 avatarSize = 3; + private int avatarSize_ ; public boolean hasAvatarSize() { - return instance.hasAvatarSize(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 avatarSize = 3; - */ - @java.lang.Override public int getAvatarSize() { - return instance.getAvatarSize(); + return avatarSize_; } - /** - * required uint32 avatarSize = 3; - */ public Builder setAvatarSize(int value) { - copyOnWrite(); - instance.setAvatarSize(value); + bitField0_ |= 0x00000004; + avatarSize_ = value; + return this; } - /** - * required uint32 avatarSize = 3; - */ public Builder clearAvatarSize() { - copyOnWrite(); - instance.clearAvatarSize(); + bitField0_ = (bitField0_ & ~0x00000004); + avatarSize_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AvatarHeaderMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestId()) { - return null; - } - if (!hasAvatarType()) { - return null; - } - if (!hasAvatarSize()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage other = (de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage) arg1; - requestId_ = visitor.visitInt( - hasRequestId(), requestId_, - other.hasRequestId(), other.requestId_); - avatarType_ = visitor.visitInt(hasAvatarType(), avatarType_, - other.hasAvatarType(), other.avatarType_); - avatarSize_ = visitor.visitInt( - hasAvatarSize(), avatarSize_, - other.hasAvatarSize(), other.avatarSize_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - avatarType_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - avatarSize_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) - private static final de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AvatarHeaderMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AvatarHeaderMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) } - - public interface AvatarDataMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarDataMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 requestId = 1; - */ + + public interface AvatarDataMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 requestId = 1; boolean hasRequestId(); - /** - * required uint32 requestId = 1; - */ int getRequestId(); - - /** - * required bytes avatarBlock = 2; - */ + + // required bytes avatarBlock = 2; boolean hasAvatarBlock(); - /** - * required bytes avatarBlock = 2; - */ com.google.protobuf.ByteString getAvatarBlock(); } - /** - * Protobuf type {@code AvatarDataMessage} - */ - public static final class AvatarDataMessage extends - com.google.protobuf.GeneratedMessageLite< - AvatarDataMessage, AvatarDataMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AvatarDataMessage) - AvatarDataMessageOrBuilder { - private AvatarDataMessage() { - avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + public static final class AvatarDataMessage extends + com.google.protobuf.GeneratedMessageLite + implements AvatarDataMessageOrBuilder { + // Use AvatarDataMessage.newBuilder() to construct. + private AvatarDataMessage(Builder builder) { + super(builder); } + private AvatarDataMessage(boolean noInit) {} + + private static final AvatarDataMessage defaultInstance; + public static AvatarDataMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarDataMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 requestId = 1; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { return requestId_; } - /** - * required uint32 requestId = 1; - */ - private void setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - } - /** - * required uint32 requestId = 1; - */ - private void clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - } - + + // required bytes avatarBlock = 2; public static final int AVATARBLOCK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString avatarBlock_; - /** - * required bytes avatarBlock = 2; - */ - @java.lang.Override public boolean hasAvatarBlock() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarBlock = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarBlock() { return avatarBlock_; } - /** - * required bytes avatarBlock = 2; - */ - private void setAvatarBlock(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarBlock_ = value; + + private void initFields() { + requestId_ = 0; + avatarBlock_ = com.google.protobuf.ByteString.EMPTY; } - /** - * required bytes avatarBlock = 2; - */ - private void clearAvatarBlock() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarBlock_ = getDefaultInstance().getAvatarBlock(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarBlock()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, avatarBlock_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarBlock_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarDataMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AvatarDataMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarDataMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarDataMessage) - de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 requestId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarDataMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = new de.pokerth.protocol.ProtoBuf.AvatarDataMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarBlock_ = avatarBlock_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarDataMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarBlock()) { + setAvatarBlock(other.getAvatarBlock()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarBlock()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarBlock_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; public boolean hasRequestId() { - return instance.hasRequestId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { - return instance.getRequestId(); + return requestId_; } - /** - * required uint32 requestId = 1; - */ public Builder setRequestId(int value) { - copyOnWrite(); - instance.setRequestId(value); + bitField0_ |= 0x00000001; + requestId_ = value; + return this; } - /** - * required uint32 requestId = 1; - */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + return this; } - - /** - * required bytes avatarBlock = 2; - */ - @java.lang.Override + + // required bytes avatarBlock = 2; + private com.google.protobuf.ByteString avatarBlock_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAvatarBlock() { - return instance.hasAvatarBlock(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarBlock = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarBlock() { - return instance.getAvatarBlock(); + return avatarBlock_; } - /** - * required bytes avatarBlock = 2; - */ public Builder setAvatarBlock(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAvatarBlock(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarBlock_ = value; + return this; } - /** - * required bytes avatarBlock = 2; - */ public Builder clearAvatarBlock() { - copyOnWrite(); - instance.clearAvatarBlock(); + bitField0_ = (bitField0_ & ~0x00000002); + avatarBlock_ = getDefaultInstance().getAvatarBlock(); + return this; } - + // @@protoc_insertion_point(builder_scope:AvatarDataMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AvatarDataMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestId()) { - return null; - } - if (!hasAvatarBlock()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AvatarDataMessage other = (de.pokerth.protocol.ProtoBuf.AvatarDataMessage) arg1; - requestId_ = visitor.visitInt( - hasRequestId(), requestId_, - other.hasRequestId(), other.requestId_); - avatarBlock_ = visitor.visitByteString( - hasAvatarBlock(), avatarBlock_, - other.hasAvatarBlock(), other.avatarBlock_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarBlock_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AvatarDataMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AvatarDataMessage) - private static final de.pokerth.protocol.ProtoBuf.AvatarDataMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AvatarDataMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AvatarDataMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AvatarDataMessage) } - - public interface AvatarEndMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AvatarEndMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 requestId = 1; - */ + + public interface AvatarEndMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 requestId = 1; boolean hasRequestId(); - /** - * required uint32 requestId = 1; - */ int getRequestId(); } - /** - * Protobuf type {@code AvatarEndMessage} - */ - public static final class AvatarEndMessage extends - com.google.protobuf.GeneratedMessageLite< - AvatarEndMessage, AvatarEndMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AvatarEndMessage) - AvatarEndMessageOrBuilder { - private AvatarEndMessage() { + public static final class AvatarEndMessage extends + com.google.protobuf.GeneratedMessageLite + implements AvatarEndMessageOrBuilder { + // Use AvatarEndMessage.newBuilder() to construct. + private AvatarEndMessage(Builder builder) { + super(builder); } + private AvatarEndMessage(boolean noInit) {} + + private static final AvatarEndMessage defaultInstance; + public static AvatarEndMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarEndMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 requestId = 1; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { return requestId_; } - /** - * required uint32 requestId = 1; - */ - private void setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - } - /** - * required uint32 requestId = 1; - */ - private void clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { requestId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, requestId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarEndMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AvatarEndMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarEndMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AvatarEndMessage) - de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 requestId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarEndMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = new de.pokerth.protocol.ProtoBuf.AvatarEndMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarEndMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; public boolean hasRequestId() { - return instance.hasRequestId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { - return instance.getRequestId(); + return requestId_; } - /** - * required uint32 requestId = 1; - */ public Builder setRequestId(int value) { - copyOnWrite(); - instance.setRequestId(value); + bitField0_ |= 0x00000001; + requestId_ = value; + return this; } - /** - * required uint32 requestId = 1; - */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AvatarEndMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AvatarEndMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AvatarEndMessage other = (de.pokerth.protocol.ProtoBuf.AvatarEndMessage) arg1; - requestId_ = visitor.visitInt( - hasRequestId(), requestId_, - other.hasRequestId(), other.requestId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AvatarEndMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AvatarEndMessage) - private static final de.pokerth.protocol.ProtoBuf.AvatarEndMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AvatarEndMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AvatarEndMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AvatarEndMessage) } - - public interface UnknownAvatarMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:UnknownAvatarMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 requestId = 1; - */ + + public interface UnknownAvatarMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 requestId = 1; boolean hasRequestId(); - /** - * required uint32 requestId = 1; - */ int getRequestId(); } - /** - * Protobuf type {@code UnknownAvatarMessage} - */ - public static final class UnknownAvatarMessage extends - com.google.protobuf.GeneratedMessageLite< - UnknownAvatarMessage, UnknownAvatarMessage.Builder> implements - // @@protoc_insertion_point(message_implements:UnknownAvatarMessage) - UnknownAvatarMessageOrBuilder { - private UnknownAvatarMessage() { + public static final class UnknownAvatarMessage extends + com.google.protobuf.GeneratedMessageLite + implements UnknownAvatarMessageOrBuilder { + // Use UnknownAvatarMessage.newBuilder() to construct. + private UnknownAvatarMessage(Builder builder) { + super(builder); } + private UnknownAvatarMessage(boolean noInit) {} + + private static final UnknownAvatarMessage defaultInstance; + public static UnknownAvatarMessage getDefaultInstance() { + return defaultInstance; + } + + public UnknownAvatarMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 requestId = 1; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { return requestId_; } - /** - * required uint32 requestId = 1; - */ - private void setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - } - /** - * required uint32 requestId = 1; - */ - private void clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { requestId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, requestId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code UnknownAvatarMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:UnknownAvatarMessage) - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 requestId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage build() { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = new de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; public boolean hasRequestId() { - return instance.hasRequestId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 requestId = 1; - */ - @java.lang.Override public int getRequestId() { - return instance.getRequestId(); + return requestId_; } - /** - * required uint32 requestId = 1; - */ public Builder setRequestId(int value) { - copyOnWrite(); - instance.setRequestId(value); + bitField0_ |= 0x00000001; + requestId_ = value; + return this; } - /** - * required uint32 requestId = 1; - */ public Builder clearRequestId() { - copyOnWrite(); - instance.clearRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:UnknownAvatarMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRequestId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage other = (de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage) arg1; - requestId_ = visitor.visitInt( - hasRequestId(), requestId_, - other.hasRequestId(), other.requestId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) - private static final de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new UnknownAvatarMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new UnknownAvatarMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) } - - public interface PlayerListMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerListMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 playerId = 1; - */ + + public interface PlayerListMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 playerId = 1; boolean hasPlayerId(); - /** - * required uint32 playerId = 1; - */ int getPlayerId(); - - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; boolean hasPlayerListNotification(); - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification(); } - /** - * Protobuf type {@code PlayerListMessage} - */ - public static final class PlayerListMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayerListMessage, PlayerListMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerListMessage) - PlayerListMessageOrBuilder { - private PlayerListMessage() { + public static final class PlayerListMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayerListMessageOrBuilder { + // Use PlayerListMessage.newBuilder() to construct. + private PlayerListMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code PlayerListMessage.PlayerListNotification} - */ + private PlayerListMessage(boolean noInit) {} + + private static final PlayerListMessage defaultInstance; + public static PlayerListMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerListMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum PlayerListNotification implements com.google.protobuf.Internal.EnumLite { - /** - * playerListNew = 0; - */ - playerListNew(0), - /** - * playerListLeft = 1; - */ - playerListLeft(1), + playerListNew(0, 0), + playerListLeft(1, 1), ; - - /** - * playerListNew = 0; - */ + public static final int playerListNew_VALUE = 0; - /** - * playerListLeft = 1; - */ public static final int playerListLeft_VALUE = 1; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static PlayerListNotification valueOf(int value) { - return forNumber(value); - } - - public static PlayerListNotification forNumber(int value) { switch (value) { case 0: return playerListNew; case 1: return playerListLeft; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PlayerListNotification> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public PlayerListNotification findValueByNumber(int number) { - return PlayerListNotification.forNumber(number); + return PlayerListNotification.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return PlayerListNotificationVerifier.INSTANCE; - } - - private static final class PlayerListNotificationVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new PlayerListNotificationVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return PlayerListNotification.forNumber(number) != null; - } - }; - + private final int value; - - private PlayerListNotification(int value) { + + private PlayerListNotification(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:PlayerListMessage.PlayerListNotification) } - + private int bitField0_; + // required uint32 playerId = 1; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 1; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - } - /** - * required uint32 playerId = 1; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - } - + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; public static final int PLAYERLISTNOTIFICATION_FIELD_NUMBER = 2; - private int playerListNotification_; - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_; public boolean hasPlayerListNotification() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { - de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification result = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.forNumber(playerListNotification_); - return result == null ? de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew : result; + return playerListNotification_; } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - private void setPlayerListNotification(de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + playerId_ = 0; + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - playerListNotification_ = value.getNumber(); + if (!hasPlayerListNotification()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - private void clearPlayerListNotification() { - bitField0_ = (bitField0_ & ~0x00000002); - playerListNotification_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, playerListNotification_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, playerListNotification_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, playerListNotification_); + .computeEnumSize(2, playerListNotification_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerListMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerListMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerListMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerListMessage) - de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerListMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 playerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerListMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = new de.pokerth.protocol.ProtoBuf.PlayerListMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerListNotification_ = playerListNotification_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerListMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerListNotification()) { + setPlayerListNotification(other.getPlayerListNotification()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerListNotification()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + playerListNotification_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 1; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000001; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 1; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + return this; } - - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - @java.lang.Override + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; public boolean hasPlayerListNotification() { - return instance.hasPlayerListNotification(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { - return instance.getPlayerListNotification(); + return playerListNotification_; } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ public Builder setPlayerListNotification(de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value) { - copyOnWrite(); - instance.setPlayerListNotification(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + playerListNotification_ = value; + return this; } - /** - * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - */ public Builder clearPlayerListNotification() { - copyOnWrite(); - instance.clearPlayerListNotification(); + bitField0_ = (bitField0_ & ~0x00000002); + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + return this; } - + // @@protoc_insertion_point(builder_scope:PlayerListMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerListMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerId()) { - return null; - } - if (!hasPlayerListNotification()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerListMessage other = (de.pokerth.protocol.ProtoBuf.PlayerListMessage) arg1; - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - playerListNotification_ = visitor.visitInt(hasPlayerListNotification(), playerListNotification_, - other.hasPlayerListNotification(), other.playerListNotification_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - playerListNotification_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerListMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerListMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayerListMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerListMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerListMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerListMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerListMessage) } - - public interface GameListNewMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListNewMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListNewMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .NetGameMode gameMode = 2; - */ + + // required .NetGameMode gameMode = 2; boolean hasGameMode(); - /** - * required .NetGameMode gameMode = 2; - */ de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode(); - - /** - * required bool isPrivate = 3; - */ + + // required bool isPrivate = 3; boolean hasIsPrivate(); - /** - * required bool isPrivate = 3; - */ boolean getIsPrivate(); - - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ + + // repeated uint32 playerIds = 4 [packed = true]; java.util.List getPlayerIdsList(); - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ int getPlayerIdsCount(); - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ int getPlayerIds(int index); - - /** - * required uint32 adminPlayerId = 5; - */ + + // required uint32 adminPlayerId = 5; boolean hasAdminPlayerId(); - /** - * required uint32 adminPlayerId = 5; - */ int getAdminPlayerId(); - - /** - * required .NetGameInfo gameInfo = 6; - */ + + // required .NetGameInfo gameInfo = 6; boolean hasGameInfo(); - /** - * required .NetGameInfo gameInfo = 6; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); - - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ + + // repeated uint32 spectatorIds = 7 [packed = true]; java.util.List getSpectatorIdsList(); - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ int getSpectatorIdsCount(); - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ int getSpectatorIds(int index); } - /** - * Protobuf type {@code GameListNewMessage} - */ - public static final class GameListNewMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListNewMessage, GameListNewMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListNewMessage) - GameListNewMessageOrBuilder { - private GameListNewMessage() { - gameMode_ = 1; - playerIds_ = emptyIntList(); - spectatorIds_ = emptyIntList(); + public static final class GameListNewMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListNewMessageOrBuilder { + // Use GameListNewMessage.newBuilder() to construct. + private GameListNewMessage(Builder builder) { + super(builder); } + private GameListNewMessage(boolean noInit) {} + + private static final GameListNewMessage defaultInstance; + public static GameListNewMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListNewMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .NetGameMode gameMode = 2; public static final int GAMEMODE_FIELD_NUMBER = 2; - private int gameMode_; - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - de.pokerth.protocol.ProtoBuf.NetGameMode result = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(gameMode_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated : result; + return gameMode_; } - /** - * required .NetGameMode gameMode = 2; - */ - private void setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gameMode_ = value.getNumber(); - } - /** - * required .NetGameMode gameMode = 2; - */ - private void clearGameMode() { - bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = 1; - } - + + // required bool isPrivate = 3; public static final int ISPRIVATE_FIELD_NUMBER = 3; private boolean isPrivate_; - /** - * required bool isPrivate = 3; - */ - @java.lang.Override public boolean hasIsPrivate() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool isPrivate = 3; - */ - @java.lang.Override public boolean getIsPrivate() { return isPrivate_; } - /** - * required bool isPrivate = 3; - */ - private void setIsPrivate(boolean value) { - bitField0_ |= 0x00000004; - isPrivate_ = value; - } - /** - * required bool isPrivate = 3; - */ - private void clearIsPrivate() { - bitField0_ = (bitField0_ & ~0x00000004); - isPrivate_ = false; - } - + + // repeated uint32 playerIds = 4 [packed = true]; public static final int PLAYERIDS_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.IntList playerIds_; - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override + private java.util.List playerIds_; public java.util.List getPlayerIdsList() { return playerIds_; } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override public int getPlayerIdsCount() { return playerIds_.size(); } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override public int getPlayerIds(int index) { - return playerIds_.getInt(index); + return playerIds_.get(index); } private int playerIdsMemoizedSerializedSize = -1; - private void ensurePlayerIdsIsMutable() { - if (!playerIds_.isModifiable()) { - playerIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerIds_); - } - } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - private void setPlayerIds( - int index, int value) { - ensurePlayerIdsIsMutable(); - playerIds_.setInt(index, value); - } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - private void addPlayerIds(int value) { - ensurePlayerIdsIsMutable(); - playerIds_.addInt(value); - } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - private void addAllPlayerIds( - java.lang.Iterable values) { - ensurePlayerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, playerIds_); - } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - private void clearPlayerIds() { - playerIds_ = emptyIntList(); - } - + + // required uint32 adminPlayerId = 5; public static final int ADMINPLAYERID_FIELD_NUMBER = 5; private int adminPlayerId_; - /** - * required uint32 adminPlayerId = 5; - */ - @java.lang.Override public boolean hasAdminPlayerId() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 adminPlayerId = 5; - */ - @java.lang.Override public int getAdminPlayerId() { return adminPlayerId_; } - /** - * required uint32 adminPlayerId = 5; - */ - private void setAdminPlayerId(int value) { - bitField0_ |= 0x00000008; - adminPlayerId_ = value; - } - /** - * required uint32 adminPlayerId = 5; - */ - private void clearAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000008); - adminPlayerId_ = 0; - } - + + // required .NetGameInfo gameInfo = 6; public static final int GAMEINFO_FIELD_NUMBER = 6; private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; - /** - * required .NetGameInfo gameInfo = 6; - */ - @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required .NetGameInfo gameInfo = 6; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : gameInfo_; + return gameInfo_; } - /** - * required .NetGameInfo gameInfo = 6; - */ - private void setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - bitField0_ |= 0x00000010; - } - /** - * required .NetGameInfo gameInfo = 6; - */ - private void setGameInfo( - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - bitField0_ |= 0x00000010; - } - /** - * required .NetGameInfo gameInfo = 6; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameInfo_ != null && - gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { - gameInfo_ = - de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); - } else { - gameInfo_ = value; - } - bitField0_ |= 0x00000010; - } - /** - * required .NetGameInfo gameInfo = 6; - */ - private void clearGameInfo() { gameInfo_ = null; - bitField0_ = (bitField0_ & ~0x00000010); - } - + + // repeated uint32 spectatorIds = 7 [packed = true]; public static final int SPECTATORIDS_FIELD_NUMBER = 7; - private com.google.protobuf.Internal.IntList spectatorIds_; - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override + private java.util.List spectatorIds_; public java.util.List getSpectatorIdsList() { return spectatorIds_; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override public int getSpectatorIdsCount() { return spectatorIds_.size(); } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override public int getSpectatorIds(int index) { - return spectatorIds_.getInt(index); + return spectatorIds_.get(index); } private int spectatorIdsMemoizedSerializedSize = -1; - private void ensureSpectatorIdsIsMutable() { - if (!spectatorIds_.isModifiable()) { - spectatorIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(spectatorIds_); - } + + private void initFields() { + gameId_ = 0; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + isPrivate_ = false; + playerIds_ = java.util.Collections.emptyList();; + adminPlayerId_ = 0; + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + spectatorIds_ = java.util.Collections.emptyList();; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - private void setSpectatorIds( - int index, int value) { - ensureSpectatorIdsIsMutable(); - spectatorIds_.setInt(index, value); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsPrivate()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - private void addSpectatorIds(int value) { - ensureSpectatorIdsIsMutable(); - spectatorIds_.addInt(value); - } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - private void addAllSpectatorIds( - java.lang.Iterable values) { - ensureSpectatorIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, spectatorIds_); - } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - private void clearSpectatorIds() { - spectatorIds_ = emptyIntList(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, gameMode_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameMode_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isPrivate_); } if (getPlayerIdsList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(playerIdsMemoizedSerializedSize); + output.writeRawVarint32(34); + output.writeRawVarint32(playerIdsMemoizedSerializedSize); } for (int i = 0; i < playerIds_.size(); i++) { - output.writeUInt32NoTag(playerIds_.getInt(i)); + output.writeUInt32NoTag(playerIds_.get(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(5, adminPlayerId_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(6, getGameInfo()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, gameInfo_); } if (getSpectatorIdsList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(spectatorIdsMemoizedSerializedSize); + output.writeRawVarint32(58); + output.writeRawVarint32(spectatorIdsMemoizedSerializedSize); } for (int i = 0; i < spectatorIds_.size(); i++) { - output.writeUInt32NoTag(spectatorIds_.getInt(i)); + output.writeUInt32NoTag(spectatorIds_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameMode_); + .computeEnumSize(2, gameMode_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isPrivate_); } @@ -10946,7 +8051,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < playerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerIds_.getInt(i)); + .computeUInt32SizeNoTag(playerIds_.get(i)); } size += dataSize; if (!getPlayerIdsList().isEmpty()) { @@ -10956,19 +8061,19 @@ public final class ProtoBuf { } playerIdsMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, adminPlayerId_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getGameInfo()); + .computeMessageSize(6, gameInfo_); } { int dataSize = 0; for (int i = 0; i < spectatorIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(spectatorIds_.getInt(i)); + .computeUInt32SizeNoTag(spectatorIds_.get(i)); } size += dataSize; if (!getSpectatorIdsList().isEmpty()) { @@ -10978,3282 +8083,2791 @@ public final class ProtoBuf { } spectatorIdsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListNewMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListNewMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListNewMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListNewMessage) - de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListNewMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + bitField0_ = (bitField0_ & ~0x00000002); + isPrivate_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + playerIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + adminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000020); + spectatorIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage build() { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListNewMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = new de.pokerth.protocol.ProtoBuf.GameListNewMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameMode_ = gameMode_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isPrivate_ = isPrivate_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + playerIds_ = java.util.Collections.unmodifiableList(playerIds_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.playerIds_ = playerIds_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.adminPlayerId_ = adminPlayerId_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.gameInfo_ = gameInfo_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + spectatorIds_ = java.util.Collections.unmodifiableList(spectatorIds_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.spectatorIds_ = spectatorIds_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListNewMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameMode()) { + setGameMode(other.getGameMode()); + } + if (other.hasIsPrivate()) { + setIsPrivate(other.getIsPrivate()); + } + if (!other.playerIds_.isEmpty()) { + if (playerIds_.isEmpty()) { + playerIds_ = other.playerIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePlayerIdsIsMutable(); + playerIds_.addAll(other.playerIds_); + } + + } + if (other.hasAdminPlayerId()) { + setAdminPlayerId(other.getAdminPlayerId()); + } + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + if (!other.spectatorIds_.isEmpty()) { + if (spectatorIds_.isEmpty()) { + spectatorIds_ = other.spectatorIds_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSpectatorIdsIsMutable(); + spectatorIds_.addAll(other.spectatorIds_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameMode()) { + + return false; + } + if (!hasIsPrivate()) { + + return false; + } + if (!hasAdminPlayerId()) { + + return false; + } + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + gameMode_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + isPrivate_ = input.readBool(); + break; + } + case 32: { + ensurePlayerIdsIsMutable(); + playerIds_.add(input.readUInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addPlayerIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 40: { + bitField0_ |= 0x00000010; + adminPlayerId_ = input.readUInt32(); + break; + } + case 50: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + case 56: { + ensureSpectatorIdsIsMutable(); + spectatorIds_.add(input.readUInt32()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addSpectatorIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override + + // required .NetGameMode gameMode = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; public boolean hasGameMode() { - return instance.hasGameMode(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return instance.getGameMode(); + return gameMode_; } - /** - * required .NetGameMode gameMode = 2; - */ public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - copyOnWrite(); - instance.setGameMode(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameMode_ = value; + return this; } - /** - * required .NetGameMode gameMode = 2; - */ public Builder clearGameMode() { - copyOnWrite(); - instance.clearGameMode(); + bitField0_ = (bitField0_ & ~0x00000002); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + return this; } - - /** - * required bool isPrivate = 3; - */ - @java.lang.Override + + // required bool isPrivate = 3; + private boolean isPrivate_ ; public boolean hasIsPrivate() { - return instance.hasIsPrivate(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool isPrivate = 3; - */ - @java.lang.Override public boolean getIsPrivate() { - return instance.getIsPrivate(); + return isPrivate_; } - /** - * required bool isPrivate = 3; - */ public Builder setIsPrivate(boolean value) { - copyOnWrite(); - instance.setIsPrivate(value); + bitField0_ |= 0x00000004; + isPrivate_ = value; + return this; } - /** - * required bool isPrivate = 3; - */ public Builder clearIsPrivate() { - copyOnWrite(); - instance.clearIsPrivate(); + bitField0_ = (bitField0_ & ~0x00000004); + isPrivate_ = false; + return this; } - - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override + + // repeated uint32 playerIds = 4 [packed = true]; + private java.util.List playerIds_ = java.util.Collections.emptyList();; + private void ensurePlayerIdsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + playerIds_ = new java.util.ArrayList(playerIds_); + bitField0_ |= 0x00000008; + } + } public java.util.List getPlayerIdsList() { - return java.util.Collections.unmodifiableList( - instance.getPlayerIdsList()); + return java.util.Collections.unmodifiableList(playerIds_); } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override public int getPlayerIdsCount() { - return instance.getPlayerIdsCount(); + return playerIds_.size(); } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ - @java.lang.Override public int getPlayerIds(int index) { - return instance.getPlayerIds(index); + return playerIds_.get(index); } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ public Builder setPlayerIds( int index, int value) { - copyOnWrite(); - instance.setPlayerIds(index, value); + ensurePlayerIdsIsMutable(); + playerIds_.set(index, value); + return this; } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ public Builder addPlayerIds(int value) { - copyOnWrite(); - instance.addPlayerIds(value); + ensurePlayerIdsIsMutable(); + playerIds_.add(value); + return this; } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ public Builder addAllPlayerIds( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPlayerIds(values); + ensurePlayerIdsIsMutable(); + super.addAll(values, playerIds_); + return this; } - /** - * repeated uint32 playerIds = 4 [packed = true]; - */ public Builder clearPlayerIds() { - copyOnWrite(); - instance.clearPlayerIds(); + playerIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + return this; } - - /** - * required uint32 adminPlayerId = 5; - */ - @java.lang.Override + + // required uint32 adminPlayerId = 5; + private int adminPlayerId_ ; public boolean hasAdminPlayerId() { - return instance.hasAdminPlayerId(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 adminPlayerId = 5; - */ - @java.lang.Override public int getAdminPlayerId() { - return instance.getAdminPlayerId(); + return adminPlayerId_; } - /** - * required uint32 adminPlayerId = 5; - */ public Builder setAdminPlayerId(int value) { - copyOnWrite(); - instance.setAdminPlayerId(value); + bitField0_ |= 0x00000010; + adminPlayerId_ = value; + return this; } - /** - * required uint32 adminPlayerId = 5; - */ public Builder clearAdminPlayerId() { - copyOnWrite(); - instance.clearAdminPlayerId(); + bitField0_ = (bitField0_ & ~0x00000010); + adminPlayerId_ = 0; + return this; } - - /** - * required .NetGameInfo gameInfo = 6; - */ - @java.lang.Override + + // required .NetGameInfo gameInfo = 6; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); public boolean hasGameInfo() { - return instance.hasGameInfo(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required .NetGameInfo gameInfo = 6; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return instance.getGameInfo(); + return gameInfo_; } - /** - * required .NetGameInfo gameInfo = 6; - */ public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.setGameInfo(value); - return this; + if (value == null) { + throw new NullPointerException(); } - /** - * required .NetGameInfo gameInfo = 6; - */ + gameInfo_ = value; + + bitField0_ |= 0x00000020; + return this; + } public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - copyOnWrite(); - instance.setGameInfo(builderForValue); + gameInfo_ = builderForValue.build(); + + bitField0_ |= 0x00000020; return this; } - /** - * required .NetGameInfo gameInfo = 6; - */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.mergeGameInfo(value); + if (((bitField0_ & 0x00000020) == 0x00000020) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + + bitField0_ |= 0x00000020; return this; } - /** - * required .NetGameInfo gameInfo = 6; - */ - public Builder clearGameInfo() { copyOnWrite(); - instance.clearGameInfo(); + public Builder clearGameInfo() { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000020); return this; } - - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override + + // repeated uint32 spectatorIds = 7 [packed = true]; + private java.util.List spectatorIds_ = java.util.Collections.emptyList();; + private void ensureSpectatorIdsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + spectatorIds_ = new java.util.ArrayList(spectatorIds_); + bitField0_ |= 0x00000040; + } + } public java.util.List getSpectatorIdsList() { - return java.util.Collections.unmodifiableList( - instance.getSpectatorIdsList()); + return java.util.Collections.unmodifiableList(spectatorIds_); } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override public int getSpectatorIdsCount() { - return instance.getSpectatorIdsCount(); + return spectatorIds_.size(); } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ - @java.lang.Override public int getSpectatorIds(int index) { - return instance.getSpectatorIds(index); + return spectatorIds_.get(index); } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ public Builder setSpectatorIds( int index, int value) { - copyOnWrite(); - instance.setSpectatorIds(index, value); + ensureSpectatorIdsIsMutable(); + spectatorIds_.set(index, value); + return this; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ public Builder addSpectatorIds(int value) { - copyOnWrite(); - instance.addSpectatorIds(value); + ensureSpectatorIdsIsMutable(); + spectatorIds_.add(value); + return this; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ public Builder addAllSpectatorIds( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSpectatorIds(values); + ensureSpectatorIdsIsMutable(); + super.addAll(values, spectatorIds_); + return this; } - /** - * repeated uint32 spectatorIds = 7 [packed = true]; - */ public Builder clearSpectatorIds() { - copyOnWrite(); - instance.clearSpectatorIds(); + spectatorIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000040); + return this; } - + // @@protoc_insertion_point(builder_scope:GameListNewMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListNewMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasGameMode()) { - return null; - } - if (!hasIsPrivate()) { - return null; - } - if (!hasAdminPlayerId()) { - return null; - } - if (!hasGameInfo()) { - return null; - } - if (!getGameInfo().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - playerIds_.makeImmutable(); - spectatorIds_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListNewMessage other = (de.pokerth.protocol.ProtoBuf.GameListNewMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - gameMode_ = visitor.visitInt(hasGameMode(), gameMode_, - other.hasGameMode(), other.gameMode_); - isPrivate_ = visitor.visitBoolean( - hasIsPrivate(), isPrivate_, - other.hasIsPrivate(), other.isPrivate_); - playerIds_= visitor.visitIntList(playerIds_, other.playerIds_); - adminPlayerId_ = visitor.visitInt( - hasAdminPlayerId(), adminPlayerId_, - other.hasAdminPlayerId(), other.adminPlayerId_); - gameInfo_ = visitor.visitMessage(gameInfo_, other.gameInfo_); - spectatorIds_= visitor.visitIntList(spectatorIds_, other.spectatorIds_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - gameMode_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - isPrivate_ = input.readBool(); - break; - } - case 32: { - if (!playerIds_.isModifiable()) { - playerIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerIds_); - } - playerIds_.addInt(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!playerIds_.isModifiable() && input.getBytesUntilLimit() > 0) { - playerIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerIds_); - } - while (input.getBytesUntilLimit() > 0) { - playerIds_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 40: { - bitField0_ |= 0x00000008; - adminPlayerId_ = input.readUInt32(); - break; - } - case 50: { - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = gameInfo_.toBuilder(); - } - gameInfo_ = input.readMessage(de.pokerth.protocol.ProtoBuf.NetGameInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameInfo_); - gameInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 56: { - if (!spectatorIds_.isModifiable()) { - spectatorIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(spectatorIds_); - } - spectatorIds_.addInt(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!spectatorIds_.isModifiable() && input.getBytesUntilLimit() > 0) { - spectatorIds_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(spectatorIds_); - } - while (input.getBytesUntilLimit() > 0) { - spectatorIds_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListNewMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListNewMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListNewMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListNewMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListNewMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListNewMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListNewMessage) } - - public interface GameListUpdateMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListUpdateMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListUpdateMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .NetGameMode gameMode = 2; - */ + + // required .NetGameMode gameMode = 2; boolean hasGameMode(); - /** - * required .NetGameMode gameMode = 2; - */ de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode(); } - /** - * Protobuf type {@code GameListUpdateMessage} - */ - public static final class GameListUpdateMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListUpdateMessage, GameListUpdateMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListUpdateMessage) - GameListUpdateMessageOrBuilder { - private GameListUpdateMessage() { - gameMode_ = 1; + public static final class GameListUpdateMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListUpdateMessageOrBuilder { + // Use GameListUpdateMessage.newBuilder() to construct. + private GameListUpdateMessage(Builder builder) { + super(builder); } + private GameListUpdateMessage(boolean noInit) {} + + private static final GameListUpdateMessage defaultInstance; + public static GameListUpdateMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListUpdateMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .NetGameMode gameMode = 2; public static final int GAMEMODE_FIELD_NUMBER = 2; - private int gameMode_; - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - de.pokerth.protocol.ProtoBuf.NetGameMode result = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(gameMode_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated : result; + return gameMode_; } - /** - * required .NetGameMode gameMode = 2; - */ - private void setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - gameMode_ = value.getNumber(); + if (!hasGameMode()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .NetGameMode gameMode = 2; - */ - private void clearGameMode() { - bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = 1; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, gameMode_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameMode_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameMode_); + .computeEnumSize(2, gameMode_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListUpdateMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListUpdateMessage) - de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage build() { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = new de.pokerth.protocol.ProtoBuf.GameListUpdateMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameMode_ = gameMode_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameMode()) { + setGameMode(other.getGameMode()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameMode()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + gameMode_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override + + // required .NetGameMode gameMode = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; public boolean hasGameMode() { - return instance.hasGameMode(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameMode gameMode = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return instance.getGameMode(); + return gameMode_; } - /** - * required .NetGameMode gameMode = 2; - */ public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - copyOnWrite(); - instance.setGameMode(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameMode_ = value; + return this; } - /** - * required .NetGameMode gameMode = 2; - */ public Builder clearGameMode() { - copyOnWrite(); - instance.clearGameMode(); + bitField0_ = (bitField0_ & ~0x00000002); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListUpdateMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListUpdateMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasGameMode()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage other = (de.pokerth.protocol.ProtoBuf.GameListUpdateMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - gameMode_ = visitor.visitInt(hasGameMode(), gameMode_, - other.hasGameMode(), other.gameMode_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - gameMode_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListUpdateMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListUpdateMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListUpdateMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListUpdateMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListUpdateMessage) } - - public interface GameListPlayerJoinedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListPlayerJoinedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListPlayerJoinedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code GameListPlayerJoinedMessage} - */ - public static final class GameListPlayerJoinedMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListPlayerJoinedMessage, GameListPlayerJoinedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListPlayerJoinedMessage) - GameListPlayerJoinedMessageOrBuilder { - private GameListPlayerJoinedMessage() { + public static final class GameListPlayerJoinedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListPlayerJoinedMessageOrBuilder { + // Use GameListPlayerJoinedMessage.newBuilder() to construct. + private GameListPlayerJoinedMessage(Builder builder) { + super(builder); } + private GameListPlayerJoinedMessage(boolean noInit) {} + + private static final GameListPlayerJoinedMessage defaultInstance; + public static GameListPlayerJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListPlayerJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListPlayerJoinedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListPlayerJoinedMessage) - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListPlayerJoinedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage other = (de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListPlayerJoinedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListPlayerJoinedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) } - - public interface GameListPlayerLeftMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListPlayerLeftMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListPlayerLeftMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code GameListPlayerLeftMessage} - */ - public static final class GameListPlayerLeftMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListPlayerLeftMessage, GameListPlayerLeftMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListPlayerLeftMessage) - GameListPlayerLeftMessageOrBuilder { - private GameListPlayerLeftMessage() { + public static final class GameListPlayerLeftMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListPlayerLeftMessageOrBuilder { + // Use GameListPlayerLeftMessage.newBuilder() to construct. + private GameListPlayerLeftMessage(Builder builder) { + super(builder); } + private GameListPlayerLeftMessage(boolean noInit) {} + + private static final GameListPlayerLeftMessage defaultInstance; + public static GameListPlayerLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListPlayerLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListPlayerLeftMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListPlayerLeftMessage) - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = new de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListPlayerLeftMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage other = (de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListPlayerLeftMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListPlayerLeftMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) } - - public interface GameListSpectatorJoinedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListSpectatorJoinedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListSpectatorJoinedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code GameListSpectatorJoinedMessage} - */ - public static final class GameListSpectatorJoinedMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListSpectatorJoinedMessage, GameListSpectatorJoinedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListSpectatorJoinedMessage) - GameListSpectatorJoinedMessageOrBuilder { - private GameListSpectatorJoinedMessage() { + public static final class GameListSpectatorJoinedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListSpectatorJoinedMessageOrBuilder { + // Use GameListSpectatorJoinedMessage.newBuilder() to construct. + private GameListSpectatorJoinedMessage(Builder builder) { + super(builder); } + private GameListSpectatorJoinedMessage(boolean noInit) {} + + private static final GameListSpectatorJoinedMessage defaultInstance; + public static GameListSpectatorJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListSpectatorJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListSpectatorJoinedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListSpectatorJoinedMessage) - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListSpectatorJoinedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage other = (de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListSpectatorJoinedMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListSpectatorJoinedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListSpectatorJoinedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListSpectatorJoinedMessage) } - - public interface GameListSpectatorLeftMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListSpectatorLeftMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListSpectatorLeftMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code GameListSpectatorLeftMessage} - */ - public static final class GameListSpectatorLeftMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListSpectatorLeftMessage, GameListSpectatorLeftMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListSpectatorLeftMessage) - GameListSpectatorLeftMessageOrBuilder { - private GameListSpectatorLeftMessage() { + public static final class GameListSpectatorLeftMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListSpectatorLeftMessageOrBuilder { + // Use GameListSpectatorLeftMessage.newBuilder() to construct. + private GameListSpectatorLeftMessage(Builder builder) { + super(builder); } + private GameListSpectatorLeftMessage(boolean noInit) {} + + private static final GameListSpectatorLeftMessage defaultInstance; + public static GameListSpectatorLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListSpectatorLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListSpectatorLeftMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListSpectatorLeftMessage) - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage result = new de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListSpectatorLeftMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage other = (de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListSpectatorLeftMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListSpectatorLeftMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListSpectatorLeftMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListSpectatorLeftMessage) } - - public interface GameListAdminChangedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameListAdminChangedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameListAdminChangedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 newAdminPlayerId = 2; - */ + + // required uint32 newAdminPlayerId = 2; boolean hasNewAdminPlayerId(); - /** - * required uint32 newAdminPlayerId = 2; - */ int getNewAdminPlayerId(); } - /** - * Protobuf type {@code GameListAdminChangedMessage} - */ - public static final class GameListAdminChangedMessage extends - com.google.protobuf.GeneratedMessageLite< - GameListAdminChangedMessage, GameListAdminChangedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameListAdminChangedMessage) - GameListAdminChangedMessageOrBuilder { - private GameListAdminChangedMessage() { + public static final class GameListAdminChangedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameListAdminChangedMessageOrBuilder { + // Use GameListAdminChangedMessage.newBuilder() to construct. + private GameListAdminChangedMessage(Builder builder) { + super(builder); } + private GameListAdminChangedMessage(boolean noInit) {} + + private static final GameListAdminChangedMessage defaultInstance; + public static GameListAdminChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListAdminChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 newAdminPlayerId = 2; public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; private int newAdminPlayerId_; - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public int getNewAdminPlayerId() { return newAdminPlayerId_; } - /** - * required uint32 newAdminPlayerId = 2; - */ - private void setNewAdminPlayerId(int value) { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = value; - } - /** - * required uint32 newAdminPlayerId = 2; - */ - private void clearNewAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; newAdminPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, newAdminPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newAdminPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameListAdminChangedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameListAdminChangedMessage) - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newAdminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage build() { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = new de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newAdminPlayerId_ = newAdminPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasNewAdminPlayerId()) { + setNewAdminPlayerId(other.getNewAdminPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasNewAdminPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override + + // required uint32 newAdminPlayerId = 2; + private int newAdminPlayerId_ ; public boolean hasNewAdminPlayerId() { - return instance.hasNewAdminPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public int getNewAdminPlayerId() { - return instance.getNewAdminPlayerId(); + return newAdminPlayerId_; } - /** - * required uint32 newAdminPlayerId = 2; - */ public Builder setNewAdminPlayerId(int value) { - copyOnWrite(); - instance.setNewAdminPlayerId(value); + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + return this; } - /** - * required uint32 newAdminPlayerId = 2; - */ public Builder clearNewAdminPlayerId() { - copyOnWrite(); - instance.clearNewAdminPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + newAdminPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameListAdminChangedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasNewAdminPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage other = (de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - newAdminPlayerId_ = visitor.visitInt( - hasNewAdminPlayerId(), newAdminPlayerId_, - other.hasNewAdminPlayerId(), other.newAdminPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) - private static final de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameListAdminChangedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameListAdminChangedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) } - - public interface PlayerInfoRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerInfoRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated uint32 playerId = 1 [packed = true]; - */ + + public interface PlayerInfoRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // repeated uint32 playerId = 1 [packed = true]; java.util.List getPlayerIdList(); - /** - * repeated uint32 playerId = 1 [packed = true]; - */ int getPlayerIdCount(); - /** - * repeated uint32 playerId = 1 [packed = true]; - */ int getPlayerId(int index); } - /** - * Protobuf type {@code PlayerInfoRequestMessage} - */ - public static final class PlayerInfoRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayerInfoRequestMessage, PlayerInfoRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerInfoRequestMessage) - PlayerInfoRequestMessageOrBuilder { - private PlayerInfoRequestMessage() { - playerId_ = emptyIntList(); + public static final class PlayerInfoRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayerInfoRequestMessageOrBuilder { + // Use PlayerInfoRequestMessage.newBuilder() to construct. + private PlayerInfoRequestMessage(Builder builder) { + super(builder); } + private PlayerInfoRequestMessage(boolean noInit) {} + + private static final PlayerInfoRequestMessage defaultInstance; + public static PlayerInfoRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + // repeated uint32 playerId = 1 [packed = true]; public static final int PLAYERID_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList playerId_; - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override + private java.util.List playerId_; public java.util.List getPlayerIdList() { return playerId_; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override public int getPlayerIdCount() { return playerId_.size(); } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override public int getPlayerId(int index) { - return playerId_.getInt(index); + return playerId_.get(index); } private int playerIdMemoizedSerializedSize = -1; - private void ensurePlayerIdIsMutable() { - if (!playerId_.isModifiable()) { - playerId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerId_); - } + + private void initFields() { + playerId_ = java.util.Collections.emptyList();; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - private void setPlayerId( - int index, int value) { - ensurePlayerIdIsMutable(); - playerId_.setInt(index, value); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - private void addPlayerId(int value) { - ensurePlayerIdIsMutable(); - playerId_.addInt(value); - } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - private void addAllPlayerId( - java.lang.Iterable values) { - ensurePlayerIdIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, playerId_); - } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - private void clearPlayerId() { - playerId_ = emptyIntList(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPlayerIdList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(playerIdMemoizedSerializedSize); + output.writeRawVarint32(10); + output.writeRawVarint32(playerIdMemoizedSerializedSize); } for (int i = 0; i < playerId_.size(); i++) { - output.writeUInt32NoTag(playerId_.getInt(i)); + output.writeUInt32NoTag(playerId_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; { int dataSize = 0; for (int i = 0; i < playerId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerId_.getInt(i)); + .computeUInt32SizeNoTag(playerId_.get(i)); } size += dataSize; if (!getPlayerIdList().isEmpty()) { @@ -14263,4946 +10877,3904 @@ public final class ProtoBuf { } playerIdMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerInfoRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerInfoRequestMessage) - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = new de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + playerId_ = java.util.Collections.unmodifiableList(playerId_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.playerId_ = playerId_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance()) return this; + if (!other.playerId_.isEmpty()) { + if (playerId_.isEmpty()) { + playerId_ = other.playerId_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePlayerIdIsMutable(); + playerId_.addAll(other.playerId_); + } + + } + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + ensurePlayerIdIsMutable(); + playerId_.add(input.readUInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addPlayerId(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } + + private int bitField0_; + + // repeated uint32 playerId = 1 [packed = true]; + private java.util.List playerId_ = java.util.Collections.emptyList();; + private void ensurePlayerIdIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + playerId_ = new java.util.ArrayList(playerId_); + bitField0_ |= 0x00000001; + } } - - - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override public java.util.List getPlayerIdList() { - return java.util.Collections.unmodifiableList( - instance.getPlayerIdList()); + return java.util.Collections.unmodifiableList(playerId_); } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override public int getPlayerIdCount() { - return instance.getPlayerIdCount(); + return playerId_.size(); } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ - @java.lang.Override public int getPlayerId(int index) { - return instance.getPlayerId(index); + return playerId_.get(index); } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ public Builder setPlayerId( int index, int value) { - copyOnWrite(); - instance.setPlayerId(index, value); + ensurePlayerIdIsMutable(); + playerId_.set(index, value); + return this; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ public Builder addPlayerId(int value) { - copyOnWrite(); - instance.addPlayerId(value); + ensurePlayerIdIsMutable(); + playerId_.add(value); + return this; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ public Builder addAllPlayerId( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPlayerId(values); + ensurePlayerIdIsMutable(); + super.addAll(values, playerId_); + return this; } - /** - * repeated uint32 playerId = 1 [packed = true]; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + playerId_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000001); + return this; } - + // @@protoc_insertion_point(builder_scope:PlayerInfoRequestMessage) } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - playerId_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage other = (de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage) arg1; - playerId_= visitor.visitIntList(playerId_, other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - if (!playerId_.isModifiable()) { - playerId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerId_); - } - playerId_.addInt(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!playerId_.isModifiable() && input.getBytesUntilLimit() > 0) { - playerId_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerId_); - } - while (input.getBytesUntilLimit() > 0) { - playerId_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerInfoRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerInfoRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) } - - public interface PlayerInfoReplyMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerInfoReplyMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 playerId = 1; - */ + + public interface PlayerInfoReplyMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 playerId = 1; boolean hasPlayerId(); - /** - * required uint32 playerId = 1; - */ int getPlayerId(); - - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; boolean hasPlayerInfoData(); - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData(); } - /** - * Protobuf type {@code PlayerInfoReplyMessage} - */ - public static final class PlayerInfoReplyMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayerInfoReplyMessage, PlayerInfoReplyMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage) - PlayerInfoReplyMessageOrBuilder { - private PlayerInfoReplyMessage() { + public static final class PlayerInfoReplyMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayerInfoReplyMessageOrBuilder { + // Use PlayerInfoReplyMessage.newBuilder() to construct. + private PlayerInfoReplyMessage(Builder builder) { + super(builder); } - public interface PlayerInfoDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerInfoReplyMessage.PlayerInfoData) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required string playerName = 1; - */ + private PlayerInfoReplyMessage(boolean noInit) {} + + private static final PlayerInfoReplyMessage defaultInstance; + public static PlayerInfoReplyMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoReplyMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public interface PlayerInfoDataOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required string playerName = 1; boolean hasPlayerName(); - /** - * required string playerName = 1; - */ - java.lang.String getPlayerName(); - /** - * required string playerName = 1; - */ - com.google.protobuf.ByteString - getPlayerNameBytes(); - - /** - * required bool isHuman = 2; - */ + String getPlayerName(); + + // required bool isHuman = 2; boolean hasIsHuman(); - /** - * required bool isHuman = 2; - */ boolean getIsHuman(); - - /** - * required .NetPlayerInfoRights playerRights = 3; - */ + + // required .NetPlayerInfoRights playerRights = 3; boolean hasPlayerRights(); - /** - * required .NetPlayerInfoRights playerRights = 3; - */ de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights(); - - /** - * optional string countryCode = 4; - */ + + // optional string countryCode = 4; boolean hasCountryCode(); - /** - * optional string countryCode = 4; - */ - java.lang.String getCountryCode(); - /** - * optional string countryCode = 4; - */ - com.google.protobuf.ByteString - getCountryCodeBytes(); - - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ + String getCountryCode(); + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; boolean hasAvatarData(); - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData(); } - /** - * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData} - */ - public static final class PlayerInfoData extends - com.google.protobuf.GeneratedMessageLite< - PlayerInfoData, PlayerInfoData.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage.PlayerInfoData) - PlayerInfoDataOrBuilder { - private PlayerInfoData() { - playerName_ = ""; - playerRights_ = 1; - countryCode_ = ""; + public static final class PlayerInfoData extends + com.google.protobuf.GeneratedMessageLite + implements PlayerInfoDataOrBuilder { + // Use PlayerInfoData.newBuilder() to construct. + private PlayerInfoData(Builder builder) { + super(builder); } - public interface AvatarDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .NetAvatarType avatarType = 1; - */ + private PlayerInfoData(boolean noInit) {} + + private static final PlayerInfoData defaultInstance; + public static PlayerInfoData getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoData getDefaultInstanceForType() { + return defaultInstance; + } + + public interface AvatarDataOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .NetAvatarType avatarType = 1; boolean hasAvatarType(); - /** - * required .NetAvatarType avatarType = 1; - */ de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType(); - - /** - * required bytes avatarHash = 2; - */ + + // required bytes avatarHash = 2; boolean hasAvatarHash(); - /** - * required bytes avatarHash = 2; - */ com.google.protobuf.ByteString getAvatarHash(); } - /** - * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData.AvatarData} - */ - public static final class AvatarData extends - com.google.protobuf.GeneratedMessageLite< - AvatarData, AvatarData.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - AvatarDataOrBuilder { - private AvatarData() { - avatarType_ = 1; - avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public static final class AvatarData extends + com.google.protobuf.GeneratedMessageLite + implements AvatarDataOrBuilder { + // Use AvatarData.newBuilder() to construct. + private AvatarData(Builder builder) { + super(builder); } + private AvatarData(boolean noInit) {} + + private static final AvatarData defaultInstance; + public static AvatarData getDefaultInstance() { + return defaultInstance; + } + + public AvatarData getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required .NetAvatarType avatarType = 1; public static final int AVATARTYPE_FIELD_NUMBER = 1; - private int avatarType_; - /** - * required .NetAvatarType avatarType = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; public boolean hasAvatarType() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .NetAvatarType avatarType = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - de.pokerth.protocol.ProtoBuf.NetAvatarType result = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(avatarType_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng : result; + return avatarType_; } - /** - * required .NetAvatarType avatarType = 1; - */ - private void setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - avatarType_ = value.getNumber(); - } - /** - * required .NetAvatarType avatarType = 1; - */ - private void clearAvatarType() { - bitField0_ = (bitField0_ & ~0x00000001); - avatarType_ = 1; - } - + + // required bytes avatarHash = 2; public static final int AVATARHASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString avatarHash_; - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - /** - * required bytes avatarHash = 2; - */ - private void setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarHash_ = value; + + private void initFields() { + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - /** - * required bytes avatarHash = 2; - */ - private void clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarHash_ = getDefaultInstance().getAvatarHash(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasAvatarType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, avatarType_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, avatarType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, avatarHash_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, avatarType_); + .computeEnumSize(1, avatarType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarHash_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData.AvatarData} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .NetAvatarType avatarType = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + bitField0_ = (bitField0_ & ~0x00000001); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.avatarType_ = avatarType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance()) return this; + if (other.hasAvatarType()) { + setAvatarType(other.getAvatarType()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasAvatarType()) { + + return false; + } + if (!hasAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + avatarType_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required .NetAvatarType avatarType = 1; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; public boolean hasAvatarType() { - return instance.hasAvatarType(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .NetAvatarType avatarType = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return instance.getAvatarType(); + return avatarType_; } - /** - * required .NetAvatarType avatarType = 1; - */ public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - copyOnWrite(); - instance.setAvatarType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + avatarType_ = value; + return this; } - /** - * required .NetAvatarType avatarType = 1; - */ public Builder clearAvatarType() { - copyOnWrite(); - instance.clearAvatarType(); + bitField0_ = (bitField0_ & ~0x00000001); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + return this; } - - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override + + // required bytes avatarHash = 2; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; public boolean hasAvatarHash() { - return instance.hasAvatarHash(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes avatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return instance.getAvatarHash(); + return avatarHash_; } - /** - * required bytes avatarHash = 2; - */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setAvatarHash(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; + return this; } - /** - * required bytes avatarHash = 2; - */ public Builder clearAvatarHash() { - copyOnWrite(); - instance.clearAvatarHash(); + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); + return this; } - + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasAvatarType()) { - return null; - } - if (!hasAvatarHash()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData other = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData) arg1; - avatarType_ = visitor.visitInt(hasAvatarType(), avatarType_, - other.hasAvatarType(), other.avatarType_); - avatarHash_ = visitor.visitByteString( - hasAvatarHash(), avatarHash_, - other.hasAvatarHash(), other.avatarHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - avatarType_ = rawValue; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - private static final de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AvatarData(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AvatarData(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) } - + private int bitField0_; + // required string playerName = 1; public static final int PLAYERNAME_FIELD_NUMBER = 1; - private java.lang.String playerName_; - /** - * required string playerName = 1; - */ - @java.lang.Override + private java.lang.Object playerName_; public boolean hasPlayerName() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string playerName = 1; - */ - @java.lang.Override - public java.lang.String getPlayerName() { - return playerName_; + public String getPlayerName() { + java.lang.Object ref = playerName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + playerName_ = s; + } + return s; + } } - /** - * required string playerName = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlayerNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(playerName_); + private com.google.protobuf.ByteString getPlayerNameBytes() { + java.lang.Object ref = playerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + playerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * required string playerName = 1; - */ - private void setPlayerName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - playerName_ = value; - } - /** - * required string playerName = 1; - */ - private void clearPlayerName() { - bitField0_ = (bitField0_ & ~0x00000001); - playerName_ = getDefaultInstance().getPlayerName(); - } - /** - * required string playerName = 1; - */ - private void setPlayerNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - playerName_ = value.toStringUtf8(); - } - + + // required bool isHuman = 2; public static final int ISHUMAN_FIELD_NUMBER = 2; private boolean isHuman_; - /** - * required bool isHuman = 2; - */ - @java.lang.Override public boolean hasIsHuman() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bool isHuman = 2; - */ - @java.lang.Override public boolean getIsHuman() { return isHuman_; } - /** - * required bool isHuman = 2; - */ - private void setIsHuman(boolean value) { - bitField0_ |= 0x00000002; - isHuman_ = value; - } - /** - * required bool isHuman = 2; - */ - private void clearIsHuman() { - bitField0_ = (bitField0_ & ~0x00000002); - isHuman_ = false; - } - + + // required .NetPlayerInfoRights playerRights = 3; public static final int PLAYERRIGHTS_FIELD_NUMBER = 3; - private int playerRights_; - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_; public boolean hasPlayerRights() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { - de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights result = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.forNumber(playerRights_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest : result; + return playerRights_; } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - private void setPlayerRights(de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - playerRights_ = value.getNumber(); - } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - private void clearPlayerRights() { - bitField0_ = (bitField0_ & ~0x00000004); - playerRights_ = 1; - } - + + // optional string countryCode = 4; public static final int COUNTRYCODE_FIELD_NUMBER = 4; - private java.lang.String countryCode_; - /** - * optional string countryCode = 4; - */ - @java.lang.Override + private java.lang.Object countryCode_; public boolean hasCountryCode() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional string countryCode = 4; - */ - @java.lang.Override - public java.lang.String getCountryCode() { - return countryCode_; + public String getCountryCode() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + countryCode_ = s; + } + return s; + } } - /** - * optional string countryCode = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(countryCode_); + private com.google.protobuf.ByteString getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string countryCode = 4; - */ - private void setCountryCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - countryCode_ = value; - } - /** - * optional string countryCode = 4; - */ - private void clearCountryCode() { - bitField0_ = (bitField0_ & ~0x00000008); - countryCode_ = getDefaultInstance().getCountryCode(); - } - /** - * optional string countryCode = 4; - */ - private void setCountryCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - countryCode_ = value.toStringUtf8(); - } - + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; public static final int AVATARDATA_FIELD_NUMBER = 5; private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData_; - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - @java.lang.Override public boolean hasAvatarData() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { - return avatarData_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance() : avatarData_; + return avatarData_; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - private void setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { - if (value == null) { - throw new NullPointerException(); - } - avatarData_ = value; - bitField0_ |= 0x00000010; - } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - private void setAvatarData( - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder builderForValue) { - avatarData_ = builderForValue.build(); - bitField0_ |= 0x00000010; + + private void initFields() { + playerName_ = ""; + isHuman_ = false; + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; + countryCode_ = ""; + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerName()) { + memoizedIsInitialized = 0; + return false; } - if (avatarData_ != null && - avatarData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance()) { - avatarData_ = - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder(avatarData_).mergeFrom(value).buildPartial(); - } else { - avatarData_ = value; + if (!hasIsHuman()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000010; + if (!hasPlayerRights()) { + memoizedIsInitialized = 0; + return false; + } + if (hasAvatarData()) { + if (!getAvatarData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - private void clearAvatarData() { avatarData_ = null; - bitField0_ = (bitField0_ & ~0x00000010); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeString(1, getPlayerName()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPlayerNameBytes()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, isHuman_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, playerRights_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, playerRights_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeString(4, getCountryCode()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getCountryCodeBytes()); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(5, getAvatarData()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, avatarData_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getPlayerName()); + .computeBytesSize(1, getPlayerNameBytes()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isHuman_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, playerRights_); + .computeEnumSize(3, playerRights_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getCountryCode()); + .computeBytesSize(4, getCountryCodeBytes()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAvatarData()); + .computeMessageSize(5, avatarData_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage.PlayerInfoData) - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required string playerName = 1; - */ - @java.lang.Override - public boolean hasPlayerName() { - return instance.hasPlayerName(); + + private void maybeForceBuilderInitialization() { } - /** - * required string playerName = 1; - */ - @java.lang.Override - public java.lang.String getPlayerName() { - return instance.getPlayerName(); + private static Builder create() { + return new Builder(); } - /** - * required string playerName = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlayerNameBytes() { - return instance.getPlayerNameBytes(); - } - /** - * required string playerName = 1; - */ - public Builder setPlayerName( - java.lang.String value) { - copyOnWrite(); - instance.setPlayerName(value); + + public Builder clear() { + super.clear(); + playerName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + isHuman_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; + bitField0_ = (bitField0_ & ~0x00000004); + countryCode_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); return this; } - /** - * required string playerName = 1; - */ - public Builder clearPlayerName() { - copyOnWrite(); - instance.clearPlayerName(); - return this; + + public Builder clone() { + return create().mergeFrom(buildPartial()); } - /** - * required string playerName = 1; - */ - public Builder setPlayerNameBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPlayerNameBytes(value); - return this; + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); } - - /** - * required bool isHuman = 2; - */ - @java.lang.Override - public boolean hasIsHuman() { - return instance.hasIsHuman(); - } - /** - * required bool isHuman = 2; - */ - @java.lang.Override - public boolean getIsHuman() { - return instance.getIsHuman(); - } - /** - * required bool isHuman = 2; - */ - public Builder setIsHuman(boolean value) { - copyOnWrite(); - instance.setIsHuman(value); - return this; - } - /** - * required bool isHuman = 2; - */ - public Builder clearIsHuman() { - copyOnWrite(); - instance.clearIsHuman(); - return this; - } - - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - @java.lang.Override - public boolean hasPlayerRights() { - return instance.hasPlayerRights(); - } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { - return instance.getPlayerRights(); - } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value) { - copyOnWrite(); - instance.setPlayerRights(value); - return this; - } - /** - * required .NetPlayerInfoRights playerRights = 3; - */ - public Builder clearPlayerRights() { - copyOnWrite(); - instance.clearPlayerRights(); - return this; - } - - /** - * optional string countryCode = 4; - */ - @java.lang.Override - public boolean hasCountryCode() { - return instance.hasCountryCode(); - } - /** - * optional string countryCode = 4; - */ - @java.lang.Override - public java.lang.String getCountryCode() { - return instance.getCountryCode(); - } - /** - * optional string countryCode = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountryCodeBytes() { - return instance.getCountryCodeBytes(); - } - /** - * optional string countryCode = 4; - */ - public Builder setCountryCode( - java.lang.String value) { - copyOnWrite(); - instance.setCountryCode(value); - return this; - } - /** - * optional string countryCode = 4; - */ - public Builder clearCountryCode() { - copyOnWrite(); - instance.clearCountryCode(); - return this; - } - /** - * optional string countryCode = 4; - */ - public Builder setCountryCodeBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setCountryCodeBytes(value); - return this; - } - - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - @java.lang.Override - public boolean hasAvatarData() { - return instance.hasAvatarData(); - } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { - return instance.getAvatarData(); - } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - public Builder setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { - copyOnWrite(); - instance.setAvatarData(value); - return this; + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerName_ = playerName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.isHuman_ = isHuman_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerRights_ = playerRights_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.countryCode_ = countryCode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.avatarData_ = avatarData_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance()) return this; + if (other.hasPlayerName()) { + setPlayerName(other.getPlayerName()); + } + if (other.hasIsHuman()) { + setIsHuman(other.getIsHuman()); + } + if (other.hasPlayerRights()) { + setPlayerRights(other.getPlayerRights()); + } + if (other.hasCountryCode()) { + setCountryCode(other.getCountryCode()); + } + if (other.hasAvatarData()) { + mergeAvatarData(other.getAvatarData()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerName()) { + + return false; + } + if (!hasIsHuman()) { + + return false; + } + if (!hasPlayerRights()) { + + return false; + } + if (hasAvatarData()) { + if (!getAvatarData().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + playerName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + isHuman_ = input.readBool(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + playerRights_ = value; + } + break; + } + case 34: { + bitField0_ |= 0x00000008; + countryCode_ = input.readBytes(); + break; + } + case 42: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder(); + if (hasAvatarData()) { + subBuilder.mergeFrom(getAvatarData()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required string playerName = 1; + private java.lang.Object playerName_ = ""; + public boolean hasPlayerName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getPlayerName() { + java.lang.Object ref = playerName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + playerName_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setPlayerName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + playerName_ = value; + + return this; + } + public Builder clearPlayerName() { + bitField0_ = (bitField0_ & ~0x00000001); + playerName_ = getDefaultInstance().getPlayerName(); + + return this; + } + void setPlayerName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + playerName_ = value; + + } + + // required bool isHuman = 2; + private boolean isHuman_ ; + public boolean hasIsHuman() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getIsHuman() { + return isHuman_; + } + public Builder setIsHuman(boolean value) { + bitField0_ |= 0x00000002; + isHuman_ = value; + + return this; + } + public Builder clearIsHuman() { + bitField0_ = (bitField0_ & ~0x00000002); + isHuman_ = false; + + return this; + } + + // required .NetPlayerInfoRights playerRights = 3; + private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; + public boolean hasPlayerRights() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { + return playerRights_; + } + public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + playerRights_ = value; + + return this; + } + public Builder clearPlayerRights() { + bitField0_ = (bitField0_ & ~0x00000004); + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; + + return this; + } + + // optional string countryCode = 4; + private java.lang.Object countryCode_ = ""; + public boolean hasCountryCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getCountryCode() { + java.lang.Object ref = countryCode_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setCountryCode(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + countryCode_ = value; + + return this; + } + public Builder clearCountryCode() { + bitField0_ = (bitField0_ & ~0x00000008); + countryCode_ = getDefaultInstance().getCountryCode(); + + return this; + } + void setCountryCode(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + countryCode_ = value; + + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + public boolean hasAvatarData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { + return avatarData_; + } + public Builder setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { + if (value == null) { + throw new NullPointerException(); + } + avatarData_ = value; + + bitField0_ |= 0x00000010; + return this; + } public Builder setAvatarData( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder builderForValue) { - copyOnWrite(); - instance.setAvatarData(builderForValue); + avatarData_ = builderForValue.build(); + + bitField0_ |= 0x00000010; return this; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ public Builder mergeAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { - copyOnWrite(); - instance.mergeAvatarData(value); + if (((bitField0_ & 0x00000010) == 0x00000010) && + avatarData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance()) { + avatarData_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder(avatarData_).mergeFrom(value).buildPartial(); + } else { + avatarData_ = value; + } + + bitField0_ |= 0x00000010; return this; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - */ - public Builder clearAvatarData() { copyOnWrite(); - instance.clearAvatarData(); + public Builder clearAvatarData() { + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); return this; } - + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage.PlayerInfoData) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerName()) { - return null; - } - if (!hasIsHuman()) { - return null; - } - if (!hasPlayerRights()) { - return null; - } - if (hasAvatarData()) { - if (!getAvatarData().isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData other = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData) arg1; - playerName_ = visitor.visitString( - hasPlayerName(), playerName_, - other.hasPlayerName(), other.playerName_); - isHuman_ = visitor.visitBoolean( - hasIsHuman(), isHuman_, - other.hasIsHuman(), other.isHuman_); - playerRights_ = visitor.visitInt(hasPlayerRights(), playerRights_, - other.hasPlayerRights(), other.playerRights_); - countryCode_ = visitor.visitString( - hasCountryCode(), countryCode_, - other.hasCountryCode(), other.countryCode_); - avatarData_ = visitor.visitMessage(avatarData_, other.avatarData_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000001; - playerName_ = s; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isHuman_ = input.readBool(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - playerRights_ = rawValue; - } - break; - } - case 34: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000008; - countryCode_ = s; - break; - } - case 42: { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = avatarData_.toBuilder(); - } - avatarData_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarData_); - avatarData_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) - private static final de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerInfoData(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerInfoData(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) } - + private int bitField0_; + // required uint32 playerId = 1; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 1; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - } - /** - * required uint32 playerId = 1; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - } - + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; public static final int PLAYERINFODATA_FIELD_NUMBER = 2; private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData playerInfoData_; - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - @java.lang.Override public boolean hasPlayerInfoData() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { - return playerInfoData_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance() : playerInfoData_; + return playerInfoData_; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - private void setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoData_ = value; - bitField0_ |= 0x00000002; - } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - private void setPlayerInfoData( - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder builderForValue) { - playerInfoData_ = builderForValue.build(); - bitField0_ |= 0x00000002; + + private void initFields() { + playerId_ = 0; + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; } - if (playerInfoData_ != null && - playerInfoData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance()) { - playerInfoData_ = - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder(playerInfoData_).mergeFrom(value).buildPartial(); - } else { - playerInfoData_ = value; + if (hasPlayerInfoData()) { + if (!getPlayerInfoData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - bitField0_ |= 0x00000002; + memoizedIsInitialized = 1; + return true; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - private void clearPlayerInfoData() { playerInfoData_ = null; - bitField0_ = (bitField0_ & ~0x00000002); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getPlayerInfoData()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, playerInfoData_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPlayerInfoData()); + .computeMessageSize(2, playerInfoData_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerInfoReplyMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage) - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 playerId = 1; - */ - @java.lang.Override - public boolean hasPlayerId() { - return instance.hasPlayerId(); + + private void maybeForceBuilderInitialization() { } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override - public int getPlayerId() { - return instance.getPlayerId(); + private static Builder create() { + return new Builder(); } - /** - * required uint32 playerId = 1; - */ - public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); return this; } - /** - * required uint32 playerId = 1; - */ - public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); - return this; + + public Builder clone() { + return create().mergeFrom(buildPartial()); } - - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - @java.lang.Override - public boolean hasPlayerInfoData() { - return instance.hasPlayerInfoData(); + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { - return instance.getPlayerInfoData(); - } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - public Builder setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { - copyOnWrite(); - instance.setPlayerInfoData(value); - return this; + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerInfoData_ = playerInfoData_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerInfoData()) { + mergePlayerInfoData(other.getPlayerInfoData()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (hasPlayerInfoData()) { + if (!getPlayerInfoData().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder(); + if (hasPlayerInfoData()) { + subBuilder.mergeFrom(getPlayerInfoData()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + + return this; + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + public boolean hasPlayerInfoData() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { + return playerInfoData_; + } + public Builder setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoData_ = value; + + bitField0_ |= 0x00000002; + return this; + } public Builder setPlayerInfoData( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerInfoData(builderForValue); + playerInfoData_ = builderForValue.build(); + + bitField0_ |= 0x00000002; return this; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ public Builder mergePlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { - copyOnWrite(); - instance.mergePlayerInfoData(value); + if (((bitField0_ & 0x00000002) == 0x00000002) && + playerInfoData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance()) { + playerInfoData_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder(playerInfoData_).mergeFrom(value).buildPartial(); + } else { + playerInfoData_ = value; + } + + bitField0_ |= 0x00000002; return this; } - /** - * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - */ - public Builder clearPlayerInfoData() { copyOnWrite(); - instance.clearPlayerInfoData(); + public Builder clearPlayerInfoData() { + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000002); return this; } - + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerId()) { - return null; - } - if (hasPlayerInfoData()) { - if (!getPlayerInfoData().isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage other = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage) arg1; - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - playerInfoData_ = visitor.visitMessage(playerInfoData_, other.playerInfoData_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 18: { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = playerInfoData_.toBuilder(); - } - playerInfoData_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerInfoData_); - playerInfoData_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerInfoReplyMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerInfoReplyMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) } - - public interface SubscriptionRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:SubscriptionRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ + + public interface SubscriptionRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; boolean hasSubscriptionAction(); - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction(); } - /** - *
-   * The following request will not be confirmed by the server. It is used,
-   * optionally, to reduce server traffic. The server might ignore it.
-   * 
- * - * Protobuf type {@code SubscriptionRequestMessage} - */ - public static final class SubscriptionRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - SubscriptionRequestMessage, SubscriptionRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:SubscriptionRequestMessage) - SubscriptionRequestMessageOrBuilder { - private SubscriptionRequestMessage() { - subscriptionAction_ = 1; + public static final class SubscriptionRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements SubscriptionRequestMessageOrBuilder { + // Use SubscriptionRequestMessage.newBuilder() to construct. + private SubscriptionRequestMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code SubscriptionRequestMessage.SubscriptionAction} - */ + private SubscriptionRequestMessage(boolean noInit) {} + + private static final SubscriptionRequestMessage defaultInstance; + public static SubscriptionRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public SubscriptionRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum SubscriptionAction implements com.google.protobuf.Internal.EnumLite { - /** - * unsubscribeGameList = 1; - */ - unsubscribeGameList(1), - /** - * resubscribeGameList = 2; - */ - resubscribeGameList(2), + unsubscribeGameList(0, 1), + resubscribeGameList(1, 2), ; - - /** - * unsubscribeGameList = 1; - */ + public static final int unsubscribeGameList_VALUE = 1; - /** - * resubscribeGameList = 2; - */ public static final int resubscribeGameList_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static SubscriptionAction valueOf(int value) { - return forNumber(value); - } - - public static SubscriptionAction forNumber(int value) { switch (value) { case 1: return unsubscribeGameList; case 2: return resubscribeGameList; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SubscriptionAction> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public SubscriptionAction findValueByNumber(int number) { - return SubscriptionAction.forNumber(number); + return SubscriptionAction.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return SubscriptionActionVerifier.INSTANCE; - } - - private static final class SubscriptionActionVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new SubscriptionActionVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return SubscriptionAction.forNumber(number) != null; - } - }; - + private final int value; - - private SubscriptionAction(int value) { + + private SubscriptionAction(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:SubscriptionRequestMessage.SubscriptionAction) } - + private int bitField0_; + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; public static final int SUBSCRIPTIONACTION_FIELD_NUMBER = 1; - private int subscriptionAction_; - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_; public boolean hasSubscriptionAction() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction result = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.forNumber(subscriptionAction_); - return result == null ? de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList : result; + return subscriptionAction_; } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - private void setSubscriptionAction(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasSubscriptionAction()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000001; - subscriptionAction_ = value.getNumber(); + memoizedIsInitialized = 1; + return true; } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - private void clearSubscriptionAction() { - bitField0_ = (bitField0_ & ~0x00000001); - subscriptionAction_ = 1; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, subscriptionAction_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, subscriptionAction_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, subscriptionAction_); + .computeEnumSize(1, subscriptionAction_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - *
-     * The following request will not be confirmed by the server. It is used,
-     * optionally, to reduce server traffic. The server might ignore it.
-     * 
- * - * Protobuf type {@code SubscriptionRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:SubscriptionRequestMessage) - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage build() { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = new de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.subscriptionAction_ = subscriptionAction_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance()) return this; + if (other.hasSubscriptionAction()) { + setSubscriptionAction(other.getSubscriptionAction()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasSubscriptionAction()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + subscriptionAction_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; public boolean hasSubscriptionAction() { - return instance.hasSubscriptionAction(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { - return instance.getSubscriptionAction(); + return subscriptionAction_; } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ public Builder setSubscriptionAction(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value) { - copyOnWrite(); - instance.setSubscriptionAction(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subscriptionAction_ = value; + return this; } - /** - * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - */ public Builder clearSubscriptionAction() { - copyOnWrite(); - instance.clearSubscriptionAction(); + bitField0_ = (bitField0_ & ~0x00000001); + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + return this; } - + // @@protoc_insertion_point(builder_scope:SubscriptionRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasSubscriptionAction()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage other = (de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage) arg1; - subscriptionAction_ = visitor.visitInt(hasSubscriptionAction(), subscriptionAction_, - other.hasSubscriptionAction(), other.subscriptionAction_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - subscriptionAction_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new SubscriptionRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new SubscriptionRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) } - - public interface JoinExistingGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:JoinExistingGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface JoinExistingGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * optional string password = 2; - */ + + // optional string password = 2; boolean hasPassword(); - /** - * optional string password = 2; - */ - java.lang.String getPassword(); - /** - * optional string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - - /** - * optional bool autoLeave = 3 [default = false]; - */ + String getPassword(); + + // optional bool autoLeave = 3 [default = false]; boolean hasAutoLeave(); - /** - * optional bool autoLeave = 3 [default = false]; - */ boolean getAutoLeave(); - - /** - * optional bool spectateOnly = 4 [default = false]; - */ + + // optional bool spectateOnly = 4 [default = false]; boolean hasSpectateOnly(); - /** - * optional bool spectateOnly = 4 [default = false]; - */ boolean getSpectateOnly(); } - /** - * Protobuf type {@code JoinExistingGameMessage} - */ - public static final class JoinExistingGameMessage extends - com.google.protobuf.GeneratedMessageLite< - JoinExistingGameMessage, JoinExistingGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:JoinExistingGameMessage) - JoinExistingGameMessageOrBuilder { - private JoinExistingGameMessage() { - password_ = ""; + public static final class JoinExistingGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements JoinExistingGameMessageOrBuilder { + // Use JoinExistingGameMessage.newBuilder() to construct. + private JoinExistingGameMessage(Builder builder) { + super(builder); } + private JoinExistingGameMessage(boolean noInit) {} + + private static final JoinExistingGameMessage defaultInstance; + public static JoinExistingGameMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinExistingGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // optional string password = 2; public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; - /** - * optional string password = 2; - */ - @java.lang.Override + private java.lang.Object password_; public boolean hasPassword() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string password = 2; - */ - @java.lang.Override - public java.lang.String getPassword() { - return password_; + public String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + password_ = s; + } + return s; + } } - /** - * optional string password = 2; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); + private com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value.toStringUtf8(); - } - + + // optional bool autoLeave = 3 [default = false]; public static final int AUTOLEAVE_FIELD_NUMBER = 3; private boolean autoLeave_; - /** - * optional bool autoLeave = 3 [default = false]; - */ - @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool autoLeave = 3 [default = false]; - */ - @java.lang.Override public boolean getAutoLeave() { return autoLeave_; } - /** - * optional bool autoLeave = 3 [default = false]; - */ - private void setAutoLeave(boolean value) { - bitField0_ |= 0x00000004; - autoLeave_ = value; - } - /** - * optional bool autoLeave = 3 [default = false]; - */ - private void clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000004); - autoLeave_ = false; - } - + + // optional bool spectateOnly = 4 [default = false]; public static final int SPECTATEONLY_FIELD_NUMBER = 4; private boolean spectateOnly_; - /** - * optional bool spectateOnly = 4 [default = false]; - */ - @java.lang.Override public boolean hasSpectateOnly() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bool spectateOnly = 4 [default = false]; - */ - @java.lang.Override public boolean getSpectateOnly() { return spectateOnly_; } - /** - * optional bool spectateOnly = 4 [default = false]; - */ - private void setSpectateOnly(boolean value) { - bitField0_ |= 0x00000008; - spectateOnly_ = value; - } - /** - * optional bool spectateOnly = 4 [default = false]; - */ - private void clearSpectateOnly() { - bitField0_ = (bitField0_ & ~0x00000008); + + private void initFields() { + gameId_ = 0; + password_ = ""; + autoLeave_ = false; spectateOnly_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeString(2, getPassword()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getPasswordBytes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, autoLeave_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, spectateOnly_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + .computeBytesSize(2, getPasswordBytes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoLeave_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, spectateOnly_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code JoinExistingGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:JoinExistingGameMessage) - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + password_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + spectateOnly_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage build() { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = new de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.password_ = password_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.autoLeave_ = autoLeave_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.spectateOnly_ = spectateOnly_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPassword()) { + setPassword(other.getPassword()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + if (other.hasSpectateOnly()) { + setSpectateOnly(other.getSpectateOnly()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + password_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + autoLeave_ = input.readBool(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + spectateOnly_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * optional string password = 2; - */ - @java.lang.Override + + // optional string password = 2; + private java.lang.Object password_ = ""; public boolean hasPassword() { - return instance.hasPassword(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string password = 2; - */ - @java.lang.Override - public java.lang.String getPassword() { - return instance.getPassword(); + public String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + password_ = s; + return s; + } else { + return (String) ref; + } } - /** - * optional string password = 2; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { - return instance.getPasswordBytes(); - } - /** - * optional string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + public Builder setPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + password_ = value; + return this; } - /** - * optional string password = 2; - */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + bitField0_ = (bitField0_ & ~0x00000002); + password_ = getDefaultInstance().getPassword(); + return this; } - /** - * optional string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); - return this; + void setPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + password_ = value; + } - - /** - * optional bool autoLeave = 3 [default = false]; - */ - @java.lang.Override + + // optional bool autoLeave = 3 [default = false]; + private boolean autoLeave_ ; public boolean hasAutoLeave() { - return instance.hasAutoLeave(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool autoLeave = 3 [default = false]; - */ - @java.lang.Override public boolean getAutoLeave() { - return instance.getAutoLeave(); + return autoLeave_; } - /** - * optional bool autoLeave = 3 [default = false]; - */ public Builder setAutoLeave(boolean value) { - copyOnWrite(); - instance.setAutoLeave(value); + bitField0_ |= 0x00000004; + autoLeave_ = value; + return this; } - /** - * optional bool autoLeave = 3 [default = false]; - */ public Builder clearAutoLeave() { - copyOnWrite(); - instance.clearAutoLeave(); + bitField0_ = (bitField0_ & ~0x00000004); + autoLeave_ = false; + return this; } - - /** - * optional bool spectateOnly = 4 [default = false]; - */ - @java.lang.Override + + // optional bool spectateOnly = 4 [default = false]; + private boolean spectateOnly_ ; public boolean hasSpectateOnly() { - return instance.hasSpectateOnly(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bool spectateOnly = 4 [default = false]; - */ - @java.lang.Override public boolean getSpectateOnly() { - return instance.getSpectateOnly(); + return spectateOnly_; } - /** - * optional bool spectateOnly = 4 [default = false]; - */ public Builder setSpectateOnly(boolean value) { - copyOnWrite(); - instance.setSpectateOnly(value); + bitField0_ |= 0x00000008; + spectateOnly_ = value; + return this; } - /** - * optional bool spectateOnly = 4 [default = false]; - */ public Builder clearSpectateOnly() { - copyOnWrite(); - instance.clearSpectateOnly(); + bitField0_ = (bitField0_ & ~0x00000008); + spectateOnly_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:JoinExistingGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage other = (de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - password_ = visitor.visitString( - hasPassword(), password_, - other.hasPassword(), other.password_); - autoLeave_ = visitor.visitBoolean( - hasAutoLeave(), autoLeave_, - other.hasAutoLeave(), other.autoLeave_); - spectateOnly_ = visitor.visitBoolean( - hasSpectateOnly(), spectateOnly_, - other.hasSpectateOnly(), other.spectateOnly_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000002; - password_ = s; - break; - } - case 24: { - bitField0_ |= 0x00000004; - autoLeave_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - spectateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) - private static final de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new JoinExistingGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new JoinExistingGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) } - - public interface JoinNewGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:JoinNewGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .NetGameInfo gameInfo = 1; - */ + + public interface JoinNewGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .NetGameInfo gameInfo = 1; boolean hasGameInfo(); - /** - * required .NetGameInfo gameInfo = 1; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); - - /** - * optional string password = 2; - */ + + // optional string password = 2; boolean hasPassword(); - /** - * optional string password = 2; - */ - java.lang.String getPassword(); - /** - * optional string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - - /** - * optional bool autoLeave = 3; - */ + String getPassword(); + + // optional bool autoLeave = 3; boolean hasAutoLeave(); - /** - * optional bool autoLeave = 3; - */ boolean getAutoLeave(); } - /** - * Protobuf type {@code JoinNewGameMessage} - */ - public static final class JoinNewGameMessage extends - com.google.protobuf.GeneratedMessageLite< - JoinNewGameMessage, JoinNewGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:JoinNewGameMessage) - JoinNewGameMessageOrBuilder { - private JoinNewGameMessage() { - password_ = ""; + public static final class JoinNewGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements JoinNewGameMessageOrBuilder { + // Use JoinNewGameMessage.newBuilder() to construct. + private JoinNewGameMessage(Builder builder) { + super(builder); } + private JoinNewGameMessage(boolean noInit) {} + + private static final JoinNewGameMessage defaultInstance; + public static JoinNewGameMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinNewGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required .NetGameInfo gameInfo = 1; public static final int GAMEINFO_FIELD_NUMBER = 1; private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; - /** - * required .NetGameInfo gameInfo = 1; - */ - @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .NetGameInfo gameInfo = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : gameInfo_; + return gameInfo_; } - /** - * required .NetGameInfo gameInfo = 1; - */ - private void setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - bitField0_ |= 0x00000001; - } - /** - * required .NetGameInfo gameInfo = 1; - */ - private void setGameInfo( - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - bitField0_ |= 0x00000001; - } - /** - * required .NetGameInfo gameInfo = 1; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameInfo_ != null && - gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { - gameInfo_ = - de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); - } else { - gameInfo_ = value; - } - bitField0_ |= 0x00000001; - } - /** - * required .NetGameInfo gameInfo = 1; - */ - private void clearGameInfo() { gameInfo_ = null; - bitField0_ = (bitField0_ & ~0x00000001); - } - + + // optional string password = 2; public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.String password_; - /** - * optional string password = 2; - */ - @java.lang.Override + private java.lang.Object password_; public boolean hasPassword() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string password = 2; - */ - @java.lang.Override - public java.lang.String getPassword() { - return password_; + public String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + password_ = s; + } + return s; + } } - /** - * optional string password = 2; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(password_); + private com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * optional string password = 2; - */ - private void setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - } - /** - * optional string password = 2; - */ - private void clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - } - /** - * optional string password = 2; - */ - private void setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value.toStringUtf8(); - } - + + // optional bool autoLeave = 3; public static final int AUTOLEAVE_FIELD_NUMBER = 3; private boolean autoLeave_; - /** - * optional bool autoLeave = 3; - */ - @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool autoLeave = 3; - */ - @java.lang.Override public boolean getAutoLeave() { return autoLeave_; } - /** - * optional bool autoLeave = 3; - */ - private void setAutoLeave(boolean value) { - bitField0_ |= 0x00000004; - autoLeave_ = value; - } - /** - * optional bool autoLeave = 3; - */ - private void clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + password_ = ""; autoLeave_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getGameInfo()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, gameInfo_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeString(2, getPassword()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getPasswordBytes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, autoLeave_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGameInfo()); + .computeMessageSize(1, gameInfo_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getPassword()); + .computeBytesSize(2, getPasswordBytes()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoLeave_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code JoinNewGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:JoinNewGameMessage) - de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .NetGameInfo gameInfo = 1; - */ - @java.lang.Override - public boolean hasGameInfo() { - return instance.hasGameInfo(); + + private void maybeForceBuilderInitialization() { } - /** - * required .NetGameInfo gameInfo = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return instance.getGameInfo(); + private static Builder create() { + return new Builder(); } - /** - * required .NetGameInfo gameInfo = 1; - */ - public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.setGameInfo(value); + + public Builder clear() { + super.clear(); + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + password_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000004); return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage build() { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * required .NetGameInfo gameInfo = 1; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = new de.pokerth.protocol.ProtoBuf.JoinNewGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameInfo_ = gameInfo_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.password_ = password_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.autoLeave_ = autoLeave_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance()) return this; + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + if (other.hasPassword()) { + setPassword(other.getPassword()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + case 18: { + bitField0_ |= 0x00000002; + password_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + autoLeave_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required .NetGameInfo gameInfo = 1; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + return gameInfo_; + } + public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (value == null) { + throw new NullPointerException(); + } + gameInfo_ = value; + + bitField0_ |= 0x00000001; + return this; + } public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - copyOnWrite(); - instance.setGameInfo(builderForValue); + gameInfo_ = builderForValue.build(); + + bitField0_ |= 0x00000001; return this; } - /** - * required .NetGameInfo gameInfo = 1; - */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.mergeGameInfo(value); + if (((bitField0_ & 0x00000001) == 0x00000001) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + + bitField0_ |= 0x00000001; return this; } - /** - * required .NetGameInfo gameInfo = 1; - */ - public Builder clearGameInfo() { copyOnWrite(); - instance.clearGameInfo(); + public Builder clearGameInfo() { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000001); return this; } - - /** - * optional string password = 2; - */ - @java.lang.Override + + // optional string password = 2; + private java.lang.Object password_ = ""; public boolean hasPassword() { - return instance.hasPassword(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string password = 2; - */ - @java.lang.Override - public java.lang.String getPassword() { - return instance.getPassword(); + public String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + password_ = s; + return s; + } else { + return (String) ref; + } } - /** - * optional string password = 2; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { - return instance.getPasswordBytes(); - } - /** - * optional string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - copyOnWrite(); - instance.setPassword(value); + public Builder setPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + password_ = value; + return this; } - /** - * optional string password = 2; - */ public Builder clearPassword() { - copyOnWrite(); - instance.clearPassword(); + bitField0_ = (bitField0_ & ~0x00000002); + password_ = getDefaultInstance().getPassword(); + return this; } - /** - * optional string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setPasswordBytes(value); - return this; + void setPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + password_ = value; + } - - /** - * optional bool autoLeave = 3; - */ - @java.lang.Override + + // optional bool autoLeave = 3; + private boolean autoLeave_ ; public boolean hasAutoLeave() { - return instance.hasAutoLeave(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool autoLeave = 3; - */ - @java.lang.Override public boolean getAutoLeave() { - return instance.getAutoLeave(); + return autoLeave_; } - /** - * optional bool autoLeave = 3; - */ public Builder setAutoLeave(boolean value) { - copyOnWrite(); - instance.setAutoLeave(value); + bitField0_ |= 0x00000004; + autoLeave_ = value; + return this; } - /** - * optional bool autoLeave = 3; - */ public Builder clearAutoLeave() { - copyOnWrite(); - instance.clearAutoLeave(); + bitField0_ = (bitField0_ & ~0x00000004); + autoLeave_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:JoinNewGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.JoinNewGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameInfo()) { - return null; - } - if (!getGameInfo().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage other = (de.pokerth.protocol.ProtoBuf.JoinNewGameMessage) arg1; - gameInfo_ = visitor.visitMessage(gameInfo_, other.gameInfo_); - password_ = visitor.visitString( - hasPassword(), password_, - other.hasPassword(), other.password_); - autoLeave_ = visitor.visitBoolean( - hasAutoLeave(), autoLeave_, - other.hasAutoLeave(), other.autoLeave_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = gameInfo_.toBuilder(); - } - gameInfo_ = input.readMessage(de.pokerth.protocol.ProtoBuf.NetGameInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameInfo_); - gameInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000002; - password_ = s; - break; - } - case 24: { - bitField0_ |= 0x00000004; - autoLeave_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:JoinNewGameMessage) - private static final de.pokerth.protocol.ProtoBuf.JoinNewGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new JoinNewGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new JoinNewGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:JoinNewGameMessage) } - - public interface RejoinExistingGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:RejoinExistingGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface RejoinExistingGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * optional bool autoLeave = 2; - */ + + // optional bool autoLeave = 2; boolean hasAutoLeave(); - /** - * optional bool autoLeave = 2; - */ boolean getAutoLeave(); } - /** - * Protobuf type {@code RejoinExistingGameMessage} - */ - public static final class RejoinExistingGameMessage extends - com.google.protobuf.GeneratedMessageLite< - RejoinExistingGameMessage, RejoinExistingGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:RejoinExistingGameMessage) - RejoinExistingGameMessageOrBuilder { - private RejoinExistingGameMessage() { + public static final class RejoinExistingGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements RejoinExistingGameMessageOrBuilder { + // Use RejoinExistingGameMessage.newBuilder() to construct. + private RejoinExistingGameMessage(Builder builder) { + super(builder); } + private RejoinExistingGameMessage(boolean noInit) {} + + private static final RejoinExistingGameMessage defaultInstance; + public static RejoinExistingGameMessage getDefaultInstance() { + return defaultInstance; + } + + public RejoinExistingGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // optional bool autoLeave = 2; public static final int AUTOLEAVE_FIELD_NUMBER = 2; private boolean autoLeave_; - /** - * optional bool autoLeave = 2; - */ - @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional bool autoLeave = 2; - */ - @java.lang.Override public boolean getAutoLeave() { return autoLeave_; } - /** - * optional bool autoLeave = 2; - */ - private void setAutoLeave(boolean value) { - bitField0_ |= 0x00000002; - autoLeave_ = value; - } - /** - * optional bool autoLeave = 2; - */ - private void clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; autoLeave_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, autoLeave_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, autoLeave_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code RejoinExistingGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:RejoinExistingGameMessage) - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage build() { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = new de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.autoLeave_ = autoLeave_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + autoLeave_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * optional bool autoLeave = 2; - */ - @java.lang.Override + + // optional bool autoLeave = 2; + private boolean autoLeave_ ; public boolean hasAutoLeave() { - return instance.hasAutoLeave(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional bool autoLeave = 2; - */ - @java.lang.Override public boolean getAutoLeave() { - return instance.getAutoLeave(); + return autoLeave_; } - /** - * optional bool autoLeave = 2; - */ public Builder setAutoLeave(boolean value) { - copyOnWrite(); - instance.setAutoLeave(value); + bitField0_ |= 0x00000002; + autoLeave_ = value; + return this; } - /** - * optional bool autoLeave = 2; - */ public Builder clearAutoLeave() { - copyOnWrite(); - instance.clearAutoLeave(); + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:RejoinExistingGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage other = (de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - autoLeave_ = visitor.visitBoolean( - hasAutoLeave(), autoLeave_, - other.hasAutoLeave(), other.autoLeave_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - autoLeave_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) - private static final de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new RejoinExistingGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new RejoinExistingGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) } - - public interface JoinGameAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:JoinGameAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface JoinGameAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required bool areYouGameAdmin = 2; - */ + + // required bool areYouGameAdmin = 2; boolean hasAreYouGameAdmin(); - /** - * required bool areYouGameAdmin = 2; - */ boolean getAreYouGameAdmin(); - - /** - * required .NetGameInfo gameInfo = 3; - */ + + // required .NetGameInfo gameInfo = 3; boolean hasGameInfo(); - /** - * required .NetGameInfo gameInfo = 3; - */ de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); - - /** - * optional bool spectateOnly = 4; - */ + + // optional bool spectateOnly = 4; boolean hasSpectateOnly(); - /** - * optional bool spectateOnly = 4; - */ boolean getSpectateOnly(); } - /** - * Protobuf type {@code JoinGameAckMessage} - */ - public static final class JoinGameAckMessage extends - com.google.protobuf.GeneratedMessageLite< - JoinGameAckMessage, JoinGameAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:JoinGameAckMessage) - JoinGameAckMessageOrBuilder { - private JoinGameAckMessage() { + public static final class JoinGameAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements JoinGameAckMessageOrBuilder { + // Use JoinGameAckMessage.newBuilder() to construct. + private JoinGameAckMessage(Builder builder) { + super(builder); } + private JoinGameAckMessage(boolean noInit) {} + + private static final JoinGameAckMessage defaultInstance; + public static JoinGameAckMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinGameAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required bool areYouGameAdmin = 2; public static final int AREYOUGAMEADMIN_FIELD_NUMBER = 2; private boolean areYouGameAdmin_; - /** - * required bool areYouGameAdmin = 2; - */ - @java.lang.Override public boolean hasAreYouGameAdmin() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bool areYouGameAdmin = 2; - */ - @java.lang.Override public boolean getAreYouGameAdmin() { return areYouGameAdmin_; } - /** - * required bool areYouGameAdmin = 2; - */ - private void setAreYouGameAdmin(boolean value) { - bitField0_ |= 0x00000002; - areYouGameAdmin_ = value; - } - /** - * required bool areYouGameAdmin = 2; - */ - private void clearAreYouGameAdmin() { - bitField0_ = (bitField0_ & ~0x00000002); - areYouGameAdmin_ = false; - } - + + // required .NetGameInfo gameInfo = 3; public static final int GAMEINFO_FIELD_NUMBER = 3; private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; - /** - * required .NetGameInfo gameInfo = 3; - */ - @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameInfo gameInfo = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : gameInfo_; + return gameInfo_; } - /** - * required .NetGameInfo gameInfo = 3; - */ - private void setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - bitField0_ |= 0x00000004; - } - /** - * required .NetGameInfo gameInfo = 3; - */ - private void setGameInfo( - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - bitField0_ |= 0x00000004; - } - /** - * required .NetGameInfo gameInfo = 3; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameInfo_ != null && - gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { - gameInfo_ = - de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); - } else { - gameInfo_ = value; - } - bitField0_ |= 0x00000004; - } - /** - * required .NetGameInfo gameInfo = 3; - */ - private void clearGameInfo() { gameInfo_ = null; - bitField0_ = (bitField0_ & ~0x00000004); - } - + + // optional bool spectateOnly = 4; public static final int SPECTATEONLY_FIELD_NUMBER = 4; private boolean spectateOnly_; - /** - * optional bool spectateOnly = 4; - */ - @java.lang.Override public boolean hasSpectateOnly() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bool spectateOnly = 4; - */ - @java.lang.Override public boolean getSpectateOnly() { return spectateOnly_; } - /** - * optional bool spectateOnly = 4; - */ - private void setSpectateOnly(boolean value) { - bitField0_ |= 0x00000008; - spectateOnly_ = value; - } - /** - * optional bool spectateOnly = 4; - */ - private void clearSpectateOnly() { - bitField0_ = (bitField0_ & ~0x00000008); + + private void initFields() { + gameId_ = 0; + areYouGameAdmin_ = false; + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); spectateOnly_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAreYouGameAdmin()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, areYouGameAdmin_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getGameInfo()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, gameInfo_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, spectateOnly_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, areYouGameAdmin_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGameInfo()); + .computeMessageSize(3, gameInfo_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, spectateOnly_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code JoinGameAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:JoinGameAckMessage) - de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override - public boolean hasGameId() { - return instance.hasGameId(); + + private void maybeForceBuilderInitialization() { } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override - public int getGameId() { - return instance.getGameId(); + private static Builder create() { + return new Builder(); } - /** - * required uint32 gameId = 1; - */ - public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + areYouGameAdmin_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000004); + spectateOnly_ = false; + bitField0_ = (bitField0_ & ~0x00000008); return this; } - /** - * required uint32 gameId = 1; - */ - public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); - return this; + + public Builder clone() { + return create().mergeFrom(buildPartial()); } - - /** - * required bool areYouGameAdmin = 2; - */ - @java.lang.Override - public boolean hasAreYouGameAdmin() { - return instance.hasAreYouGameAdmin(); + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); } - /** - * required bool areYouGameAdmin = 2; - */ - @java.lang.Override - public boolean getAreYouGameAdmin() { - return instance.getAreYouGameAdmin(); - } - /** - * required bool areYouGameAdmin = 2; - */ - public Builder setAreYouGameAdmin(boolean value) { - copyOnWrite(); - instance.setAreYouGameAdmin(value); - return this; - } - /** - * required bool areYouGameAdmin = 2; - */ - public Builder clearAreYouGameAdmin() { - copyOnWrite(); - instance.clearAreYouGameAdmin(); - return this; - } - - /** - * required .NetGameInfo gameInfo = 3; - */ - @java.lang.Override - public boolean hasGameInfo() { - return instance.hasGameInfo(); - } - /** - * required .NetGameInfo gameInfo = 3; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return instance.getGameInfo(); - } - /** - * required .NetGameInfo gameInfo = 3; - */ - public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.setGameInfo(value); - return this; + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage build() { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * required .NetGameInfo gameInfo = 3; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = new de.pokerth.protocol.ProtoBuf.JoinGameAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.areYouGameAdmin_ = areYouGameAdmin_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameInfo_ = gameInfo_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.spectateOnly_ = spectateOnly_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasAreYouGameAdmin()) { + setAreYouGameAdmin(other.getAreYouGameAdmin()); + } + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + if (other.hasSpectateOnly()) { + setSpectateOnly(other.getSpectateOnly()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasAreYouGameAdmin()) { + + return false; + } + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + areYouGameAdmin_ = input.readBool(); + break; + } + case 26: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + case 32: { + bitField0_ |= 0x00000008; + spectateOnly_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + + return this; + } + + // required bool areYouGameAdmin = 2; + private boolean areYouGameAdmin_ ; + public boolean hasAreYouGameAdmin() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getAreYouGameAdmin() { + return areYouGameAdmin_; + } + public Builder setAreYouGameAdmin(boolean value) { + bitField0_ |= 0x00000002; + areYouGameAdmin_ = value; + + return this; + } + public Builder clearAreYouGameAdmin() { + bitField0_ = (bitField0_ & ~0x00000002); + areYouGameAdmin_ = false; + + return this; + } + + // required .NetGameInfo gameInfo = 3; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + return gameInfo_; + } + public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (value == null) { + throw new NullPointerException(); + } + gameInfo_ = value; + + bitField0_ |= 0x00000004; + return this; + } public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - copyOnWrite(); - instance.setGameInfo(builderForValue); + gameInfo_ = builderForValue.build(); + + bitField0_ |= 0x00000004; return this; } - /** - * required .NetGameInfo gameInfo = 3; - */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - copyOnWrite(); - instance.mergeGameInfo(value); + if (((bitField0_ & 0x00000004) == 0x00000004) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + + bitField0_ |= 0x00000004; return this; } - /** - * required .NetGameInfo gameInfo = 3; - */ - public Builder clearGameInfo() { copyOnWrite(); - instance.clearGameInfo(); + public Builder clearGameInfo() { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000004); return this; } - - /** - * optional bool spectateOnly = 4; - */ - @java.lang.Override + + // optional bool spectateOnly = 4; + private boolean spectateOnly_ ; public boolean hasSpectateOnly() { - return instance.hasSpectateOnly(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bool spectateOnly = 4; - */ - @java.lang.Override public boolean getSpectateOnly() { - return instance.getSpectateOnly(); + return spectateOnly_; } - /** - * optional bool spectateOnly = 4; - */ public Builder setSpectateOnly(boolean value) { - copyOnWrite(); - instance.setSpectateOnly(value); + bitField0_ |= 0x00000008; + spectateOnly_ = value; + return this; } - /** - * optional bool spectateOnly = 4; - */ public Builder clearSpectateOnly() { - copyOnWrite(); - instance.clearSpectateOnly(); + bitField0_ = (bitField0_ & ~0x00000008); + spectateOnly_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:JoinGameAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.JoinGameAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasAreYouGameAdmin()) { - return null; - } - if (!hasGameInfo()) { - return null; - } - if (!getGameInfo().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage other = (de.pokerth.protocol.ProtoBuf.JoinGameAckMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - areYouGameAdmin_ = visitor.visitBoolean( - hasAreYouGameAdmin(), areYouGameAdmin_, - other.hasAreYouGameAdmin(), other.areYouGameAdmin_); - gameInfo_ = visitor.visitMessage(gameInfo_, other.gameInfo_); - spectateOnly_ = visitor.visitBoolean( - hasSpectateOnly(), spectateOnly_, - other.hasSpectateOnly(), other.spectateOnly_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - areYouGameAdmin_ = input.readBool(); - break; - } - case 26: { - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = gameInfo_.toBuilder(); - } - gameInfo_ = input.readMessage(de.pokerth.protocol.ProtoBuf.NetGameInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameInfo_); - gameInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 32: { - bitField0_ |= 0x00000008; - spectateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:JoinGameAckMessage) - private static final de.pokerth.protocol.ProtoBuf.JoinGameAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new JoinGameAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new JoinGameAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:JoinGameAckMessage) } - - public interface JoinGameFailedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:JoinGameFailedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface JoinGameFailedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; boolean hasJoinGameFailureReason(); - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason(); } - /** - * Protobuf type {@code JoinGameFailedMessage} - */ - public static final class JoinGameFailedMessage extends - com.google.protobuf.GeneratedMessageLite< - JoinGameFailedMessage, JoinGameFailedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:JoinGameFailedMessage) - JoinGameFailedMessageOrBuilder { - private JoinGameFailedMessage() { - joinGameFailureReason_ = 1; + public static final class JoinGameFailedMessage extends + com.google.protobuf.GeneratedMessageLite + implements JoinGameFailedMessageOrBuilder { + // Use JoinGameFailedMessage.newBuilder() to construct. + private JoinGameFailedMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code JoinGameFailedMessage.JoinGameFailureReason} - */ + private JoinGameFailedMessage(boolean noInit) {} + + private static final JoinGameFailedMessage defaultInstance; + public static JoinGameFailedMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinGameFailedMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum JoinGameFailureReason implements com.google.protobuf.Internal.EnumLite { - /** - * invalidGame = 1; - */ - invalidGame(1), - /** - * gameIsFull = 2; - */ - gameIsFull(2), - /** - * gameIsRunning = 3; - */ - gameIsRunning(3), - /** - * invalidPassword = 4; - */ - invalidPassword(4), - /** - * notAllowedAsGuest = 5; - */ - notAllowedAsGuest(5), - /** - * notInvited = 6; - */ - notInvited(6), - /** - * gameNameInUse = 7; - */ - gameNameInUse(7), - /** - * badGameName = 8; - */ - badGameName(8), - /** - * invalidSettings = 9; - */ - invalidSettings(9), - /** - * ipAddressBlocked = 10; - */ - ipAddressBlocked(10), - /** - * rejoinFailed = 11; - */ - rejoinFailed(11), - /** - * noSpectatorsAllowed = 12; - */ - noSpectatorsAllowed(12), + invalidGame(0, 1), + gameIsFull(1, 2), + gameIsRunning(2, 3), + invalidPassword(3, 4), + notAllowedAsGuest(4, 5), + notInvited(5, 6), + gameNameInUse(6, 7), + badGameName(7, 8), + invalidSettings(8, 9), + ipAddressBlocked(9, 10), + rejoinFailed(10, 11), + noSpectatorsAllowed(11, 12), ; - - /** - * invalidGame = 1; - */ + public static final int invalidGame_VALUE = 1; - /** - * gameIsFull = 2; - */ public static final int gameIsFull_VALUE = 2; - /** - * gameIsRunning = 3; - */ public static final int gameIsRunning_VALUE = 3; - /** - * invalidPassword = 4; - */ public static final int invalidPassword_VALUE = 4; - /** - * notAllowedAsGuest = 5; - */ public static final int notAllowedAsGuest_VALUE = 5; - /** - * notInvited = 6; - */ public static final int notInvited_VALUE = 6; - /** - * gameNameInUse = 7; - */ public static final int gameNameInUse_VALUE = 7; - /** - * badGameName = 8; - */ public static final int badGameName_VALUE = 8; - /** - * invalidSettings = 9; - */ public static final int invalidSettings_VALUE = 9; - /** - * ipAddressBlocked = 10; - */ public static final int ipAddressBlocked_VALUE = 10; - /** - * rejoinFailed = 11; - */ public static final int rejoinFailed_VALUE = 11; - /** - * noSpectatorsAllowed = 12; - */ public static final int noSpectatorsAllowed_VALUE = 12; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static JoinGameFailureReason valueOf(int value) { - return forNumber(value); - } - - public static JoinGameFailureReason forNumber(int value) { switch (value) { case 1: return invalidGame; case 2: return gameIsFull; @@ -19219,1041 +14791,831 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - JoinGameFailureReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public JoinGameFailureReason findValueByNumber(int number) { - return JoinGameFailureReason.forNumber(number); + return JoinGameFailureReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return JoinGameFailureReasonVerifier.INSTANCE; - } - - private static final class JoinGameFailureReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new JoinGameFailureReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return JoinGameFailureReason.forNumber(number) != null; - } - }; - + private final int value; - - private JoinGameFailureReason(int value) { + + private JoinGameFailureReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:JoinGameFailedMessage.JoinGameFailureReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; public static final int JOINGAMEFAILUREREASON_FIELD_NUMBER = 2; - private int joinGameFailureReason_; - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_; public boolean hasJoinGameFailureReason() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason result = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.forNumber(joinGameFailureReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame : result; + return joinGameFailureReason_; } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - private void setJoinGameFailureReason(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - joinGameFailureReason_ = value.getNumber(); + if (!hasJoinGameFailureReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - private void clearJoinGameFailureReason() { - bitField0_ = (bitField0_ & ~0x00000002); - joinGameFailureReason_ = 1; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, joinGameFailureReason_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, joinGameFailureReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, joinGameFailureReason_); + .computeEnumSize(2, joinGameFailureReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code JoinGameFailedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:JoinGameFailedMessage) - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage build() { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = new de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.joinGameFailureReason_ = joinGameFailureReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasJoinGameFailureReason()) { + setJoinGameFailureReason(other.getJoinGameFailureReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasJoinGameFailureReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + joinGameFailureReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - @java.lang.Override + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; public boolean hasJoinGameFailureReason() { - return instance.hasJoinGameFailureReason(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { - return instance.getJoinGameFailureReason(); + return joinGameFailureReason_; } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ public Builder setJoinGameFailureReason(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value) { - copyOnWrite(); - instance.setJoinGameFailureReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + joinGameFailureReason_ = value; + return this; } - /** - * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - */ public Builder clearJoinGameFailureReason() { - copyOnWrite(); - instance.clearJoinGameFailureReason(); + bitField0_ = (bitField0_ & ~0x00000002); + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + return this; } - + // @@protoc_insertion_point(builder_scope:JoinGameFailedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasJoinGameFailureReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage other = (de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - joinGameFailureReason_ = visitor.visitInt(hasJoinGameFailureReason(), joinGameFailureReason_, - other.hasJoinGameFailureReason(), other.joinGameFailureReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - joinGameFailureReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) - private static final de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new JoinGameFailedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new JoinGameFailedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) } - - public interface GamePlayerJoinedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GamePlayerJoinedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GamePlayerJoinedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required bool isGameAdmin = 3; - */ + + // required bool isGameAdmin = 3; boolean hasIsGameAdmin(); - /** - * required bool isGameAdmin = 3; - */ boolean getIsGameAdmin(); } - /** - * Protobuf type {@code GamePlayerJoinedMessage} - */ - public static final class GamePlayerJoinedMessage extends - com.google.protobuf.GeneratedMessageLite< - GamePlayerJoinedMessage, GamePlayerJoinedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GamePlayerJoinedMessage) - GamePlayerJoinedMessageOrBuilder { - private GamePlayerJoinedMessage() { + public static final class GamePlayerJoinedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GamePlayerJoinedMessageOrBuilder { + // Use GamePlayerJoinedMessage.newBuilder() to construct. + private GamePlayerJoinedMessage(Builder builder) { + super(builder); } + private GamePlayerJoinedMessage(boolean noInit) {} + + private static final GamePlayerJoinedMessage defaultInstance; + public static GamePlayerJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GamePlayerJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required bool isGameAdmin = 3; public static final int ISGAMEADMIN_FIELD_NUMBER = 3; private boolean isGameAdmin_; - /** - * required bool isGameAdmin = 3; - */ - @java.lang.Override public boolean hasIsGameAdmin() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool isGameAdmin = 3; - */ - @java.lang.Override public boolean getIsGameAdmin() { return isGameAdmin_; } - /** - * required bool isGameAdmin = 3; - */ - private void setIsGameAdmin(boolean value) { - bitField0_ |= 0x00000004; - isGameAdmin_ = value; - } - /** - * required bool isGameAdmin = 3; - */ - private void clearIsGameAdmin() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; isGameAdmin_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsGameAdmin()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isGameAdmin_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isGameAdmin_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GamePlayerJoinedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GamePlayerJoinedMessage) - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + isGameAdmin_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isGameAdmin_ = isGameAdmin_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasIsGameAdmin()) { + setIsGameAdmin(other.getIsGameAdmin()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasIsGameAdmin()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + isGameAdmin_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required bool isGameAdmin = 3; - */ - @java.lang.Override + + // required bool isGameAdmin = 3; + private boolean isGameAdmin_ ; public boolean hasIsGameAdmin() { - return instance.hasIsGameAdmin(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool isGameAdmin = 3; - */ - @java.lang.Override public boolean getIsGameAdmin() { - return instance.getIsGameAdmin(); + return isGameAdmin_; } - /** - * required bool isGameAdmin = 3; - */ public Builder setIsGameAdmin(boolean value) { - copyOnWrite(); - instance.setIsGameAdmin(value); + bitField0_ |= 0x00000004; + isGameAdmin_ = value; + return this; } - /** - * required bool isGameAdmin = 3; - */ public Builder clearIsGameAdmin() { - copyOnWrite(); - instance.clearIsGameAdmin(); + bitField0_ = (bitField0_ & ~0x00000004); + isGameAdmin_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:GamePlayerJoinedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasIsGameAdmin()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage other = (de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - isGameAdmin_ = visitor.visitBoolean( - hasIsGameAdmin(), isGameAdmin_, - other.hasIsGameAdmin(), other.isGameAdmin_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - isGameAdmin_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) - private static final de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GamePlayerJoinedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GamePlayerJoinedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) } - - public interface GamePlayerLeftMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GamePlayerLeftMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GamePlayerLeftMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; boolean hasGamePlayerLeftReason(); - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason(); } - /** - * Protobuf type {@code GamePlayerLeftMessage} - */ - public static final class GamePlayerLeftMessage extends - com.google.protobuf.GeneratedMessageLite< - GamePlayerLeftMessage, GamePlayerLeftMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GamePlayerLeftMessage) - GamePlayerLeftMessageOrBuilder { - private GamePlayerLeftMessage() { + public static final class GamePlayerLeftMessage extends + com.google.protobuf.GeneratedMessageLite + implements GamePlayerLeftMessageOrBuilder { + // Use GamePlayerLeftMessage.newBuilder() to construct. + private GamePlayerLeftMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code GamePlayerLeftMessage.GamePlayerLeftReason} - */ + private GamePlayerLeftMessage(boolean noInit) {} + + private static final GamePlayerLeftMessage defaultInstance; + public static GamePlayerLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GamePlayerLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum GamePlayerLeftReason implements com.google.protobuf.Internal.EnumLite { - /** - * leftOnRequest = 0; - */ - leftOnRequest(0), - /** - * leftKicked = 1; - */ - leftKicked(1), - /** - * leftError = 2; - */ - leftError(2), + leftOnRequest(0, 0), + leftKicked(1, 1), + leftError(2, 2), ; - - /** - * leftOnRequest = 0; - */ + public static final int leftOnRequest_VALUE = 0; - /** - * leftKicked = 1; - */ public static final int leftKicked_VALUE = 1; - /** - * leftError = 2; - */ public static final int leftError_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static GamePlayerLeftReason valueOf(int value) { - return forNumber(value); - } - - public static GamePlayerLeftReason forNumber(int value) { switch (value) { case 0: return leftOnRequest; case 1: return leftKicked; @@ -20261,2005 +15623,1615 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - GamePlayerLeftReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public GamePlayerLeftReason findValueByNumber(int number) { - return GamePlayerLeftReason.forNumber(number); + return GamePlayerLeftReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return GamePlayerLeftReasonVerifier.INSTANCE; - } - - private static final class GamePlayerLeftReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new GamePlayerLeftReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return GamePlayerLeftReason.forNumber(number) != null; - } - }; - + private final int value; - - private GamePlayerLeftReason(int value) { + + private GamePlayerLeftReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:GamePlayerLeftMessage.GamePlayerLeftReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; public static final int GAMEPLAYERLEFTREASON_FIELD_NUMBER = 3; - private int gamePlayerLeftReason_; - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_; public boolean hasGamePlayerLeftReason() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason result = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.forNumber(gamePlayerLeftReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest : result; + return gamePlayerLeftReason_; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - private void setGamePlayerLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - gamePlayerLeftReason_ = value.getNumber(); + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGamePlayerLeftReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - private void clearGamePlayerLeftReason() { - bitField0_ = (bitField0_ & ~0x00000004); - gamePlayerLeftReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, gamePlayerLeftReason_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gamePlayerLeftReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gamePlayerLeftReason_); + .computeEnumSize(3, gamePlayerLeftReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GamePlayerLeftMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GamePlayerLeftMessage) - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = new de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gamePlayerLeftReason_ = gamePlayerLeftReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGamePlayerLeftReason()) { + setGamePlayerLeftReason(other.getGamePlayerLeftReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGamePlayerLeftReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + gamePlayerLeftReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - @java.lang.Override + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; public boolean hasGamePlayerLeftReason() { - return instance.hasGamePlayerLeftReason(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { - return instance.getGamePlayerLeftReason(); + return gamePlayerLeftReason_; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ public Builder setGamePlayerLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - copyOnWrite(); - instance.setGamePlayerLeftReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gamePlayerLeftReason_ = value; + return this; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - */ public Builder clearGamePlayerLeftReason() { - copyOnWrite(); - instance.clearGamePlayerLeftReason(); + bitField0_ = (bitField0_ & ~0x00000004); + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + return this; } - + // @@protoc_insertion_point(builder_scope:GamePlayerLeftMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasGamePlayerLeftReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage other = (de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - gamePlayerLeftReason_ = visitor.visitInt(hasGamePlayerLeftReason(), gamePlayerLeftReason_, - other.hasGamePlayerLeftReason(), other.gamePlayerLeftReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - gamePlayerLeftReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) - private static final de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GamePlayerLeftMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GamePlayerLeftMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) } - - public interface GameSpectatorJoinedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameSpectatorJoinedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameSpectatorJoinedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code GameSpectatorJoinedMessage} - */ - public static final class GameSpectatorJoinedMessage extends - com.google.protobuf.GeneratedMessageLite< - GameSpectatorJoinedMessage, GameSpectatorJoinedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameSpectatorJoinedMessage) - GameSpectatorJoinedMessageOrBuilder { - private GameSpectatorJoinedMessage() { + public static final class GameSpectatorJoinedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameSpectatorJoinedMessageOrBuilder { + // Use GameSpectatorJoinedMessage.newBuilder() to construct. + private GameSpectatorJoinedMessage(Builder builder) { + super(builder); } + private GameSpectatorJoinedMessage(boolean noInit) {} + + private static final GameSpectatorJoinedMessage defaultInstance; + public static GameSpectatorJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameSpectatorJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameSpectatorJoinedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameSpectatorJoinedMessage) - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameSpectatorJoinedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage other = (de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameSpectatorJoinedMessage) - private static final de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameSpectatorJoinedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameSpectatorJoinedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameSpectatorJoinedMessage) } - - public interface GameSpectatorLeftMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameSpectatorLeftMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameSpectatorLeftMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; boolean hasGameSpectatorLeftReason(); - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGameSpectatorLeftReason(); } - /** - * Protobuf type {@code GameSpectatorLeftMessage} - */ - public static final class GameSpectatorLeftMessage extends - com.google.protobuf.GeneratedMessageLite< - GameSpectatorLeftMessage, GameSpectatorLeftMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameSpectatorLeftMessage) - GameSpectatorLeftMessageOrBuilder { - private GameSpectatorLeftMessage() { + public static final class GameSpectatorLeftMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameSpectatorLeftMessageOrBuilder { + // Use GameSpectatorLeftMessage.newBuilder() to construct. + private GameSpectatorLeftMessage(Builder builder) { + super(builder); } + private GameSpectatorLeftMessage(boolean noInit) {} + + private static final GameSpectatorLeftMessage defaultInstance; + public static GameSpectatorLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GameSpectatorLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; public static final int GAMESPECTATORLEFTREASON_FIELD_NUMBER = 3; - private int gameSpectatorLeftReason_; - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason_; public boolean hasGameSpectatorLeftReason() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGameSpectatorLeftReason() { - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason result = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.forNumber(gameSpectatorLeftReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest : result; + return gameSpectatorLeftReason_; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - private void setGameSpectatorLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - gameSpectatorLeftReason_ = value.getNumber(); + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameSpectatorLeftReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - private void clearGameSpectatorLeftReason() { - bitField0_ = (bitField0_ & ~0x00000004); - gameSpectatorLeftReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, gameSpectatorLeftReason_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameSpectatorLeftReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameSpectatorLeftReason_); + .computeEnumSize(3, gameSpectatorLeftReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameSpectatorLeftMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameSpectatorLeftMessage) - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage result = new de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameSpectatorLeftReason_ = gameSpectatorLeftReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGameSpectatorLeftReason()) { + setGameSpectatorLeftReason(other.getGameSpectatorLeftReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGameSpectatorLeftReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + gameSpectatorLeftReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - @java.lang.Override + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; public boolean hasGameSpectatorLeftReason() { - return instance.hasGameSpectatorLeftReason(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGameSpectatorLeftReason() { - return instance.getGameSpectatorLeftReason(); + return gameSpectatorLeftReason_; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ public Builder setGameSpectatorLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - copyOnWrite(); - instance.setGameSpectatorLeftReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameSpectatorLeftReason_ = value; + return this; } - /** - * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - */ public Builder clearGameSpectatorLeftReason() { - copyOnWrite(); - instance.clearGameSpectatorLeftReason(); + bitField0_ = (bitField0_ & ~0x00000004); + gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + return this; } - + // @@protoc_insertion_point(builder_scope:GameSpectatorLeftMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasGameSpectatorLeftReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage other = (de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - gameSpectatorLeftReason_ = visitor.visitInt(hasGameSpectatorLeftReason(), gameSpectatorLeftReason_, - other.hasGameSpectatorLeftReason(), other.gameSpectatorLeftReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - gameSpectatorLeftReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameSpectatorLeftMessage) - private static final de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameSpectatorLeftMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameSpectatorLeftMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameSpectatorLeftMessage) } - - public interface GameAdminChangedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameAdminChangedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameAdminChangedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 newAdminPlayerId = 2; - */ + + // required uint32 newAdminPlayerId = 2; boolean hasNewAdminPlayerId(); - /** - * required uint32 newAdminPlayerId = 2; - */ int getNewAdminPlayerId(); } - /** - * Protobuf type {@code GameAdminChangedMessage} - */ - public static final class GameAdminChangedMessage extends - com.google.protobuf.GeneratedMessageLite< - GameAdminChangedMessage, GameAdminChangedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameAdminChangedMessage) - GameAdminChangedMessageOrBuilder { - private GameAdminChangedMessage() { + public static final class GameAdminChangedMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameAdminChangedMessageOrBuilder { + // Use GameAdminChangedMessage.newBuilder() to construct. + private GameAdminChangedMessage(Builder builder) { + super(builder); } + private GameAdminChangedMessage(boolean noInit) {} + + private static final GameAdminChangedMessage defaultInstance; + public static GameAdminChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameAdminChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 newAdminPlayerId = 2; public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; private int newAdminPlayerId_; - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public int getNewAdminPlayerId() { return newAdminPlayerId_; } - /** - * required uint32 newAdminPlayerId = 2; - */ - private void setNewAdminPlayerId(int value) { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = value; - } - /** - * required uint32 newAdminPlayerId = 2; - */ - private void clearNewAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; newAdminPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, newAdminPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newAdminPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameAdminChangedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameAdminChangedMessage) - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newAdminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage build() { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = new de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newAdminPlayerId_ = newAdminPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasNewAdminPlayerId()) { + setNewAdminPlayerId(other.getNewAdminPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasNewAdminPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override + + // required uint32 newAdminPlayerId = 2; + private int newAdminPlayerId_ ; public boolean hasNewAdminPlayerId() { - return instance.hasNewAdminPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newAdminPlayerId = 2; - */ - @java.lang.Override public int getNewAdminPlayerId() { - return instance.getNewAdminPlayerId(); + return newAdminPlayerId_; } - /** - * required uint32 newAdminPlayerId = 2; - */ public Builder setNewAdminPlayerId(int value) { - copyOnWrite(); - instance.setNewAdminPlayerId(value); + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + return this; } - /** - * required uint32 newAdminPlayerId = 2; - */ public Builder clearNewAdminPlayerId() { - copyOnWrite(); - instance.clearNewAdminPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + newAdminPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameAdminChangedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasNewAdminPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage other = (de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - newAdminPlayerId_ = visitor.visitInt( - hasNewAdminPlayerId(), newAdminPlayerId_, - other.hasNewAdminPlayerId(), other.newAdminPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) - private static final de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameAdminChangedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameAdminChangedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) } - - public interface RemovedFromGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:RemovedFromGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface RemovedFromGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; boolean hasRemovedFromGameReason(); - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason(); } - /** - * Protobuf type {@code RemovedFromGameMessage} - */ - public static final class RemovedFromGameMessage extends - com.google.protobuf.GeneratedMessageLite< - RemovedFromGameMessage, RemovedFromGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:RemovedFromGameMessage) - RemovedFromGameMessageOrBuilder { - private RemovedFromGameMessage() { + public static final class RemovedFromGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements RemovedFromGameMessageOrBuilder { + // Use RemovedFromGameMessage.newBuilder() to construct. + private RemovedFromGameMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code RemovedFromGameMessage.RemovedFromGameReason} - */ + private RemovedFromGameMessage(boolean noInit) {} + + private static final RemovedFromGameMessage defaultInstance; + public static RemovedFromGameMessage getDefaultInstance() { + return defaultInstance; + } + + public RemovedFromGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum RemovedFromGameReason implements com.google.protobuf.Internal.EnumLite { - /** - *
-       * No error, client wished to leave.
-       * 
- * - * removedOnRequest = 0; - */ - removedOnRequest(0), - /** - * kickedFromGame = 1; - */ - kickedFromGame(1), - /** - * gameIsFull = 2; - */ - gameIsFull(2), - /** - * gameIsRunning = 3; - */ - gameIsRunning(3), - /** - * gameTimeout = 4; - */ - gameTimeout(4), - /** - * removedStartFailed = 5; - */ - removedStartFailed(5), - /** - * gameClosed = 6; - */ - gameClosed(6), + removedOnRequest(0, 0), + kickedFromGame(1, 1), + gameIsFull(2, 2), + gameIsRunning(3, 3), + gameTimeout(4, 4), + removedStartFailed(5, 5), + gameClosed(6, 6), ; - - /** - *
-       * No error, client wished to leave.
-       * 
- * - * removedOnRequest = 0; - */ + public static final int removedOnRequest_VALUE = 0; - /** - * kickedFromGame = 1; - */ public static final int kickedFromGame_VALUE = 1; - /** - * gameIsFull = 2; - */ public static final int gameIsFull_VALUE = 2; - /** - * gameIsRunning = 3; - */ public static final int gameIsRunning_VALUE = 3; - /** - * gameTimeout = 4; - */ public static final int gameTimeout_VALUE = 4; - /** - * removedStartFailed = 5; - */ public static final int removedStartFailed_VALUE = 5; - /** - * gameClosed = 6; - */ public static final int gameClosed_VALUE = 6; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static RemovedFromGameReason valueOf(int value) { - return forNumber(value); - } - - public static RemovedFromGameReason forNumber(int value) { switch (value) { case 0: return removedOnRequest; case 1: return kickedFromGame; @@ -22271,4297 +17243,3491 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RemovedFromGameReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public RemovedFromGameReason findValueByNumber(int number) { - return RemovedFromGameReason.forNumber(number); + return RemovedFromGameReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return RemovedFromGameReasonVerifier.INSTANCE; - } - - private static final class RemovedFromGameReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RemovedFromGameReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return RemovedFromGameReason.forNumber(number) != null; - } - }; - + private final int value; - - private RemovedFromGameReason(int value) { + + private RemovedFromGameReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:RemovedFromGameMessage.RemovedFromGameReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; public static final int REMOVEDFROMGAMEREASON_FIELD_NUMBER = 2; - private int removedFromGameReason_; - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_; public boolean hasRemovedFromGameReason() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason result = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.forNumber(removedFromGameReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest : result; + return removedFromGameReason_; } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - private void setRemovedFromGameReason(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - removedFromGameReason_ = value.getNumber(); + if (!hasRemovedFromGameReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - private void clearRemovedFromGameReason() { - bitField0_ = (bitField0_ & ~0x00000002); - removedFromGameReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, removedFromGameReason_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, removedFromGameReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, removedFromGameReason_); + .computeEnumSize(2, removedFromGameReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code RemovedFromGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:RemovedFromGameMessage) - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage build() { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = new de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.removedFromGameReason_ = removedFromGameReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasRemovedFromGameReason()) { + setRemovedFromGameReason(other.getRemovedFromGameReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasRemovedFromGameReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + removedFromGameReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - @java.lang.Override + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; public boolean hasRemovedFromGameReason() { - return instance.hasRemovedFromGameReason(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { - return instance.getRemovedFromGameReason(); + return removedFromGameReason_; } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ public Builder setRemovedFromGameReason(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value) { - copyOnWrite(); - instance.setRemovedFromGameReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + removedFromGameReason_ = value; + return this; } - /** - * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - */ public Builder clearRemovedFromGameReason() { - copyOnWrite(); - instance.clearRemovedFromGameReason(); + bitField0_ = (bitField0_ & ~0x00000002); + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + return this; } - + // @@protoc_insertion_point(builder_scope:RemovedFromGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasRemovedFromGameReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage other = (de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - removedFromGameReason_ = visitor.visitInt(hasRemovedFromGameReason(), removedFromGameReason_, - other.hasRemovedFromGameReason(), other.removedFromGameReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - removedFromGameReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) - private static final de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new RemovedFromGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new RemovedFromGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) } - - public interface KickPlayerRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:KickPlayerRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface KickPlayerRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code KickPlayerRequestMessage} - */ - public static final class KickPlayerRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - KickPlayerRequestMessage, KickPlayerRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:KickPlayerRequestMessage) - KickPlayerRequestMessageOrBuilder { - private KickPlayerRequestMessage() { + public static final class KickPlayerRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements KickPlayerRequestMessageOrBuilder { + // Use KickPlayerRequestMessage.newBuilder() to construct. + private KickPlayerRequestMessage(Builder builder) { + super(builder); } + private KickPlayerRequestMessage(boolean noInit) {} + + private static final KickPlayerRequestMessage defaultInstance; + public static KickPlayerRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public KickPlayerRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code KickPlayerRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:KickPlayerRequestMessage) - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage build() { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = new de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:KickPlayerRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage other = (de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new KickPlayerRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new KickPlayerRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) } - - public interface LeaveGameRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:LeaveGameRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface LeaveGameRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); } - /** - * Protobuf type {@code LeaveGameRequestMessage} - */ - public static final class LeaveGameRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - LeaveGameRequestMessage, LeaveGameRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:LeaveGameRequestMessage) - LeaveGameRequestMessageOrBuilder { - private LeaveGameRequestMessage() { + public static final class LeaveGameRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements LeaveGameRequestMessageOrBuilder { + // Use LeaveGameRequestMessage.newBuilder() to construct. + private LeaveGameRequestMessage(Builder builder) { + super(builder); } + private LeaveGameRequestMessage(boolean noInit) {} + + private static final LeaveGameRequestMessage defaultInstance; + public static LeaveGameRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public LeaveGameRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { gameId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code LeaveGameRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:LeaveGameRequestMessage) - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage build() { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = new de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:LeaveGameRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage other = (de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new LeaveGameRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new LeaveGameRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) } - - public interface InvitePlayerToGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:InvitePlayerToGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface InvitePlayerToGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code InvitePlayerToGameMessage} - */ - public static final class InvitePlayerToGameMessage extends - com.google.protobuf.GeneratedMessageLite< - InvitePlayerToGameMessage, InvitePlayerToGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:InvitePlayerToGameMessage) - InvitePlayerToGameMessageOrBuilder { - private InvitePlayerToGameMessage() { + public static final class InvitePlayerToGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements InvitePlayerToGameMessageOrBuilder { + // Use InvitePlayerToGameMessage.newBuilder() to construct. + private InvitePlayerToGameMessage(Builder builder) { + super(builder); } + private InvitePlayerToGameMessage(boolean noInit) {} + + private static final InvitePlayerToGameMessage defaultInstance; + public static InvitePlayerToGameMessage getDefaultInstance() { + return defaultInstance; + } + + public InvitePlayerToGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code InvitePlayerToGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:InvitePlayerToGameMessage) - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage build() { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = new de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:InvitePlayerToGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage other = (de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) - private static final de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new InvitePlayerToGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new InvitePlayerToGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) } - - public interface InviteNotifyMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:InviteNotifyMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface InviteNotifyMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerIdWho = 2; - */ + + // required uint32 playerIdWho = 2; boolean hasPlayerIdWho(); - /** - * required uint32 playerIdWho = 2; - */ int getPlayerIdWho(); - - /** - * required uint32 playerIdByWhom = 3; - */ + + // required uint32 playerIdByWhom = 3; boolean hasPlayerIdByWhom(); - /** - * required uint32 playerIdByWhom = 3; - */ int getPlayerIdByWhom(); } - /** - * Protobuf type {@code InviteNotifyMessage} - */ - public static final class InviteNotifyMessage extends - com.google.protobuf.GeneratedMessageLite< - InviteNotifyMessage, InviteNotifyMessage.Builder> implements - // @@protoc_insertion_point(message_implements:InviteNotifyMessage) - InviteNotifyMessageOrBuilder { - private InviteNotifyMessage() { + public static final class InviteNotifyMessage extends + com.google.protobuf.GeneratedMessageLite + implements InviteNotifyMessageOrBuilder { + // Use InviteNotifyMessage.newBuilder() to construct. + private InviteNotifyMessage(Builder builder) { + super(builder); } + private InviteNotifyMessage(boolean noInit) {} + + private static final InviteNotifyMessage defaultInstance; + public static InviteNotifyMessage getDefaultInstance() { + return defaultInstance; + } + + public InviteNotifyMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerIdWho = 2; public static final int PLAYERIDWHO_FIELD_NUMBER = 2; private int playerIdWho_; - /** - * required uint32 playerIdWho = 2; - */ - @java.lang.Override public boolean hasPlayerIdWho() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerIdWho = 2; - */ - @java.lang.Override public int getPlayerIdWho() { return playerIdWho_; } - /** - * required uint32 playerIdWho = 2; - */ - private void setPlayerIdWho(int value) { - bitField0_ |= 0x00000002; - playerIdWho_ = value; - } - /** - * required uint32 playerIdWho = 2; - */ - private void clearPlayerIdWho() { - bitField0_ = (bitField0_ & ~0x00000002); - playerIdWho_ = 0; - } - + + // required uint32 playerIdByWhom = 3; public static final int PLAYERIDBYWHOM_FIELD_NUMBER = 3; private int playerIdByWhom_; - /** - * required uint32 playerIdByWhom = 3; - */ - @java.lang.Override public boolean hasPlayerIdByWhom() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 playerIdByWhom = 3; - */ - @java.lang.Override public int getPlayerIdByWhom() { return playerIdByWhom_; } - /** - * required uint32 playerIdByWhom = 3; - */ - private void setPlayerIdByWhom(int value) { - bitField0_ |= 0x00000004; - playerIdByWhom_ = value; - } - /** - * required uint32 playerIdByWhom = 3; - */ - private void clearPlayerIdByWhom() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + gameId_ = 0; + playerIdWho_ = 0; playerIdByWhom_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerIdWho()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerIdByWhom()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerIdWho_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, playerIdByWhom_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerIdWho_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, playerIdByWhom_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code InviteNotifyMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:InviteNotifyMessage) - de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerIdWho_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerIdByWhom_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage build() { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = new de.pokerth.protocol.ProtoBuf.InviteNotifyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerIdWho_ = playerIdWho_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerIdByWhom_ = playerIdByWhom_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerIdWho()) { + setPlayerIdWho(other.getPlayerIdWho()); + } + if (other.hasPlayerIdByWhom()) { + setPlayerIdByWhom(other.getPlayerIdByWhom()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerIdWho()) { + + return false; + } + if (!hasPlayerIdByWhom()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerIdWho_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + playerIdByWhom_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerIdWho = 2; - */ - @java.lang.Override + + // required uint32 playerIdWho = 2; + private int playerIdWho_ ; public boolean hasPlayerIdWho() { - return instance.hasPlayerIdWho(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerIdWho = 2; - */ - @java.lang.Override public int getPlayerIdWho() { - return instance.getPlayerIdWho(); + return playerIdWho_; } - /** - * required uint32 playerIdWho = 2; - */ public Builder setPlayerIdWho(int value) { - copyOnWrite(); - instance.setPlayerIdWho(value); + bitField0_ |= 0x00000002; + playerIdWho_ = value; + return this; } - /** - * required uint32 playerIdWho = 2; - */ public Builder clearPlayerIdWho() { - copyOnWrite(); - instance.clearPlayerIdWho(); + bitField0_ = (bitField0_ & ~0x00000002); + playerIdWho_ = 0; + return this; } - - /** - * required uint32 playerIdByWhom = 3; - */ - @java.lang.Override + + // required uint32 playerIdByWhom = 3; + private int playerIdByWhom_ ; public boolean hasPlayerIdByWhom() { - return instance.hasPlayerIdByWhom(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 playerIdByWhom = 3; - */ - @java.lang.Override public int getPlayerIdByWhom() { - return instance.getPlayerIdByWhom(); + return playerIdByWhom_; } - /** - * required uint32 playerIdByWhom = 3; - */ public Builder setPlayerIdByWhom(int value) { - copyOnWrite(); - instance.setPlayerIdByWhom(value); + bitField0_ |= 0x00000004; + playerIdByWhom_ = value; + return this; } - /** - * required uint32 playerIdByWhom = 3; - */ public Builder clearPlayerIdByWhom() { - copyOnWrite(); - instance.clearPlayerIdByWhom(); + bitField0_ = (bitField0_ & ~0x00000004); + playerIdByWhom_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:InviteNotifyMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.InviteNotifyMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerIdWho()) { - return null; - } - if (!hasPlayerIdByWhom()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage other = (de.pokerth.protocol.ProtoBuf.InviteNotifyMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerIdWho_ = visitor.visitInt( - hasPlayerIdWho(), playerIdWho_, - other.hasPlayerIdWho(), other.playerIdWho_); - playerIdByWhom_ = visitor.visitInt( - hasPlayerIdByWhom(), playerIdByWhom_, - other.hasPlayerIdByWhom(), other.playerIdByWhom_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerIdWho_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - playerIdByWhom_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InviteNotifyMessage) - private static final de.pokerth.protocol.ProtoBuf.InviteNotifyMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new InviteNotifyMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new InviteNotifyMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:InviteNotifyMessage) } - - public interface RejectGameInvitationMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:RejectGameInvitationMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface RejectGameInvitationMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; boolean hasMyRejectReason(); - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason(); } - /** - * Protobuf type {@code RejectGameInvitationMessage} - */ - public static final class RejectGameInvitationMessage extends - com.google.protobuf.GeneratedMessageLite< - RejectGameInvitationMessage, RejectGameInvitationMessage.Builder> implements - // @@protoc_insertion_point(message_implements:RejectGameInvitationMessage) - RejectGameInvitationMessageOrBuilder { - private RejectGameInvitationMessage() { + public static final class RejectGameInvitationMessage extends + com.google.protobuf.GeneratedMessageLite + implements RejectGameInvitationMessageOrBuilder { + // Use RejectGameInvitationMessage.newBuilder() to construct. + private RejectGameInvitationMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code RejectGameInvitationMessage.RejectGameInvReason} - */ + private RejectGameInvitationMessage(boolean noInit) {} + + private static final RejectGameInvitationMessage defaultInstance; + public static RejectGameInvitationMessage getDefaultInstance() { + return defaultInstance; + } + + public RejectGameInvitationMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum RejectGameInvReason implements com.google.protobuf.Internal.EnumLite { - /** - * rejectReasonNo = 0; - */ - rejectReasonNo(0), - /** - * rejectReasonBusy = 1; - */ - rejectReasonBusy(1), + rejectReasonNo(0, 0), + rejectReasonBusy(1, 1), ; - - /** - * rejectReasonNo = 0; - */ + public static final int rejectReasonNo_VALUE = 0; - /** - * rejectReasonBusy = 1; - */ public static final int rejectReasonBusy_VALUE = 1; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static RejectGameInvReason valueOf(int value) { - return forNumber(value); - } - - public static RejectGameInvReason forNumber(int value) { switch (value) { case 0: return rejectReasonNo; case 1: return rejectReasonBusy; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RejectGameInvReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public RejectGameInvReason findValueByNumber(int number) { - return RejectGameInvReason.forNumber(number); + return RejectGameInvReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return RejectGameInvReasonVerifier.INSTANCE; - } - - private static final class RejectGameInvReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RejectGameInvReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return RejectGameInvReason.forNumber(number) != null; - } - }; - + private final int value; - - private RejectGameInvReason(int value) { + + private RejectGameInvReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:RejectGameInvitationMessage.RejectGameInvReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; public static final int MYREJECTREASON_FIELD_NUMBER = 2; - private int myRejectReason_; - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_; public boolean hasMyRejectReason() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason result = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.forNumber(myRejectReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo : result; + return myRejectReason_; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - private void setMyRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - myRejectReason_ = value.getNumber(); + if (!hasMyRejectReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - private void clearMyRejectReason() { - bitField0_ = (bitField0_ & ~0x00000002); - myRejectReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, myRejectReason_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, myRejectReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, myRejectReason_); + .computeEnumSize(2, myRejectReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code RejectGameInvitationMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:RejectGameInvitationMessage) - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage build() { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = new de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.myRejectReason_ = myRejectReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasMyRejectReason()) { + setMyRejectReason(other.getMyRejectReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasMyRejectReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + myRejectReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - @java.lang.Override + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; public boolean hasMyRejectReason() { - return instance.hasMyRejectReason(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { - return instance.getMyRejectReason(); + return myRejectReason_; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ public Builder setMyRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - copyOnWrite(); - instance.setMyRejectReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + myRejectReason_ = value; + return this; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - */ public Builder clearMyRejectReason() { - copyOnWrite(); - instance.clearMyRejectReason(); + bitField0_ = (bitField0_ & ~0x00000002); + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + return this; } - + // @@protoc_insertion_point(builder_scope:RejectGameInvitationMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasMyRejectReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage other = (de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - myRejectReason_ = visitor.visitInt(hasMyRejectReason(), myRejectReason_, - other.hasMyRejectReason(), other.myRejectReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - myRejectReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) - private static final de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new RejectGameInvitationMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new RejectGameInvitationMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) } - - public interface RejectInvNotifyMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:RejectInvNotifyMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface RejectInvNotifyMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; boolean hasPlayerRejectReason(); - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason(); } - /** - * Protobuf type {@code RejectInvNotifyMessage} - */ - public static final class RejectInvNotifyMessage extends - com.google.protobuf.GeneratedMessageLite< - RejectInvNotifyMessage, RejectInvNotifyMessage.Builder> implements - // @@protoc_insertion_point(message_implements:RejectInvNotifyMessage) - RejectInvNotifyMessageOrBuilder { - private RejectInvNotifyMessage() { + public static final class RejectInvNotifyMessage extends + com.google.protobuf.GeneratedMessageLite + implements RejectInvNotifyMessageOrBuilder { + // Use RejectInvNotifyMessage.newBuilder() to construct. + private RejectInvNotifyMessage(Builder builder) { + super(builder); } + private RejectInvNotifyMessage(boolean noInit) {} + + private static final RejectInvNotifyMessage defaultInstance; + public static RejectInvNotifyMessage getDefaultInstance() { + return defaultInstance; + } + + public RejectInvNotifyMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; public static final int PLAYERREJECTREASON_FIELD_NUMBER = 3; - private int playerRejectReason_; - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_; public boolean hasPlayerRejectReason() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason result = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.forNumber(playerRejectReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo : result; + return playerRejectReason_; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - private void setPlayerRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - playerRejectReason_ = value.getNumber(); + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerRejectReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - private void clearPlayerRejectReason() { - bitField0_ = (bitField0_ & ~0x00000004); - playerRejectReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, playerRejectReason_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, playerRejectReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, playerRejectReason_); + .computeEnumSize(3, playerRejectReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code RejectInvNotifyMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:RejectInvNotifyMessage) - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage build() { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = new de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerRejectReason_ = playerRejectReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerRejectReason()) { + setPlayerRejectReason(other.getPlayerRejectReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerRejectReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + playerRejectReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - @java.lang.Override + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; public boolean hasPlayerRejectReason() { - return instance.hasPlayerRejectReason(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { - return instance.getPlayerRejectReason(); + return playerRejectReason_; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ public Builder setPlayerRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - copyOnWrite(); - instance.setPlayerRejectReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + playerRejectReason_ = value; + return this; } - /** - * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - */ public Builder clearPlayerRejectReason() { - copyOnWrite(); - instance.clearPlayerRejectReason(); + bitField0_ = (bitField0_ & ~0x00000004); + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + return this; } - + // @@protoc_insertion_point(builder_scope:RejectInvNotifyMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasPlayerRejectReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage other = (de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - playerRejectReason_ = visitor.visitInt(hasPlayerRejectReason(), playerRejectReason_, - other.hasPlayerRejectReason(), other.playerRejectReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - playerRejectReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) - private static final de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new RejectInvNotifyMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new RejectInvNotifyMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) } - - public interface StartEventMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:StartEventMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface StartEventMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ + + // required .StartEventMessage.StartEventType startEventType = 2; boolean hasStartEventType(); - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType(); - - /** - * optional bool fillWithComputerPlayers = 3; - */ + + // optional bool fillWithComputerPlayers = 3; boolean hasFillWithComputerPlayers(); - /** - * optional bool fillWithComputerPlayers = 3; - */ boolean getFillWithComputerPlayers(); } - /** - * Protobuf type {@code StartEventMessage} - */ - public static final class StartEventMessage extends - com.google.protobuf.GeneratedMessageLite< - StartEventMessage, StartEventMessage.Builder> implements - // @@protoc_insertion_point(message_implements:StartEventMessage) - StartEventMessageOrBuilder { - private StartEventMessage() { + public static final class StartEventMessage extends + com.google.protobuf.GeneratedMessageLite + implements StartEventMessageOrBuilder { + // Use StartEventMessage.newBuilder() to construct. + private StartEventMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code StartEventMessage.StartEventType} - */ + private StartEventMessage(boolean noInit) {} + + private static final StartEventMessage defaultInstance; + public static StartEventMessage getDefaultInstance() { + return defaultInstance; + } + + public StartEventMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum StartEventType implements com.google.protobuf.Internal.EnumLite { - /** - * startEvent = 0; - */ - startEvent(0), - /** - * rejoinEvent = 1; - */ - rejoinEvent(1), + startEvent(0, 0), + rejoinEvent(1, 1), ; - - /** - * startEvent = 0; - */ + public static final int startEvent_VALUE = 0; - /** - * rejoinEvent = 1; - */ public static final int rejoinEvent_VALUE = 1; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static StartEventType valueOf(int value) { - return forNumber(value); - } - - public static StartEventType forNumber(int value) { switch (value) { case 0: return startEvent; case 1: return rejoinEvent; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StartEventType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public StartEventType findValueByNumber(int number) { - return StartEventType.forNumber(number); + return StartEventType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return StartEventTypeVerifier.INSTANCE; - } - - private static final class StartEventTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new StartEventTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return StartEventType.forNumber(number) != null; - } - }; - + private final int value; - - private StartEventType(int value) { + + private StartEventType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:StartEventMessage.StartEventType) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .StartEventMessage.StartEventType startEventType = 2; public static final int STARTEVENTTYPE_FIELD_NUMBER = 2; - private int startEventType_; - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_; public boolean hasStartEventType() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { - de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType result = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.forNumber(startEventType_); - return result == null ? de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent : result; + return startEventType_; } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - private void setStartEventType(de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - startEventType_ = value.getNumber(); - } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - private void clearStartEventType() { - bitField0_ = (bitField0_ & ~0x00000002); - startEventType_ = 0; - } - + + // optional bool fillWithComputerPlayers = 3; public static final int FILLWITHCOMPUTERPLAYERS_FIELD_NUMBER = 3; private boolean fillWithComputerPlayers_; - /** - * optional bool fillWithComputerPlayers = 3; - */ - @java.lang.Override public boolean hasFillWithComputerPlayers() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool fillWithComputerPlayers = 3; - */ - @java.lang.Override public boolean getFillWithComputerPlayers() { return fillWithComputerPlayers_; } - /** - * optional bool fillWithComputerPlayers = 3; - */ - private void setFillWithComputerPlayers(boolean value) { - bitField0_ |= 0x00000004; - fillWithComputerPlayers_ = value; - } - /** - * optional bool fillWithComputerPlayers = 3; - */ - private void clearFillWithComputerPlayers() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + gameId_ = 0; + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; fillWithComputerPlayers_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartEventType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, startEventType_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, startEventType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, fillWithComputerPlayers_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, startEventType_); + .computeEnumSize(2, startEventType_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, fillWithComputerPlayers_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code StartEventMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartEventMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:StartEventMessage) - de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.StartEventMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + bitField0_ = (bitField0_ & ~0x00000002); + fillWithComputerPlayers_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage build() { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartEventMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = new de.pokerth.protocol.ProtoBuf.StartEventMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startEventType_ = startEventType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.fillWithComputerPlayers_ = fillWithComputerPlayers_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartEventMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartEventType()) { + setStartEventType(other.getStartEventType()); + } + if (other.hasFillWithComputerPlayers()) { + setFillWithComputerPlayers(other.getFillWithComputerPlayers()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartEventType()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + startEventType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + fillWithComputerPlayers_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - @java.lang.Override + + // required .StartEventMessage.StartEventType startEventType = 2; + private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; public boolean hasStartEventType() { - return instance.hasStartEventType(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { - return instance.getStartEventType(); + return startEventType_; } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ public Builder setStartEventType(de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value) { - copyOnWrite(); - instance.setStartEventType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + startEventType_ = value; + return this; } - /** - * required .StartEventMessage.StartEventType startEventType = 2; - */ public Builder clearStartEventType() { - copyOnWrite(); - instance.clearStartEventType(); + bitField0_ = (bitField0_ & ~0x00000002); + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + return this; } - - /** - * optional bool fillWithComputerPlayers = 3; - */ - @java.lang.Override + + // optional bool fillWithComputerPlayers = 3; + private boolean fillWithComputerPlayers_ ; public boolean hasFillWithComputerPlayers() { - return instance.hasFillWithComputerPlayers(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bool fillWithComputerPlayers = 3; - */ - @java.lang.Override public boolean getFillWithComputerPlayers() { - return instance.getFillWithComputerPlayers(); + return fillWithComputerPlayers_; } - /** - * optional bool fillWithComputerPlayers = 3; - */ public Builder setFillWithComputerPlayers(boolean value) { - copyOnWrite(); - instance.setFillWithComputerPlayers(value); + bitField0_ |= 0x00000004; + fillWithComputerPlayers_ = value; + return this; } - /** - * optional bool fillWithComputerPlayers = 3; - */ public Builder clearFillWithComputerPlayers() { - copyOnWrite(); - instance.clearFillWithComputerPlayers(); + bitField0_ = (bitField0_ & ~0x00000004); + fillWithComputerPlayers_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:StartEventMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.StartEventMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasStartEventType()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.StartEventMessage other = (de.pokerth.protocol.ProtoBuf.StartEventMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - startEventType_ = visitor.visitInt(hasStartEventType(), startEventType_, - other.hasStartEventType(), other.startEventType_); - fillWithComputerPlayers_ = visitor.visitBoolean( - hasFillWithComputerPlayers(), fillWithComputerPlayers_, - other.hasFillWithComputerPlayers(), other.fillWithComputerPlayers_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - startEventType_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - fillWithComputerPlayers_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.StartEventMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:StartEventMessage) - private static final de.pokerth.protocol.ProtoBuf.StartEventMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new StartEventMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.StartEventMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new StartEventMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:StartEventMessage) } - - public interface StartEventAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:StartEventAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface StartEventAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); } - /** - * Protobuf type {@code StartEventAckMessage} - */ - public static final class StartEventAckMessage extends - com.google.protobuf.GeneratedMessageLite< - StartEventAckMessage, StartEventAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:StartEventAckMessage) - StartEventAckMessageOrBuilder { - private StartEventAckMessage() { + public static final class StartEventAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements StartEventAckMessageOrBuilder { + // Use StartEventAckMessage.newBuilder() to construct. + private StartEventAckMessage(Builder builder) { + super(builder); } + private StartEventAckMessage(boolean noInit) {} + + private static final StartEventAckMessage defaultInstance; + public static StartEventAckMessage getDefaultInstance() { + return defaultInstance; + } + + public StartEventAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { gameId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code StartEventAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartEventAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:StartEventAckMessage) - de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage build() { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartEventAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = new de.pokerth.protocol.ProtoBuf.StartEventAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartEventAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:StartEventAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.StartEventAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.StartEventAckMessage other = (de.pokerth.protocol.ProtoBuf.StartEventAckMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.StartEventAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:StartEventAckMessage) - private static final de.pokerth.protocol.ProtoBuf.StartEventAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new StartEventAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new StartEventAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:StartEventAckMessage) } - - public interface GameStartInitialMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameStartInitialMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameStartInitialMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 startDealerPlayerId = 2; - */ + + // required uint32 startDealerPlayerId = 2; boolean hasStartDealerPlayerId(); - /** - * required uint32 startDealerPlayerId = 2; - */ int getStartDealerPlayerId(); - - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ + + // repeated uint32 playerSeats = 3 [packed = true]; java.util.List getPlayerSeatsList(); - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ int getPlayerSeatsCount(); - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ int getPlayerSeats(int index); } - /** - * Protobuf type {@code GameStartInitialMessage} - */ - public static final class GameStartInitialMessage extends - com.google.protobuf.GeneratedMessageLite< - GameStartInitialMessage, GameStartInitialMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameStartInitialMessage) - GameStartInitialMessageOrBuilder { - private GameStartInitialMessage() { - playerSeats_ = emptyIntList(); + public static final class GameStartInitialMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameStartInitialMessageOrBuilder { + // Use GameStartInitialMessage.newBuilder() to construct. + private GameStartInitialMessage(Builder builder) { + super(builder); } + private GameStartInitialMessage(boolean noInit) {} + + private static final GameStartInitialMessage defaultInstance; + public static GameStartInitialMessage getDefaultInstance() { + return defaultInstance; + } + + public GameStartInitialMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 startDealerPlayerId = 2; public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; private int startDealerPlayerId_; - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public int getStartDealerPlayerId() { return startDealerPlayerId_; } - /** - * required uint32 startDealerPlayerId = 2; - */ - private void setStartDealerPlayerId(int value) { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = value; - } - /** - * required uint32 startDealerPlayerId = 2; - */ - private void clearStartDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - startDealerPlayerId_ = 0; - } - + + // repeated uint32 playerSeats = 3 [packed = true]; public static final int PLAYERSEATS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.IntList playerSeats_; - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override + private java.util.List playerSeats_; public java.util.List getPlayerSeatsList() { return playerSeats_; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override public int getPlayerSeatsCount() { return playerSeats_.size(); } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override public int getPlayerSeats(int index) { - return playerSeats_.getInt(index); + return playerSeats_.get(index); } private int playerSeatsMemoizedSerializedSize = -1; - private void ensurePlayerSeatsIsMutable() { - if (!playerSeats_.isModifiable()) { - playerSeats_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerSeats_); - } + + private void initFields() { + gameId_ = 0; + startDealerPlayerId_ = 0; + playerSeats_ = java.util.Collections.emptyList();; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - private void setPlayerSeats( - int index, int value) { - ensurePlayerSeatsIsMutable(); - playerSeats_.setInt(index, value); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartDealerPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - private void addPlayerSeats(int value) { - ensurePlayerSeatsIsMutable(); - playerSeats_.addInt(value); - } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - private void addAllPlayerSeats( - java.lang.Iterable values) { - ensurePlayerSeatsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, playerSeats_); - } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - private void clearPlayerSeats() { - playerSeats_ = emptyIntList(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, startDealerPlayerId_); } if (getPlayerSeatsList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(playerSeatsMemoizedSerializedSize); + output.writeRawVarint32(26); + output.writeRawVarint32(playerSeatsMemoizedSerializedSize); } for (int i = 0; i < playerSeats_.size(); i++) { - output.writeUInt32NoTag(playerSeats_.getInt(i)); + output.writeUInt32NoTag(playerSeats_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, startDealerPlayerId_); } @@ -26569,7 +20735,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < playerSeats_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerSeats_.getInt(i)); + .computeUInt32SizeNoTag(playerSeats_.get(i)); } size += dataSize; if (!getPlayerSeatsList().isEmpty()) { @@ -26579,1116 +20745,854 @@ public final class ProtoBuf { } playerSeatsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameStartInitialMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameStartInitialMessage) - de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startDealerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerSeats_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage build() { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = new de.pokerth.protocol.ProtoBuf.GameStartInitialMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startDealerPlayerId_ = startDealerPlayerId_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + playerSeats_ = java.util.Collections.unmodifiableList(playerSeats_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.playerSeats_ = playerSeats_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartDealerPlayerId()) { + setStartDealerPlayerId(other.getStartDealerPlayerId()); + } + if (!other.playerSeats_.isEmpty()) { + if (playerSeats_.isEmpty()) { + playerSeats_ = other.playerSeats_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePlayerSeatsIsMutable(); + playerSeats_.addAll(other.playerSeats_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartDealerPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = input.readUInt32(); + break; + } + case 24: { + ensurePlayerSeatsIsMutable(); + playerSeats_.add(input.readUInt32()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addPlayerSeats(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override + + // required uint32 startDealerPlayerId = 2; + private int startDealerPlayerId_ ; public boolean hasStartDealerPlayerId() { - return instance.hasStartDealerPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public int getStartDealerPlayerId() { - return instance.getStartDealerPlayerId(); + return startDealerPlayerId_; } - /** - * required uint32 startDealerPlayerId = 2; - */ public Builder setStartDealerPlayerId(int value) { - copyOnWrite(); - instance.setStartDealerPlayerId(value); + bitField0_ |= 0x00000002; + startDealerPlayerId_ = value; + return this; } - /** - * required uint32 startDealerPlayerId = 2; - */ public Builder clearStartDealerPlayerId() { - copyOnWrite(); - instance.clearStartDealerPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + startDealerPlayerId_ = 0; + return this; } - - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override + + // repeated uint32 playerSeats = 3 [packed = true]; + private java.util.List playerSeats_ = java.util.Collections.emptyList();; + private void ensurePlayerSeatsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + playerSeats_ = new java.util.ArrayList(playerSeats_); + bitField0_ |= 0x00000004; + } + } public java.util.List getPlayerSeatsList() { - return java.util.Collections.unmodifiableList( - instance.getPlayerSeatsList()); + return java.util.Collections.unmodifiableList(playerSeats_); } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override public int getPlayerSeatsCount() { - return instance.getPlayerSeatsCount(); + return playerSeats_.size(); } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ - @java.lang.Override public int getPlayerSeats(int index) { - return instance.getPlayerSeats(index); + return playerSeats_.get(index); } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ public Builder setPlayerSeats( int index, int value) { - copyOnWrite(); - instance.setPlayerSeats(index, value); + ensurePlayerSeatsIsMutable(); + playerSeats_.set(index, value); + return this; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ public Builder addPlayerSeats(int value) { - copyOnWrite(); - instance.addPlayerSeats(value); + ensurePlayerSeatsIsMutable(); + playerSeats_.add(value); + return this; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ public Builder addAllPlayerSeats( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPlayerSeats(values); + ensurePlayerSeatsIsMutable(); + super.addAll(values, playerSeats_); + return this; } - /** - * repeated uint32 playerSeats = 3 [packed = true]; - */ public Builder clearPlayerSeats() { - copyOnWrite(); - instance.clearPlayerSeats(); + playerSeats_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + return this; } - + // @@protoc_insertion_point(builder_scope:GameStartInitialMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameStartInitialMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasStartDealerPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - playerSeats_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage other = (de.pokerth.protocol.ProtoBuf.GameStartInitialMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - startDealerPlayerId_ = visitor.visitInt( - hasStartDealerPlayerId(), startDealerPlayerId_, - other.hasStartDealerPlayerId(), other.startDealerPlayerId_); - playerSeats_= visitor.visitIntList(playerSeats_, other.playerSeats_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = input.readUInt32(); - break; - } - case 24: { - if (!playerSeats_.isModifiable()) { - playerSeats_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerSeats_); - } - playerSeats_.addInt(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!playerSeats_.isModifiable() && input.getBytesUntilLimit() > 0) { - playerSeats_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerSeats_); - } - while (input.getBytesUntilLimit() > 0) { - playerSeats_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameStartInitialMessage) - private static final de.pokerth.protocol.ProtoBuf.GameStartInitialMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameStartInitialMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameStartInitialMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameStartInitialMessage) } - - public interface GameStartRejoinMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameStartRejoinMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface GameStartRejoinMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 startDealerPlayerId = 2; - */ + + // required uint32 startDealerPlayerId = 2; boolean hasStartDealerPlayerId(); - /** - * required uint32 startDealerPlayerId = 2; - */ int getStartDealerPlayerId(); - - /** - * required uint32 handNum = 3; - */ + + // required uint32 handNum = 3; boolean hasHandNum(); - /** - * required uint32 handNum = 3; - */ int getHandNum(); - - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; java.util.List getRejoinPlayerDataList(); - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index); - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ int getRejoinPlayerDataCount(); } - /** - * Protobuf type {@code GameStartRejoinMessage} - */ - public static final class GameStartRejoinMessage extends - com.google.protobuf.GeneratedMessageLite< - GameStartRejoinMessage, GameStartRejoinMessage.Builder> implements - // @@protoc_insertion_point(message_implements:GameStartRejoinMessage) - GameStartRejoinMessageOrBuilder { - private GameStartRejoinMessage() { - rejoinPlayerData_ = emptyProtobufList(); + public static final class GameStartRejoinMessage extends + com.google.protobuf.GeneratedMessageLite + implements GameStartRejoinMessageOrBuilder { + // Use GameStartRejoinMessage.newBuilder() to construct. + private GameStartRejoinMessage(Builder builder) { + super(builder); } - public interface RejoinPlayerDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:GameStartRejoinMessage.RejoinPlayerData) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 playerId = 1; - */ + private GameStartRejoinMessage(boolean noInit) {} + + private static final GameStartRejoinMessage defaultInstance; + public static GameStartRejoinMessage getDefaultInstance() { + return defaultInstance; + } + + public GameStartRejoinMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public interface RejoinPlayerDataOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 playerId = 1; boolean hasPlayerId(); - /** - * required uint32 playerId = 1; - */ int getPlayerId(); - - /** - * required uint32 playerMoney = 2; - */ + + // required uint32 playerMoney = 2; boolean hasPlayerMoney(); - /** - * required uint32 playerMoney = 2; - */ int getPlayerMoney(); } - /** - * Protobuf type {@code GameStartRejoinMessage.RejoinPlayerData} - */ - public static final class RejoinPlayerData extends - com.google.protobuf.GeneratedMessageLite< - RejoinPlayerData, RejoinPlayerData.Builder> implements - // @@protoc_insertion_point(message_implements:GameStartRejoinMessage.RejoinPlayerData) - RejoinPlayerDataOrBuilder { - private RejoinPlayerData() { + public static final class RejoinPlayerData extends + com.google.protobuf.GeneratedMessageLite + implements RejoinPlayerDataOrBuilder { + // Use RejoinPlayerData.newBuilder() to construct. + private RejoinPlayerData(Builder builder) { + super(builder); } + private RejoinPlayerData(boolean noInit) {} + + private static final RejoinPlayerData defaultInstance; + public static RejoinPlayerData getDefaultInstance() { + return defaultInstance; + } + + public RejoinPlayerData getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 playerId = 1; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 1; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - } - /** - * required uint32 playerId = 1; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - } - + + // required uint32 playerMoney = 2; public static final int PLAYERMONEY_FIELD_NUMBER = 2; private int playerMoney_; - /** - * required uint32 playerMoney = 2; - */ - @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerMoney = 2; - */ - @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - /** - * required uint32 playerMoney = 2; - */ - private void setPlayerMoney(int value) { - bitField0_ |= 0x00000002; - playerMoney_ = value; - } - /** - * required uint32 playerMoney = 2; - */ - private void clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + playerId_ = 0; playerMoney_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerMoney_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerMoney_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameStartRejoinMessage.RejoinPlayerData} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, Builder> implements - // @@protoc_insertion_point(builder_implements:GameStartRejoinMessage.RejoinPlayerData) - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, Builder> + implements de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 playerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData build() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerMoney_ = playerMoney_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerMoney_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 1; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000001; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 1; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + return this; } - - /** - * required uint32 playerMoney = 2; - */ - @java.lang.Override + + // required uint32 playerMoney = 2; + private int playerMoney_ ; public boolean hasPlayerMoney() { - return instance.hasPlayerMoney(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerMoney = 2; - */ - @java.lang.Override public int getPlayerMoney() { - return instance.getPlayerMoney(); + return playerMoney_; } - /** - * required uint32 playerMoney = 2; - */ public Builder setPlayerMoney(int value) { - copyOnWrite(); - instance.setPlayerMoney(value); + bitField0_ |= 0x00000002; + playerMoney_ = value; + return this; } - /** - * required uint32 playerMoney = 2; - */ public Builder clearPlayerMoney() { - copyOnWrite(); - instance.clearPlayerMoney(); + bitField0_ = (bitField0_ & ~0x00000002); + playerMoney_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:GameStartRejoinMessage.RejoinPlayerData) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerId()) { - return null; - } - if (!hasPlayerMoney()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData other = (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData) arg1; - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - playerMoney_ = visitor.visitInt( - hasPlayerMoney(), playerMoney_, - other.hasPlayerMoney(), other.playerMoney_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerMoney_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) - private static final de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new RejoinPlayerData(); - } - - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new RejoinPlayerData(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 startDealerPlayerId = 2; public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; private int startDealerPlayerId_; - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public int getStartDealerPlayerId() { return startDealerPlayerId_; } - /** - * required uint32 startDealerPlayerId = 2; - */ - private void setStartDealerPlayerId(int value) { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = value; - } - /** - * required uint32 startDealerPlayerId = 2; - */ - private void clearStartDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - startDealerPlayerId_ = 0; - } - + + // required uint32 handNum = 3; public static final int HANDNUM_FIELD_NUMBER = 3; private int handNum_; - /** - * required uint32 handNum = 3; - */ - @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 handNum = 3; - */ - @java.lang.Override public int getHandNum() { return handNum_; } - /** - * required uint32 handNum = 3; - */ - private void setHandNum(int value) { - bitField0_ |= 0x00000004; - handNum_ = value; - } - /** - * required uint32 handNum = 3; - */ - private void clearHandNum() { - bitField0_ = (bitField0_ & ~0x00000004); - handNum_ = 0; - } - + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; public static final int REJOINPLAYERDATA_FIELD_NUMBER = 4; - private com.google.protobuf.Internal.ProtobufList rejoinPlayerData_; - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override + private java.util.List rejoinPlayerData_; public java.util.List getRejoinPlayerDataList() { return rejoinPlayerData_; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public java.util.List getRejoinPlayerDataOrBuilderList() { return rejoinPlayerData_; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override public int getRejoinPlayerDataCount() { return rejoinPlayerData_.size(); } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index) { return rejoinPlayerData_.get(index); } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder getRejoinPlayerDataOrBuilder( int index) { return rejoinPlayerData_.get(index); } - private void ensureRejoinPlayerDataIsMutable() { - if (!rejoinPlayerData_.isModifiable()) { - rejoinPlayerData_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rejoinPlayerData_); - } + + private void initFields() { + gameId_ = 0; + startDealerPlayerId_ = 0; + handNum_ = 0; + rejoinPlayerData_ = java.util.Collections.emptyList(); } - - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void setRejoinPlayerData( - int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.set(index, value); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void setRejoinPlayerData( - int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.set(index, builderForValue.build()); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void addRejoinPlayerData(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); + if (!hasStartDealerPlayerId()) { + memoizedIsInitialized = 0; + return false; } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(value); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void addRejoinPlayerData( - int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); + if (!hasHandNum()) { + memoizedIsInitialized = 0; + return false; } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(index, value); + for (int i = 0; i < getRejoinPlayerDataCount(); i++) { + if (!getRejoinPlayerData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void addRejoinPlayerData( - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(builderForValue.build()); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void addRejoinPlayerData( - int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(index, builderForValue.build()); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void addAllRejoinPlayerData( - java.lang.Iterable values) { - ensureRejoinPlayerDataIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, rejoinPlayerData_); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void clearRejoinPlayerData() { - rejoinPlayerData_ = emptyProtobufList(); - } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - private void removeRejoinPlayerData(int index) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.remove(index); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, startDealerPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, handNum_); } for (int i = 0; i < rejoinPlayerData_.size(); i++) { output.writeMessage(4, rejoinPlayerData_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, startDealerPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, handNum_); } @@ -27696,1268 +21600,962 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rejoinPlayerData_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code GameStartRejoinMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:GameStartRejoinMessage) - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startDealerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + handNum_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + rejoinPlayerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage build() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startDealerPlayerId_ = startDealerPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.handNum_ = handNum_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + rejoinPlayerData_ = java.util.Collections.unmodifiableList(rejoinPlayerData_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.rejoinPlayerData_ = rejoinPlayerData_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartDealerPlayerId()) { + setStartDealerPlayerId(other.getStartDealerPlayerId()); + } + if (other.hasHandNum()) { + setHandNum(other.getHandNum()); + } + if (!other.rejoinPlayerData_.isEmpty()) { + if (rejoinPlayerData_.isEmpty()) { + rejoinPlayerData_ = other.rejoinPlayerData_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.addAll(other.rejoinPlayerData_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartDealerPlayerId()) { + + return false; + } + if (!hasHandNum()) { + + return false; + } + for (int i = 0; i < getRejoinPlayerDataCount(); i++) { + if (!getRejoinPlayerData(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + handNum_ = input.readUInt32(); + break; + } + case 34: { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addRejoinPlayerData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override + + // required uint32 startDealerPlayerId = 2; + private int startDealerPlayerId_ ; public boolean hasStartDealerPlayerId() { - return instance.hasStartDealerPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 startDealerPlayerId = 2; - */ - @java.lang.Override public int getStartDealerPlayerId() { - return instance.getStartDealerPlayerId(); + return startDealerPlayerId_; } - /** - * required uint32 startDealerPlayerId = 2; - */ public Builder setStartDealerPlayerId(int value) { - copyOnWrite(); - instance.setStartDealerPlayerId(value); + bitField0_ |= 0x00000002; + startDealerPlayerId_ = value; + return this; } - /** - * required uint32 startDealerPlayerId = 2; - */ public Builder clearStartDealerPlayerId() { - copyOnWrite(); - instance.clearStartDealerPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + startDealerPlayerId_ = 0; + return this; } - - /** - * required uint32 handNum = 3; - */ - @java.lang.Override + + // required uint32 handNum = 3; + private int handNum_ ; public boolean hasHandNum() { - return instance.hasHandNum(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 handNum = 3; - */ - @java.lang.Override public int getHandNum() { - return instance.getHandNum(); + return handNum_; } - /** - * required uint32 handNum = 3; - */ public Builder setHandNum(int value) { - copyOnWrite(); - instance.setHandNum(value); + bitField0_ |= 0x00000004; + handNum_ = value; + return this; } - /** - * required uint32 handNum = 3; - */ public Builder clearHandNum() { - copyOnWrite(); - instance.clearHandNum(); + bitField0_ = (bitField0_ & ~0x00000004); + handNum_ = 0; + return this; } - - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + private java.util.List rejoinPlayerData_ = + java.util.Collections.emptyList(); + private void ensureRejoinPlayerDataIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + rejoinPlayerData_ = new java.util.ArrayList(rejoinPlayerData_); + bitField0_ |= 0x00000008; + } + } + public java.util.List getRejoinPlayerDataList() { - return java.util.Collections.unmodifiableList( - instance.getRejoinPlayerDataList()); + return java.util.Collections.unmodifiableList(rejoinPlayerData_); } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override public int getRejoinPlayerDataCount() { - return instance.getRejoinPlayerDataCount(); - }/** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ - @java.lang.Override + return rejoinPlayerData_.size(); + } public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index) { - return instance.getRejoinPlayerData(index); + return rejoinPlayerData_.get(index); } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder setRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - copyOnWrite(); - instance.setRejoinPlayerData(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.set(index, value); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder setRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - copyOnWrite(); - instance.setRejoinPlayerData(index, builderForValue); + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.set(index, builderForValue.build()); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder addRejoinPlayerData(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - copyOnWrite(); - instance.addRejoinPlayerData(value); + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(value); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder addRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - copyOnWrite(); - instance.addRejoinPlayerData(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(index, value); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder addRejoinPlayerData( de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - copyOnWrite(); - instance.addRejoinPlayerData(builderForValue); + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(builderForValue.build()); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder addRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - copyOnWrite(); - instance.addRejoinPlayerData(index, builderForValue); + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(index, builderForValue.build()); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder addAllRejoinPlayerData( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllRejoinPlayerData(values); + ensureRejoinPlayerDataIsMutable(); + super.addAll(values, rejoinPlayerData_); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder clearRejoinPlayerData() { - copyOnWrite(); - instance.clearRejoinPlayerData(); + rejoinPlayerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + return this; } - /** - * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - */ public Builder removeRejoinPlayerData(int index) { - copyOnWrite(); - instance.removeRejoinPlayerData(index); + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.remove(index); + return this; } - + // @@protoc_insertion_point(builder_scope:GameStartRejoinMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasStartDealerPlayerId()) { - return null; - } - if (!hasHandNum()) { - return null; - } - for (int i = 0; i < getRejoinPlayerDataCount(); i++) { - if (!getRejoinPlayerData(i).isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - rejoinPlayerData_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage other = (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - startDealerPlayerId_ = visitor.visitInt( - hasStartDealerPlayerId(), startDealerPlayerId_, - other.hasStartDealerPlayerId(), other.startDealerPlayerId_); - handNum_ = visitor.visitInt( - hasHandNum(), handNum_, - other.hasHandNum(), other.handNum_); - rejoinPlayerData_= visitor.visitList(rejoinPlayerData_, other.rejoinPlayerData_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - handNum_ = input.readUInt32(); - break; - } - case 34: { - if (!rejoinPlayerData_.isModifiable()) { - rejoinPlayerData_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(rejoinPlayerData_); - } - rejoinPlayerData_.add( - input.readMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) - private static final de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new GameStartRejoinMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new GameStartRejoinMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) } - - public interface HandStartMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:HandStartMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface HandStartMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ + + // optional .HandStartMessage.PlainCards plainCards = 2; boolean hasPlainCards(); - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards(); - - /** - * optional bytes encryptedCards = 3; - */ + + // optional bytes encryptedCards = 3; boolean hasEncryptedCards(); - /** - * optional bytes encryptedCards = 3; - */ com.google.protobuf.ByteString getEncryptedCards(); - - /** - * required uint32 smallBlind = 4; - */ + + // required uint32 smallBlind = 4; boolean hasSmallBlind(); - /** - * required uint32 smallBlind = 4; - */ int getSmallBlind(); - - /** - * repeated .NetPlayerState seatStates = 5; - */ + + // repeated .NetPlayerState seatStates = 5; java.util.List getSeatStatesList(); - /** - * repeated .NetPlayerState seatStates = 5; - */ int getSeatStatesCount(); - /** - * repeated .NetPlayerState seatStates = 5; - */ de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index); - - /** - * optional uint32 dealerPlayerId = 6; - */ + + // optional uint32 dealerPlayerId = 6; boolean hasDealerPlayerId(); - /** - * optional uint32 dealerPlayerId = 6; - */ int getDealerPlayerId(); } - /** - * Protobuf type {@code HandStartMessage} - */ - public static final class HandStartMessage extends - com.google.protobuf.GeneratedMessageLite< - HandStartMessage, HandStartMessage.Builder> implements - // @@protoc_insertion_point(message_implements:HandStartMessage) - HandStartMessageOrBuilder { - private HandStartMessage() { - encryptedCards_ = com.google.protobuf.ByteString.EMPTY; - seatStates_ = emptyIntList(); + public static final class HandStartMessage extends + com.google.protobuf.GeneratedMessageLite + implements HandStartMessageOrBuilder { + // Use HandStartMessage.newBuilder() to construct. + private HandStartMessage(Builder builder) { + super(builder); } - public interface PlainCardsOrBuilder extends - // @@protoc_insertion_point(interface_extends:HandStartMessage.PlainCards) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 plainCard1 = 1; - */ + private HandStartMessage(boolean noInit) {} + + private static final HandStartMessage defaultInstance; + public static HandStartMessage getDefaultInstance() { + return defaultInstance; + } + + public HandStartMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public interface PlainCardsOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 plainCard1 = 1; boolean hasPlainCard1(); - /** - * required uint32 plainCard1 = 1; - */ int getPlainCard1(); - - /** - * required uint32 plainCard2 = 2; - */ + + // required uint32 plainCard2 = 2; boolean hasPlainCard2(); - /** - * required uint32 plainCard2 = 2; - */ int getPlainCard2(); } - /** - * Protobuf type {@code HandStartMessage.PlainCards} - */ - public static final class PlainCards extends - com.google.protobuf.GeneratedMessageLite< - PlainCards, PlainCards.Builder> implements - // @@protoc_insertion_point(message_implements:HandStartMessage.PlainCards) - PlainCardsOrBuilder { - private PlainCards() { + public static final class PlainCards extends + com.google.protobuf.GeneratedMessageLite + implements PlainCardsOrBuilder { + // Use PlainCards.newBuilder() to construct. + private PlainCards(Builder builder) { + super(builder); } + private PlainCards(boolean noInit) {} + + private static final PlainCards defaultInstance; + public static PlainCards getDefaultInstance() { + return defaultInstance; + } + + public PlainCards getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 plainCard1 = 1; public static final int PLAINCARD1_FIELD_NUMBER = 1; private int plainCard1_; - /** - * required uint32 plainCard1 = 1; - */ - @java.lang.Override public boolean hasPlainCard1() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 plainCard1 = 1; - */ - @java.lang.Override public int getPlainCard1() { return plainCard1_; } - /** - * required uint32 plainCard1 = 1; - */ - private void setPlainCard1(int value) { - bitField0_ |= 0x00000001; - plainCard1_ = value; - } - /** - * required uint32 plainCard1 = 1; - */ - private void clearPlainCard1() { - bitField0_ = (bitField0_ & ~0x00000001); - plainCard1_ = 0; - } - + + // required uint32 plainCard2 = 2; public static final int PLAINCARD2_FIELD_NUMBER = 2; private int plainCard2_; - /** - * required uint32 plainCard2 = 2; - */ - @java.lang.Override public boolean hasPlainCard2() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 plainCard2 = 2; - */ - @java.lang.Override public int getPlainCard2() { return plainCard2_; } - /** - * required uint32 plainCard2 = 2; - */ - private void setPlainCard2(int value) { - bitField0_ |= 0x00000002; - plainCard2_ = value; - } - /** - * required uint32 plainCard2 = 2; - */ - private void clearPlainCard2() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + plainCard1_ = 0; plainCard2_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlainCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlainCard2()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, plainCard1_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, plainCard2_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, plainCard1_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, plainCard2_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code HandStartMessage.PlainCards} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, Builder> implements - // @@protoc_insertion_point(builder_implements:HandStartMessage.PlainCards) - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, Builder> + implements de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 plainCard1 = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + plainCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + plainCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards build() { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards buildPartial() { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = new de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.plainCard1_ = plainCard1_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.plainCard2_ = plainCard2_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards other) { + if (other == de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance()) return this; + if (other.hasPlainCard1()) { + setPlainCard1(other.getPlainCard1()); + } + if (other.hasPlainCard2()) { + setPlainCard2(other.getPlainCard2()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlainCard1()) { + + return false; + } + if (!hasPlainCard2()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + plainCard1_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + plainCard2_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 plainCard1 = 1; + private int plainCard1_ ; public boolean hasPlainCard1() { - return instance.hasPlainCard1(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 plainCard1 = 1; - */ - @java.lang.Override public int getPlainCard1() { - return instance.getPlainCard1(); + return plainCard1_; } - /** - * required uint32 plainCard1 = 1; - */ public Builder setPlainCard1(int value) { - copyOnWrite(); - instance.setPlainCard1(value); + bitField0_ |= 0x00000001; + plainCard1_ = value; + return this; } - /** - * required uint32 plainCard1 = 1; - */ public Builder clearPlainCard1() { - copyOnWrite(); - instance.clearPlainCard1(); + bitField0_ = (bitField0_ & ~0x00000001); + plainCard1_ = 0; + return this; } - - /** - * required uint32 plainCard2 = 2; - */ - @java.lang.Override + + // required uint32 plainCard2 = 2; + private int plainCard2_ ; public boolean hasPlainCard2() { - return instance.hasPlainCard2(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 plainCard2 = 2; - */ - @java.lang.Override public int getPlainCard2() { - return instance.getPlainCard2(); + return plainCard2_; } - /** - * required uint32 plainCard2 = 2; - */ public Builder setPlainCard2(int value) { - copyOnWrite(); - instance.setPlainCard2(value); + bitField0_ |= 0x00000002; + plainCard2_ = value; + return this; } - /** - * required uint32 plainCard2 = 2; - */ public Builder clearPlainCard2() { - copyOnWrite(); - instance.clearPlainCard2(); + bitField0_ = (bitField0_ & ~0x00000002); + plainCard2_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:HandStartMessage.PlainCards) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlainCard1()) { - return null; - } - if (!hasPlainCard2()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards other = (de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards) arg1; - plainCard1_ = visitor.visitInt( - hasPlainCard1(), plainCard1_, - other.hasPlainCard1(), other.plainCard1_); - plainCard2_ = visitor.visitInt( - hasPlainCard2(), plainCard2_, - other.hasPlainCard2(), other.plainCard2_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - plainCard1_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - plainCard2_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) - private static final de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlainCards(); - } - - public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlainCards(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // optional .HandStartMessage.PlainCards plainCards = 2; public static final int PLAINCARDS_FIELD_NUMBER = 2; private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards plainCards_; - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - @java.lang.Override public boolean hasPlainCards() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { - return plainCards_ == null ? de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance() : plainCards_; + return plainCards_; } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - private void setPlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { - if (value == null) { - throw new NullPointerException(); - } - plainCards_ = value; - bitField0_ |= 0x00000002; - } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - private void setPlainCards( - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder builderForValue) { - plainCards_ = builderForValue.build(); - bitField0_ |= 0x00000002; - } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { - if (value == null) { - throw new NullPointerException(); - } - if (plainCards_ != null && - plainCards_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance()) { - plainCards_ = - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder(plainCards_).mergeFrom(value).buildPartial(); - } else { - plainCards_ = value; - } - bitField0_ |= 0x00000002; - } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - private void clearPlainCards() { plainCards_ = null; - bitField0_ = (bitField0_ & ~0x00000002); - } - + + // optional bytes encryptedCards = 3; public static final int ENCRYPTEDCARDS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString encryptedCards_; - /** - * optional bytes encryptedCards = 3; - */ - @java.lang.Override public boolean hasEncryptedCards() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes encryptedCards = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getEncryptedCards() { return encryptedCards_; } - /** - * optional bytes encryptedCards = 3; - */ - private void setEncryptedCards(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - encryptedCards_ = value; - } - /** - * optional bytes encryptedCards = 3; - */ - private void clearEncryptedCards() { - bitField0_ = (bitField0_ & ~0x00000004); - encryptedCards_ = getDefaultInstance().getEncryptedCards(); - } - + + // required uint32 smallBlind = 4; public static final int SMALLBLIND_FIELD_NUMBER = 4; private int smallBlind_; - /** - * required uint32 smallBlind = 4; - */ - @java.lang.Override public boolean hasSmallBlind() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 smallBlind = 4; - */ - @java.lang.Override public int getSmallBlind() { return smallBlind_; } - /** - * required uint32 smallBlind = 4; - */ - private void setSmallBlind(int value) { - bitField0_ |= 0x00000008; - smallBlind_ = value; - } - /** - * required uint32 smallBlind = 4; - */ - private void clearSmallBlind() { - bitField0_ = (bitField0_ & ~0x00000008); - smallBlind_ = 0; - } - + + // repeated .NetPlayerState seatStates = 5; public static final int SEATSTATES_FIELD_NUMBER = 5; - private com.google.protobuf.Internal.IntList seatStates_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, de.pokerth.protocol.ProtoBuf.NetPlayerState> seatStates_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, de.pokerth.protocol.ProtoBuf.NetPlayerState>() { - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.NetPlayerState convert(java.lang.Integer from) { - de.pokerth.protocol.ProtoBuf.NetPlayerState result = de.pokerth.protocol.ProtoBuf.NetPlayerState.forNumber(from); - return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerState.netPlayerStateNormal : result; - } - }; - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override + private java.util.List seatStates_; public java.util.List getSeatStatesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, de.pokerth.protocol.ProtoBuf.NetPlayerState>(seatStates_, seatStates_converter_); + return seatStates_; } - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override public int getSeatStatesCount() { return seatStates_.size(); } - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index) { - return seatStates_converter_.convert(seatStates_.getInt(index)); + return seatStates_.get(index); } - private void ensureSeatStatesIsMutable() { - if (!seatStates_.isModifiable()) { - seatStates_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(seatStates_); - } - } - /** - * repeated .NetPlayerState seatStates = 5; - */ - private void setSeatStates( - int index, de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeatStatesIsMutable(); - seatStates_.setInt(index, value.getNumber()); - } - /** - * repeated .NetPlayerState seatStates = 5; - */ - private void addSeatStates(de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeatStatesIsMutable(); - seatStates_.addInt(value.getNumber()); - } - /** - * repeated .NetPlayerState seatStates = 5; - */ - private void addAllSeatStates( - java.lang.Iterable values) { - ensureSeatStatesIsMutable(); - for (de.pokerth.protocol.ProtoBuf.NetPlayerState value : values) { - seatStates_.addInt(value.getNumber()); - } - } - /** - * repeated .NetPlayerState seatStates = 5; - */ - private void clearSeatStates() { - seatStates_ = emptyIntList(); - } - + + // optional uint32 dealerPlayerId = 6; public static final int DEALERPLAYERID_FIELD_NUMBER = 6; private int dealerPlayerId_; - /** - * optional uint32 dealerPlayerId = 6; - */ - @java.lang.Override public boolean hasDealerPlayerId() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional uint32 dealerPlayerId = 6; - */ - @java.lang.Override public int getDealerPlayerId() { return dealerPlayerId_; } - /** - * optional uint32 dealerPlayerId = 6; - */ - private void setDealerPlayerId(int value) { - bitField0_ |= 0x00000010; - dealerPlayerId_ = value; - } - /** - * optional uint32 dealerPlayerId = 6; - */ - private void clearDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000010); + + private void initFields() { + gameId_ = 0; + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + smallBlind_ = 0; + seatStates_ = java.util.Collections.emptyList(); dealerPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSmallBlind()) { + memoizedIsInitialized = 0; + return false; + } + if (hasPlainCards()) { + if (!getPlainCards().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getPlainCards()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, plainCards_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, encryptedCards_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, smallBlind_); } for (int i = 0; i < seatStates_.size(); i++) { - output.writeEnum(5, seatStates_.getInt(i)); + output.writeEnum(5, seatStates_.get(i).getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(6, dealerPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPlainCards()); + .computeMessageSize(2, plainCards_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, encryptedCards_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, smallBlind_); } @@ -28965,1884 +22563,1553 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < seatStates_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(seatStates_.getInt(i)); + .computeEnumSizeNoTag(seatStates_.get(i).getNumber()); } size += dataSize; size += 1 * seatStates_.size(); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, dealerPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code HandStartMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.HandStartMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:HandStartMessage) - de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.HandStartMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override - public boolean hasGameId() { - return instance.hasGameId(); + + private void maybeForceBuilderInitialization() { } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override - public int getGameId() { - return instance.getGameId(); + private static Builder create() { + return new Builder(); } - /** - * required uint32 gameId = 1; - */ - public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + smallBlind_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + seatStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + dealerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); return this; } - /** - * required uint32 gameId = 1; - */ - public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); - return this; + + public Builder clone() { + return create().mergeFrom(buildPartial()); } - - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - @java.lang.Override - public boolean hasPlainCards() { - return instance.hasPlainCards(); + + public de.pokerth.protocol.ProtoBuf.HandStartMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { - return instance.getPlainCards(); - } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - public Builder setPlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { - copyOnWrite(); - instance.setPlainCards(value); - return this; + + public de.pokerth.protocol.ProtoBuf.HandStartMessage build() { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.HandStartMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = new de.pokerth.protocol.ProtoBuf.HandStartMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.plainCards_ = plainCards_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.encryptedCards_ = encryptedCards_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.smallBlind_ = smallBlind_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + seatStates_ = java.util.Collections.unmodifiableList(seatStates_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.seatStates_ = seatStates_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.dealerPlayerId_ = dealerPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.HandStartMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlainCards()) { + mergePlainCards(other.getPlainCards()); + } + if (other.hasEncryptedCards()) { + setEncryptedCards(other.getEncryptedCards()); + } + if (other.hasSmallBlind()) { + setSmallBlind(other.getSmallBlind()); + } + if (!other.seatStates_.isEmpty()) { + if (seatStates_.isEmpty()) { + seatStates_ = other.seatStates_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSeatStatesIsMutable(); + seatStates_.addAll(other.seatStates_); + } + + } + if (other.hasDealerPlayerId()) { + setDealerPlayerId(other.getDealerPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasSmallBlind()) { + + return false; + } + if (hasPlainCards()) { + if (!getPlainCards().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder subBuilder = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder(); + if (hasPlainCards()) { + subBuilder.mergeFrom(getPlainCards()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlainCards(subBuilder.buildPartial()); + break; + } + case 26: { + bitField0_ |= 0x00000004; + encryptedCards_ = input.readBytes(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + smallBlind_ = input.readUInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.valueOf(rawValue); + if (value != null) { + addSeatStates(value); + } + break; + } + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.valueOf(rawValue); + if (value != null) { + addSeatStates(value); + } + } + input.popLimit(oldLimit); + break; + } + case 48: { + bitField0_ |= 0x00000020; + dealerPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + + return this; + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + public boolean hasPlainCards() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { + return plainCards_; + } + public Builder setPlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { + if (value == null) { + throw new NullPointerException(); + } + plainCards_ = value; + + bitField0_ |= 0x00000002; + return this; + } public Builder setPlainCards( de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder builderForValue) { - copyOnWrite(); - instance.setPlainCards(builderForValue); + plainCards_ = builderForValue.build(); + + bitField0_ |= 0x00000002; return this; } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ public Builder mergePlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { - copyOnWrite(); - instance.mergePlainCards(value); + if (((bitField0_ & 0x00000002) == 0x00000002) && + plainCards_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance()) { + plainCards_ = + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder(plainCards_).mergeFrom(value).buildPartial(); + } else { + plainCards_ = value; + } + + bitField0_ |= 0x00000002; return this; } - /** - * optional .HandStartMessage.PlainCards plainCards = 2; - */ - public Builder clearPlainCards() { copyOnWrite(); - instance.clearPlainCards(); + public Builder clearPlainCards() { + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000002); return this; } - - /** - * optional bytes encryptedCards = 3; - */ - @java.lang.Override + + // optional bytes encryptedCards = 3; + private com.google.protobuf.ByteString encryptedCards_ = com.google.protobuf.ByteString.EMPTY; public boolean hasEncryptedCards() { - return instance.hasEncryptedCards(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes encryptedCards = 3; - */ - @java.lang.Override public com.google.protobuf.ByteString getEncryptedCards() { - return instance.getEncryptedCards(); + return encryptedCards_; } - /** - * optional bytes encryptedCards = 3; - */ public Builder setEncryptedCards(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setEncryptedCards(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + encryptedCards_ = value; + return this; } - /** - * optional bytes encryptedCards = 3; - */ public Builder clearEncryptedCards() { - copyOnWrite(); - instance.clearEncryptedCards(); + bitField0_ = (bitField0_ & ~0x00000004); + encryptedCards_ = getDefaultInstance().getEncryptedCards(); + return this; } - - /** - * required uint32 smallBlind = 4; - */ - @java.lang.Override + + // required uint32 smallBlind = 4; + private int smallBlind_ ; public boolean hasSmallBlind() { - return instance.hasSmallBlind(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 smallBlind = 4; - */ - @java.lang.Override public int getSmallBlind() { - return instance.getSmallBlind(); + return smallBlind_; } - /** - * required uint32 smallBlind = 4; - */ public Builder setSmallBlind(int value) { - copyOnWrite(); - instance.setSmallBlind(value); + bitField0_ |= 0x00000008; + smallBlind_ = value; + return this; } - /** - * required uint32 smallBlind = 4; - */ public Builder clearSmallBlind() { - copyOnWrite(); - instance.clearSmallBlind(); + bitField0_ = (bitField0_ & ~0x00000008); + smallBlind_ = 0; + return this; } - - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override + + // repeated .NetPlayerState seatStates = 5; + private java.util.List seatStates_ = + java.util.Collections.emptyList(); + private void ensureSeatStatesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + seatStates_ = new java.util.ArrayList(seatStates_); + bitField0_ |= 0x00000010; + } + } public java.util.List getSeatStatesList() { - return instance.getSeatStatesList(); + return java.util.Collections.unmodifiableList(seatStates_); } - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override public int getSeatStatesCount() { - return instance.getSeatStatesCount(); + return seatStates_.size(); } - /** - * repeated .NetPlayerState seatStates = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index) { - return instance.getSeatStates(index); + return seatStates_.get(index); } - /** - * repeated .NetPlayerState seatStates = 5; - */ public Builder setSeatStates( int index, de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - copyOnWrite(); - instance.setSeatStates(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureSeatStatesIsMutable(); + seatStates_.set(index, value); + return this; } - /** - * repeated .NetPlayerState seatStates = 5; - */ public Builder addSeatStates(de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - copyOnWrite(); - instance.addSeatStates(value); + if (value == null) { + throw new NullPointerException(); + } + ensureSeatStatesIsMutable(); + seatStates_.add(value); + return this; } - /** - * repeated .NetPlayerState seatStates = 5; - */ public Builder addAllSeatStates( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSeatStates(values); return this; + ensureSeatStatesIsMutable(); + super.addAll(values, seatStates_); + + return this; } - /** - * repeated .NetPlayerState seatStates = 5; - */ public Builder clearSeatStates() { - copyOnWrite(); - instance.clearSeatStates(); + seatStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + return this; } - - /** - * optional uint32 dealerPlayerId = 6; - */ - @java.lang.Override + + // optional uint32 dealerPlayerId = 6; + private int dealerPlayerId_ ; public boolean hasDealerPlayerId() { - return instance.hasDealerPlayerId(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional uint32 dealerPlayerId = 6; - */ - @java.lang.Override public int getDealerPlayerId() { - return instance.getDealerPlayerId(); + return dealerPlayerId_; } - /** - * optional uint32 dealerPlayerId = 6; - */ public Builder setDealerPlayerId(int value) { - copyOnWrite(); - instance.setDealerPlayerId(value); + bitField0_ |= 0x00000020; + dealerPlayerId_ = value; + return this; } - /** - * optional uint32 dealerPlayerId = 6; - */ public Builder clearDealerPlayerId() { - copyOnWrite(); - instance.clearDealerPlayerId(); + bitField0_ = (bitField0_ & ~0x00000020); + dealerPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:HandStartMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.HandStartMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasSmallBlind()) { - return null; - } - if (hasPlainCards()) { - if (!getPlainCards().isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - seatStates_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.HandStartMessage other = (de.pokerth.protocol.ProtoBuf.HandStartMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - plainCards_ = visitor.visitMessage(plainCards_, other.plainCards_); - encryptedCards_ = visitor.visitByteString( - hasEncryptedCards(), encryptedCards_, - other.hasEncryptedCards(), other.encryptedCards_); - smallBlind_ = visitor.visitInt( - hasSmallBlind(), smallBlind_, - other.hasSmallBlind(), other.smallBlind_); - seatStates_= visitor.visitIntList(seatStates_, other.seatStates_); - dealerPlayerId_ = visitor.visitInt( - hasDealerPlayerId(), dealerPlayerId_, - other.hasDealerPlayerId(), other.dealerPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = plainCards_.toBuilder(); - } - plainCards_ = input.readMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(plainCards_); - plainCards_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - bitField0_ |= 0x00000004; - encryptedCards_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - smallBlind_ = input.readUInt32(); - break; - } - case 40: { - if (!seatStates_.isModifiable()) { - seatStates_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(seatStates_); - } - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(5, rawValue); - } else { - seatStates_.addInt(rawValue); - } - break; - } - case 42: { - if (!seatStates_.isModifiable()) { - seatStates_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(seatStates_); - } - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(5, rawValue); - } else { - seatStates_.addInt(rawValue); - } - } - input.popLimit(oldLimit); - break; - } - case 48: { - bitField0_ |= 0x00000010; - dealerPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.HandStartMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:HandStartMessage) - private static final de.pokerth.protocol.ProtoBuf.HandStartMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new HandStartMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.HandStartMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new HandStartMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:HandStartMessage) } - - public interface PlayersTurnMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayersTurnMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface PlayersTurnMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .NetGameState gameState = 3; - */ + + // required .NetGameState gameState = 3; boolean hasGameState(); - /** - * required .NetGameState gameState = 3; - */ de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); } - /** - * Protobuf type {@code PlayersTurnMessage} - */ - public static final class PlayersTurnMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayersTurnMessage, PlayersTurnMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayersTurnMessage) - PlayersTurnMessageOrBuilder { - private PlayersTurnMessage() { + public static final class PlayersTurnMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayersTurnMessageOrBuilder { + // Use PlayersTurnMessage.newBuilder() to construct. + private PlayersTurnMessage(Builder builder) { + super(builder); } + private PlayersTurnMessage(boolean noInit) {} + + private static final PlayersTurnMessage defaultInstance; + public static PlayersTurnMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayersTurnMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .NetGameState gameState = 3; public static final int GAMESTATE_FIELD_NUMBER = 3; - private int gameState_; - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; public boolean hasGameState() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ - private void setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - gameState_ = value.getNumber(); + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .NetGameState gameState = 3; - */ - private void clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, gameState_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_); + .computeEnumSize(3, gameState_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayersTurnMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayersTurnMessage) - de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage build() { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = new de.pokerth.protocol.ProtoBuf.PlayersTurnMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { - return instance.hasGameState(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return instance.getGameState(); + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - copyOnWrite(); - instance.setGameState(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + return this; } - /** - * required .NetGameState gameState = 3; - */ public Builder clearGameState() { - copyOnWrite(); - instance.clearGameState(); + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + return this; } - + // @@protoc_insertion_point(builder_scope:PlayersTurnMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayersTurnMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasGameState()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage other = (de.pokerth.protocol.ProtoBuf.PlayersTurnMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - gameState_ = visitor.visitInt(hasGameState(), gameState_, - other.hasGameState(), other.gameState_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - gameState_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayersTurnMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayersTurnMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayersTurnMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayersTurnMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayersTurnMessage) } - - public interface MyActionRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:MyActionRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface MyActionRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 handNum = 2; - */ + + // required uint32 handNum = 2; boolean hasHandNum(); - /** - * required uint32 handNum = 2; - */ int getHandNum(); - - /** - * required .NetGameState gameState = 3; - */ + + // required .NetGameState gameState = 3; boolean hasGameState(); - /** - * required .NetGameState gameState = 3; - */ de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); - - /** - * required .NetPlayerAction myAction = 4; - */ + + // required .NetPlayerAction myAction = 4; boolean hasMyAction(); - /** - * required .NetPlayerAction myAction = 4; - */ de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction(); - - /** - * required uint32 myRelativeBet = 5; - */ + + // required uint32 myRelativeBet = 5; boolean hasMyRelativeBet(); - /** - * required uint32 myRelativeBet = 5; - */ int getMyRelativeBet(); } - /** - * Protobuf type {@code MyActionRequestMessage} - */ - public static final class MyActionRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - MyActionRequestMessage, MyActionRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:MyActionRequestMessage) - MyActionRequestMessageOrBuilder { - private MyActionRequestMessage() { + public static final class MyActionRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements MyActionRequestMessageOrBuilder { + // Use MyActionRequestMessage.newBuilder() to construct. + private MyActionRequestMessage(Builder builder) { + super(builder); } + private MyActionRequestMessage(boolean noInit) {} + + private static final MyActionRequestMessage defaultInstance; + public static MyActionRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public MyActionRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 handNum = 2; public static final int HANDNUM_FIELD_NUMBER = 2; private int handNum_; - /** - * required uint32 handNum = 2; - */ - @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 handNum = 2; - */ - @java.lang.Override public int getHandNum() { return handNum_; } - /** - * required uint32 handNum = 2; - */ - private void setHandNum(int value) { - bitField0_ |= 0x00000002; - handNum_ = value; - } - /** - * required uint32 handNum = 2; - */ - private void clearHandNum() { - bitField0_ = (bitField0_ & ~0x00000002); - handNum_ = 0; - } - + + // required .NetGameState gameState = 3; public static final int GAMESTATE_FIELD_NUMBER = 3; - private int gameState_; - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; public boolean hasGameState() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ - private void setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameState_ = value.getNumber(); - } - /** - * required .NetGameState gameState = 3; - */ - private void clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = 0; - } - + + // required .NetPlayerAction myAction = 4; public static final int MYACTION_FIELD_NUMBER = 4; - private int myAction_; - /** - * required .NetPlayerAction myAction = 4; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_; public boolean hasMyAction() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetPlayerAction myAction = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { - de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(myAction_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + return myAction_; } - /** - * required .NetPlayerAction myAction = 4; - */ - private void setMyAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - myAction_ = value.getNumber(); - } - /** - * required .NetPlayerAction myAction = 4; - */ - private void clearMyAction() { - bitField0_ = (bitField0_ & ~0x00000008); - myAction_ = 0; - } - + + // required uint32 myRelativeBet = 5; public static final int MYRELATIVEBET_FIELD_NUMBER = 5; private int myRelativeBet_; - /** - * required uint32 myRelativeBet = 5; - */ - @java.lang.Override public boolean hasMyRelativeBet() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 myRelativeBet = 5; - */ - @java.lang.Override public int getMyRelativeBet() { return myRelativeBet_; } - /** - * required uint32 myRelativeBet = 5; - */ - private void setMyRelativeBet(int value) { - bitField0_ |= 0x00000010; - myRelativeBet_ = value; - } - /** - * required uint32 myRelativeBet = 5; - */ - private void clearMyRelativeBet() { - bitField0_ = (bitField0_ & ~0x00000010); + + private void initFields() { + gameId_ = 0; + handNum_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; myRelativeBet_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHandNum()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMyAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMyRelativeBet()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, handNum_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, gameState_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(4, myAction_); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, myAction_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, myRelativeBet_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, handNum_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_); + .computeEnumSize(3, gameState_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, myAction_); + .computeEnumSize(4, myAction_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, myRelativeBet_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code MyActionRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:MyActionRequestMessage) - de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + handNum_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + bitField0_ = (bitField0_ & ~0x00000008); + myRelativeBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage build() { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = new de.pokerth.protocol.ProtoBuf.MyActionRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.handNum_ = handNum_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.myAction_ = myAction_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.myRelativeBet_ = myRelativeBet_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasHandNum()) { + setHandNum(other.getHandNum()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasMyAction()) { + setMyAction(other.getMyAction()); + } + if (other.hasMyRelativeBet()) { + setMyRelativeBet(other.getMyRelativeBet()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasHandNum()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasMyAction()) { + + return false; + } + if (!hasMyRelativeBet()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + handNum_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000008; + myAction_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + myRelativeBet_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 handNum = 2; - */ - @java.lang.Override + + // required uint32 handNum = 2; + private int handNum_ ; public boolean hasHandNum() { - return instance.hasHandNum(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 handNum = 2; - */ - @java.lang.Override public int getHandNum() { - return instance.getHandNum(); + return handNum_; } - /** - * required uint32 handNum = 2; - */ public Builder setHandNum(int value) { - copyOnWrite(); - instance.setHandNum(value); + bitField0_ |= 0x00000002; + handNum_ = value; + return this; } - /** - * required uint32 handNum = 2; - */ public Builder clearHandNum() { - copyOnWrite(); - instance.clearHandNum(); + bitField0_ = (bitField0_ & ~0x00000002); + handNum_ = 0; + return this; } - - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { - return instance.hasGameState(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return instance.getGameState(); + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - copyOnWrite(); - instance.setGameState(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + return this; } - /** - * required .NetGameState gameState = 3; - */ public Builder clearGameState() { - copyOnWrite(); - instance.clearGameState(); + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + return this; } - - /** - * required .NetPlayerAction myAction = 4; - */ - @java.lang.Override + + // required .NetPlayerAction myAction = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasMyAction() { - return instance.hasMyAction(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetPlayerAction myAction = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { - return instance.getMyAction(); + return myAction_; } - /** - * required .NetPlayerAction myAction = 4; - */ public Builder setMyAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - copyOnWrite(); - instance.setMyAction(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + myAction_ = value; + return this; } - /** - * required .NetPlayerAction myAction = 4; - */ public Builder clearMyAction() { - copyOnWrite(); - instance.clearMyAction(); + bitField0_ = (bitField0_ & ~0x00000008); + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + return this; } - - /** - * required uint32 myRelativeBet = 5; - */ - @java.lang.Override + + // required uint32 myRelativeBet = 5; + private int myRelativeBet_ ; public boolean hasMyRelativeBet() { - return instance.hasMyRelativeBet(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 myRelativeBet = 5; - */ - @java.lang.Override public int getMyRelativeBet() { - return instance.getMyRelativeBet(); + return myRelativeBet_; } - /** - * required uint32 myRelativeBet = 5; - */ public Builder setMyRelativeBet(int value) { - copyOnWrite(); - instance.setMyRelativeBet(value); + bitField0_ |= 0x00000010; + myRelativeBet_ = value; + return this; } - /** - * required uint32 myRelativeBet = 5; - */ public Builder clearMyRelativeBet() { - copyOnWrite(); - instance.clearMyRelativeBet(); + bitField0_ = (bitField0_ & ~0x00000010); + myRelativeBet_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:MyActionRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.MyActionRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasHandNum()) { - return null; - } - if (!hasGameState()) { - return null; - } - if (!hasMyAction()) { - return null; - } - if (!hasMyRelativeBet()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage other = (de.pokerth.protocol.ProtoBuf.MyActionRequestMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - handNum_ = visitor.visitInt( - hasHandNum(), handNum_, - other.hasHandNum(), other.handNum_); - gameState_ = visitor.visitInt(hasGameState(), gameState_, - other.hasGameState(), other.gameState_); - myAction_ = visitor.visitInt(hasMyAction(), myAction_, - other.hasMyAction(), other.myAction_); - myRelativeBet_ = visitor.visitInt( - hasMyRelativeBet(), myRelativeBet_, - other.hasMyRelativeBet(), other.myRelativeBet_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - handNum_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - gameState_ = rawValue; - } - break; - } - case 32: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - myAction_ = rawValue; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - myRelativeBet_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:MyActionRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.MyActionRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new MyActionRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new MyActionRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:MyActionRequestMessage) } - - public interface YourActionRejectedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:YourActionRejectedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface YourActionRejectedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required .NetGameState gameState = 2; - */ + + // required .NetGameState gameState = 2; boolean hasGameState(); - /** - * required .NetGameState gameState = 2; - */ de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); - - /** - * required .NetPlayerAction yourAction = 3; - */ + + // required .NetPlayerAction yourAction = 3; boolean hasYourAction(); - /** - * required .NetPlayerAction yourAction = 3; - */ de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction(); - - /** - * required uint32 yourRelativeBet = 4; - */ + + // required uint32 yourRelativeBet = 4; boolean hasYourRelativeBet(); - /** - * required uint32 yourRelativeBet = 4; - */ int getYourRelativeBet(); - - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; boolean hasRejectionReason(); - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason(); } - /** - * Protobuf type {@code YourActionRejectedMessage} - */ - public static final class YourActionRejectedMessage extends - com.google.protobuf.GeneratedMessageLite< - YourActionRejectedMessage, YourActionRejectedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:YourActionRejectedMessage) - YourActionRejectedMessageOrBuilder { - private YourActionRejectedMessage() { - rejectionReason_ = 1; + public static final class YourActionRejectedMessage extends + com.google.protobuf.GeneratedMessageLite + implements YourActionRejectedMessageOrBuilder { + // Use YourActionRejectedMessage.newBuilder() to construct. + private YourActionRejectedMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code YourActionRejectedMessage.RejectionReason} - */ + private YourActionRejectedMessage(boolean noInit) {} + + private static final YourActionRejectedMessage defaultInstance; + public static YourActionRejectedMessage getDefaultInstance() { + return defaultInstance; + } + + public YourActionRejectedMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum RejectionReason implements com.google.protobuf.Internal.EnumLite { - /** - * rejectedInvalidGameState = 1; - */ - rejectedInvalidGameState(1), - /** - * rejectedNotYourTurn = 2; - */ - rejectedNotYourTurn(2), - /** - * rejectedActionNotAllowed = 3; - */ - rejectedActionNotAllowed(3), + rejectedInvalidGameState(0, 1), + rejectedNotYourTurn(1, 2), + rejectedActionNotAllowed(2, 3), ; - - /** - * rejectedInvalidGameState = 1; - */ + public static final int rejectedInvalidGameState_VALUE = 1; - /** - * rejectedNotYourTurn = 2; - */ public static final int rejectedNotYourTurn_VALUE = 2; - /** - * rejectedActionNotAllowed = 3; - */ public static final int rejectedActionNotAllowed_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static RejectionReason valueOf(int value) { - return forNumber(value); - } - - public static RejectionReason forNumber(int value) { switch (value) { case 1: return rejectedInvalidGameState; case 2: return rejectedNotYourTurn; @@ -30850,3841 +24117,3042 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RejectionReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public RejectionReason findValueByNumber(int number) { - return RejectionReason.forNumber(number); + return RejectionReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return RejectionReasonVerifier.INSTANCE; - } - - private static final class RejectionReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new RejectionReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return RejectionReason.forNumber(number) != null; - } - }; - + private final int value; - - private RejectionReason(int value) { + + private RejectionReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:YourActionRejectedMessage.RejectionReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required .NetGameState gameState = 2; public static final int GAMESTATE_FIELD_NUMBER = 2; - private int gameState_; - /** - * required .NetGameState gameState = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; public boolean hasGameState() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameState gameState = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + return gameState_; } - /** - * required .NetGameState gameState = 2; - */ - private void setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gameState_ = value.getNumber(); - } - /** - * required .NetGameState gameState = 2; - */ - private void clearGameState() { - bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = 0; - } - + + // required .NetPlayerAction yourAction = 3; public static final int YOURACTION_FIELD_NUMBER = 3; - private int yourAction_; - /** - * required .NetPlayerAction yourAction = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_; public boolean hasYourAction() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetPlayerAction yourAction = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { - de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(yourAction_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + return yourAction_; } - /** - * required .NetPlayerAction yourAction = 3; - */ - private void setYourAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - yourAction_ = value.getNumber(); - } - /** - * required .NetPlayerAction yourAction = 3; - */ - private void clearYourAction() { - bitField0_ = (bitField0_ & ~0x00000004); - yourAction_ = 0; - } - + + // required uint32 yourRelativeBet = 4; public static final int YOURRELATIVEBET_FIELD_NUMBER = 4; private int yourRelativeBet_; - /** - * required uint32 yourRelativeBet = 4; - */ - @java.lang.Override public boolean hasYourRelativeBet() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 yourRelativeBet = 4; - */ - @java.lang.Override public int getYourRelativeBet() { return yourRelativeBet_; } - /** - * required uint32 yourRelativeBet = 4; - */ - private void setYourRelativeBet(int value) { - bitField0_ |= 0x00000008; - yourRelativeBet_ = value; - } - /** - * required uint32 yourRelativeBet = 4; - */ - private void clearYourRelativeBet() { - bitField0_ = (bitField0_ & ~0x00000008); - yourRelativeBet_ = 0; - } - + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; public static final int REJECTIONREASON_FIELD_NUMBER = 5; - private int rejectionReason_; - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_; public boolean hasRejectionReason() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason result = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.forNumber(rejectionReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState : result; + return rejectionReason_; } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - private void setRejectionReason(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + yourRelativeBet_ = 0; + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000010; - rejectionReason_ = value.getNumber(); + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourRelativeBet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRejectionReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - private void clearRejectionReason() { - bitField0_ = (bitField0_ & ~0x00000010); - rejectionReason_ = 1; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, gameState_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameState_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, yourAction_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, yourAction_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, yourRelativeBet_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, rejectionReason_); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeEnum(5, rejectionReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameState_); + .computeEnumSize(2, gameState_.getNumber()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, yourAction_); + .computeEnumSize(3, yourAction_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, yourRelativeBet_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, rejectionReason_); + .computeEnumSize(5, rejectionReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code YourActionRejectedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:YourActionRejectedMessage) - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + bitField0_ = (bitField0_ & ~0x00000002); + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + bitField0_ = (bitField0_ & ~0x00000004); + yourRelativeBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage build() { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = new de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.yourAction_ = yourAction_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.yourRelativeBet_ = yourRelativeBet_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.rejectionReason_ = rejectionReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasYourAction()) { + setYourAction(other.getYourAction()); + } + if (other.hasYourRelativeBet()) { + setYourRelativeBet(other.getYourRelativeBet()); + } + if (other.hasRejectionReason()) { + setRejectionReason(other.getRejectionReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasYourAction()) { + + return false; + } + if (!hasYourRelativeBet()) { + + return false; + } + if (!hasRejectionReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + gameState_ = value; + } + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + yourAction_ = value; + } + break; + } + case 32: { + bitField0_ |= 0x00000008; + yourRelativeBet_ = input.readUInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000010; + rejectionReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required .NetGameState gameState = 2; - */ - @java.lang.Override + + // required .NetGameState gameState = 2; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { - return instance.hasGameState(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .NetGameState gameState = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return instance.getGameState(); + return gameState_; } - /** - * required .NetGameState gameState = 2; - */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - copyOnWrite(); - instance.setGameState(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameState_ = value; + return this; } - /** - * required .NetGameState gameState = 2; - */ public Builder clearGameState() { - copyOnWrite(); - instance.clearGameState(); + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + return this; } - - /** - * required .NetPlayerAction yourAction = 3; - */ - @java.lang.Override + + // required .NetPlayerAction yourAction = 3; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasYourAction() { - return instance.hasYourAction(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetPlayerAction yourAction = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { - return instance.getYourAction(); + return yourAction_; } - /** - * required .NetPlayerAction yourAction = 3; - */ public Builder setYourAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - copyOnWrite(); - instance.setYourAction(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + yourAction_ = value; + return this; } - /** - * required .NetPlayerAction yourAction = 3; - */ public Builder clearYourAction() { - copyOnWrite(); - instance.clearYourAction(); + bitField0_ = (bitField0_ & ~0x00000004); + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + return this; } - - /** - * required uint32 yourRelativeBet = 4; - */ - @java.lang.Override + + // required uint32 yourRelativeBet = 4; + private int yourRelativeBet_ ; public boolean hasYourRelativeBet() { - return instance.hasYourRelativeBet(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 yourRelativeBet = 4; - */ - @java.lang.Override public int getYourRelativeBet() { - return instance.getYourRelativeBet(); + return yourRelativeBet_; } - /** - * required uint32 yourRelativeBet = 4; - */ public Builder setYourRelativeBet(int value) { - copyOnWrite(); - instance.setYourRelativeBet(value); + bitField0_ |= 0x00000008; + yourRelativeBet_ = value; + return this; } - /** - * required uint32 yourRelativeBet = 4; - */ public Builder clearYourRelativeBet() { - copyOnWrite(); - instance.clearYourRelativeBet(); + bitField0_ = (bitField0_ & ~0x00000008); + yourRelativeBet_ = 0; + return this; } - - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - @java.lang.Override + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; public boolean hasRejectionReason() { - return instance.hasRejectionReason(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { - return instance.getRejectionReason(); + return rejectionReason_; } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ public Builder setRejectionReason(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value) { - copyOnWrite(); - instance.setRejectionReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + rejectionReason_ = value; + return this; } - /** - * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - */ public Builder clearRejectionReason() { - copyOnWrite(); - instance.clearRejectionReason(); + bitField0_ = (bitField0_ & ~0x00000010); + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + return this; } - + // @@protoc_insertion_point(builder_scope:YourActionRejectedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasGameState()) { - return null; - } - if (!hasYourAction()) { - return null; - } - if (!hasYourRelativeBet()) { - return null; - } - if (!hasRejectionReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage other = (de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - gameState_ = visitor.visitInt(hasGameState(), gameState_, - other.hasGameState(), other.gameState_); - yourAction_ = visitor.visitInt(hasYourAction(), yourAction_, - other.hasYourAction(), other.yourAction_); - yourRelativeBet_ = visitor.visitInt( - hasYourRelativeBet(), yourRelativeBet_, - other.hasYourRelativeBet(), other.yourRelativeBet_); - rejectionReason_ = visitor.visitInt(hasRejectionReason(), rejectionReason_, - other.hasRejectionReason(), other.rejectionReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - gameState_ = rawValue; - } - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - yourAction_ = rawValue; - } - break; - } - case 32: { - bitField0_ |= 0x00000008; - yourRelativeBet_ = input.readUInt32(); - break; - } - case 40: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - rejectionReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) - private static final de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new YourActionRejectedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new YourActionRejectedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) } - - public interface PlayersActionDoneMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayersActionDoneMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface PlayersActionDoneMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .NetGameState gameState = 3; - */ + + // required .NetGameState gameState = 3; boolean hasGameState(); - /** - * required .NetGameState gameState = 3; - */ de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); - - /** - * required .NetPlayerAction playerAction = 4; - */ + + // required .NetPlayerAction playerAction = 4; boolean hasPlayerAction(); - /** - * required .NetPlayerAction playerAction = 4; - */ de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction(); - - /** - * required uint32 totalPlayerBet = 5; - */ + + // required uint32 totalPlayerBet = 5; boolean hasTotalPlayerBet(); - /** - * required uint32 totalPlayerBet = 5; - */ int getTotalPlayerBet(); - - /** - * required uint32 playerMoney = 6; - */ + + // required uint32 playerMoney = 6; boolean hasPlayerMoney(); - /** - * required uint32 playerMoney = 6; - */ int getPlayerMoney(); - - /** - * required uint32 highestSet = 7; - */ + + // required uint32 highestSet = 7; boolean hasHighestSet(); - /** - * required uint32 highestSet = 7; - */ int getHighestSet(); - - /** - * required uint32 minimumRaise = 8; - */ + + // required uint32 minimumRaise = 8; boolean hasMinimumRaise(); - /** - * required uint32 minimumRaise = 8; - */ int getMinimumRaise(); } - /** - * Protobuf type {@code PlayersActionDoneMessage} - */ - public static final class PlayersActionDoneMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayersActionDoneMessage, PlayersActionDoneMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayersActionDoneMessage) - PlayersActionDoneMessageOrBuilder { - private PlayersActionDoneMessage() { + public static final class PlayersActionDoneMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayersActionDoneMessageOrBuilder { + // Use PlayersActionDoneMessage.newBuilder() to construct. + private PlayersActionDoneMessage(Builder builder) { + super(builder); } + private PlayersActionDoneMessage(boolean noInit) {} + + private static final PlayersActionDoneMessage defaultInstance; + public static PlayersActionDoneMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayersActionDoneMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .NetGameState gameState = 3; public static final int GAMESTATE_FIELD_NUMBER = 3; - private int gameState_; - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; public boolean hasGameState() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ - private void setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameState_ = value.getNumber(); - } - /** - * required .NetGameState gameState = 3; - */ - private void clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = 0; - } - + + // required .NetPlayerAction playerAction = 4; public static final int PLAYERACTION_FIELD_NUMBER = 4; - private int playerAction_; - /** - * required .NetPlayerAction playerAction = 4; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_; public boolean hasPlayerAction() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetPlayerAction playerAction = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { - de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(playerAction_); - return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + return playerAction_; } - /** - * required .NetPlayerAction playerAction = 4; - */ - private void setPlayerAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - playerAction_ = value.getNumber(); - } - /** - * required .NetPlayerAction playerAction = 4; - */ - private void clearPlayerAction() { - bitField0_ = (bitField0_ & ~0x00000008); - playerAction_ = 0; - } - + + // required uint32 totalPlayerBet = 5; public static final int TOTALPLAYERBET_FIELD_NUMBER = 5; private int totalPlayerBet_; - /** - * required uint32 totalPlayerBet = 5; - */ - @java.lang.Override public boolean hasTotalPlayerBet() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 totalPlayerBet = 5; - */ - @java.lang.Override public int getTotalPlayerBet() { return totalPlayerBet_; } - /** - * required uint32 totalPlayerBet = 5; - */ - private void setTotalPlayerBet(int value) { - bitField0_ |= 0x00000010; - totalPlayerBet_ = value; - } - /** - * required uint32 totalPlayerBet = 5; - */ - private void clearTotalPlayerBet() { - bitField0_ = (bitField0_ & ~0x00000010); - totalPlayerBet_ = 0; - } - + + // required uint32 playerMoney = 6; public static final int PLAYERMONEY_FIELD_NUMBER = 6; private int playerMoney_; - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - /** - * required uint32 playerMoney = 6; - */ - private void setPlayerMoney(int value) { - bitField0_ |= 0x00000020; - playerMoney_ = value; - } - /** - * required uint32 playerMoney = 6; - */ - private void clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000020); - playerMoney_ = 0; - } - + + // required uint32 highestSet = 7; public static final int HIGHESTSET_FIELD_NUMBER = 7; private int highestSet_; - /** - * required uint32 highestSet = 7; - */ - @java.lang.Override public boolean hasHighestSet() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * required uint32 highestSet = 7; - */ - @java.lang.Override public int getHighestSet() { return highestSet_; } - /** - * required uint32 highestSet = 7; - */ - private void setHighestSet(int value) { - bitField0_ |= 0x00000040; - highestSet_ = value; - } - /** - * required uint32 highestSet = 7; - */ - private void clearHighestSet() { - bitField0_ = (bitField0_ & ~0x00000040); - highestSet_ = 0; - } - + + // required uint32 minimumRaise = 8; public static final int MINIMUMRAISE_FIELD_NUMBER = 8; private int minimumRaise_; - /** - * required uint32 minimumRaise = 8; - */ - @java.lang.Override public boolean hasMinimumRaise() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - * required uint32 minimumRaise = 8; - */ - @java.lang.Override public int getMinimumRaise() { return minimumRaise_; } - /** - * required uint32 minimumRaise = 8; - */ - private void setMinimumRaise(int value) { - bitField0_ |= 0x00000080; - minimumRaise_ = value; - } - /** - * required uint32 minimumRaise = 8; - */ - private void clearMinimumRaise() { - bitField0_ = (bitField0_ & ~0x00000080); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + totalPlayerBet_ = 0; + playerMoney_ = 0; + highestSet_ = 0; minimumRaise_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTotalPlayerBet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHighestSet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMinimumRaise()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, gameState_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeEnum(4, playerAction_); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, playerAction_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, totalPlayerBet_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, playerMoney_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, highestSet_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt32(8, minimumRaise_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_); + .computeEnumSize(3, gameState_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, playerAction_); + .computeEnumSize(4, playerAction_.getNumber()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, totalPlayerBet_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, playerMoney_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, highestSet_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, minimumRaise_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayersActionDoneMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayersActionDoneMessage) - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + bitField0_ = (bitField0_ & ~0x00000008); + totalPlayerBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + highestSet_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + minimumRaise_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage build() { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = new de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.playerAction_ = playerAction_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.totalPlayerBet_ = totalPlayerBet_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.playerMoney_ = playerMoney_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.highestSet_ = highestSet_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.minimumRaise_ = minimumRaise_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasPlayerAction()) { + setPlayerAction(other.getPlayerAction()); + } + if (other.hasTotalPlayerBet()) { + setTotalPlayerBet(other.getTotalPlayerBet()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + if (other.hasHighestSet()) { + setHighestSet(other.getHighestSet()); + } + if (other.hasMinimumRaise()) { + setMinimumRaise(other.getMinimumRaise()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasPlayerAction()) { + + return false; + } + if (!hasTotalPlayerBet()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + if (!hasHighestSet()) { + + return false; + } + if (!hasMinimumRaise()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000008; + playerAction_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + totalPlayerBet_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + playerMoney_ = input.readUInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + highestSet_ = input.readUInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + minimumRaise_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { - return instance.hasGameState(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .NetGameState gameState = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return instance.getGameState(); + return gameState_; } - /** - * required .NetGameState gameState = 3; - */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - copyOnWrite(); - instance.setGameState(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + return this; } - /** - * required .NetGameState gameState = 3; - */ public Builder clearGameState() { - copyOnWrite(); - instance.clearGameState(); + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + return this; } - - /** - * required .NetPlayerAction playerAction = 4; - */ - @java.lang.Override + + // required .NetPlayerAction playerAction = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasPlayerAction() { - return instance.hasPlayerAction(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required .NetPlayerAction playerAction = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { - return instance.getPlayerAction(); + return playerAction_; } - /** - * required .NetPlayerAction playerAction = 4; - */ public Builder setPlayerAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - copyOnWrite(); - instance.setPlayerAction(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + playerAction_ = value; + return this; } - /** - * required .NetPlayerAction playerAction = 4; - */ public Builder clearPlayerAction() { - copyOnWrite(); - instance.clearPlayerAction(); + bitField0_ = (bitField0_ & ~0x00000008); + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + return this; } - - /** - * required uint32 totalPlayerBet = 5; - */ - @java.lang.Override + + // required uint32 totalPlayerBet = 5; + private int totalPlayerBet_ ; public boolean hasTotalPlayerBet() { - return instance.hasTotalPlayerBet(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 totalPlayerBet = 5; - */ - @java.lang.Override public int getTotalPlayerBet() { - return instance.getTotalPlayerBet(); + return totalPlayerBet_; } - /** - * required uint32 totalPlayerBet = 5; - */ public Builder setTotalPlayerBet(int value) { - copyOnWrite(); - instance.setTotalPlayerBet(value); + bitField0_ |= 0x00000010; + totalPlayerBet_ = value; + return this; } - /** - * required uint32 totalPlayerBet = 5; - */ public Builder clearTotalPlayerBet() { - copyOnWrite(); - instance.clearTotalPlayerBet(); + bitField0_ = (bitField0_ & ~0x00000010); + totalPlayerBet_ = 0; + return this; } - - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override + + // required uint32 playerMoney = 6; + private int playerMoney_ ; public boolean hasPlayerMoney() { - return instance.hasPlayerMoney(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required uint32 playerMoney = 6; - */ - @java.lang.Override public int getPlayerMoney() { - return instance.getPlayerMoney(); + return playerMoney_; } - /** - * required uint32 playerMoney = 6; - */ public Builder setPlayerMoney(int value) { - copyOnWrite(); - instance.setPlayerMoney(value); + bitField0_ |= 0x00000020; + playerMoney_ = value; + return this; } - /** - * required uint32 playerMoney = 6; - */ public Builder clearPlayerMoney() { - copyOnWrite(); - instance.clearPlayerMoney(); + bitField0_ = (bitField0_ & ~0x00000020); + playerMoney_ = 0; + return this; } - - /** - * required uint32 highestSet = 7; - */ - @java.lang.Override + + // required uint32 highestSet = 7; + private int highestSet_ ; public boolean hasHighestSet() { - return instance.hasHighestSet(); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * required uint32 highestSet = 7; - */ - @java.lang.Override public int getHighestSet() { - return instance.getHighestSet(); + return highestSet_; } - /** - * required uint32 highestSet = 7; - */ public Builder setHighestSet(int value) { - copyOnWrite(); - instance.setHighestSet(value); + bitField0_ |= 0x00000040; + highestSet_ = value; + return this; } - /** - * required uint32 highestSet = 7; - */ public Builder clearHighestSet() { - copyOnWrite(); - instance.clearHighestSet(); + bitField0_ = (bitField0_ & ~0x00000040); + highestSet_ = 0; + return this; } - - /** - * required uint32 minimumRaise = 8; - */ - @java.lang.Override + + // required uint32 minimumRaise = 8; + private int minimumRaise_ ; public boolean hasMinimumRaise() { - return instance.hasMinimumRaise(); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - * required uint32 minimumRaise = 8; - */ - @java.lang.Override public int getMinimumRaise() { - return instance.getMinimumRaise(); + return minimumRaise_; } - /** - * required uint32 minimumRaise = 8; - */ public Builder setMinimumRaise(int value) { - copyOnWrite(); - instance.setMinimumRaise(value); + bitField0_ |= 0x00000080; + minimumRaise_ = value; + return this; } - /** - * required uint32 minimumRaise = 8; - */ public Builder clearMinimumRaise() { - copyOnWrite(); - instance.clearMinimumRaise(); + bitField0_ = (bitField0_ & ~0x00000080); + minimumRaise_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:PlayersActionDoneMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasGameState()) { - return null; - } - if (!hasPlayerAction()) { - return null; - } - if (!hasTotalPlayerBet()) { - return null; - } - if (!hasPlayerMoney()) { - return null; - } - if (!hasHighestSet()) { - return null; - } - if (!hasMinimumRaise()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage other = (de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - gameState_ = visitor.visitInt(hasGameState(), gameState_, - other.hasGameState(), other.gameState_); - playerAction_ = visitor.visitInt(hasPlayerAction(), playerAction_, - other.hasPlayerAction(), other.playerAction_); - totalPlayerBet_ = visitor.visitInt( - hasTotalPlayerBet(), totalPlayerBet_, - other.hasTotalPlayerBet(), other.totalPlayerBet_); - playerMoney_ = visitor.visitInt( - hasPlayerMoney(), playerMoney_, - other.hasPlayerMoney(), other.playerMoney_); - highestSet_ = visitor.visitInt( - hasHighestSet(), highestSet_, - other.hasHighestSet(), other.highestSet_); - minimumRaise_ = visitor.visitInt( - hasMinimumRaise(), minimumRaise_, - other.hasMinimumRaise(), other.minimumRaise_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - gameState_ = rawValue; - } - break; - } - case 32: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - playerAction_ = rawValue; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - totalPlayerBet_ = input.readUInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - playerMoney_ = input.readUInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - highestSet_ = input.readUInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - minimumRaise_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayersActionDoneMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayersActionDoneMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) } - - public interface DealFlopCardsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:DealFlopCardsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface DealFlopCardsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 flopCard1 = 2; - */ + + // required uint32 flopCard1 = 2; boolean hasFlopCard1(); - /** - * required uint32 flopCard1 = 2; - */ int getFlopCard1(); - - /** - * required uint32 flopCard2 = 3; - */ + + // required uint32 flopCard2 = 3; boolean hasFlopCard2(); - /** - * required uint32 flopCard2 = 3; - */ int getFlopCard2(); - - /** - * required uint32 flopCard3 = 4; - */ + + // required uint32 flopCard3 = 4; boolean hasFlopCard3(); - /** - * required uint32 flopCard3 = 4; - */ int getFlopCard3(); } - /** - * Protobuf type {@code DealFlopCardsMessage} - */ - public static final class DealFlopCardsMessage extends - com.google.protobuf.GeneratedMessageLite< - DealFlopCardsMessage, DealFlopCardsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:DealFlopCardsMessage) - DealFlopCardsMessageOrBuilder { - private DealFlopCardsMessage() { + public static final class DealFlopCardsMessage extends + com.google.protobuf.GeneratedMessageLite + implements DealFlopCardsMessageOrBuilder { + // Use DealFlopCardsMessage.newBuilder() to construct. + private DealFlopCardsMessage(Builder builder) { + super(builder); } + private DealFlopCardsMessage(boolean noInit) {} + + private static final DealFlopCardsMessage defaultInstance; + public static DealFlopCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public DealFlopCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 flopCard1 = 2; public static final int FLOPCARD1_FIELD_NUMBER = 2; private int flopCard1_; - /** - * required uint32 flopCard1 = 2; - */ - @java.lang.Override public boolean hasFlopCard1() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 flopCard1 = 2; - */ - @java.lang.Override public int getFlopCard1() { return flopCard1_; } - /** - * required uint32 flopCard1 = 2; - */ - private void setFlopCard1(int value) { - bitField0_ |= 0x00000002; - flopCard1_ = value; - } - /** - * required uint32 flopCard1 = 2; - */ - private void clearFlopCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - flopCard1_ = 0; - } - + + // required uint32 flopCard2 = 3; public static final int FLOPCARD2_FIELD_NUMBER = 3; private int flopCard2_; - /** - * required uint32 flopCard2 = 3; - */ - @java.lang.Override public boolean hasFlopCard2() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 flopCard2 = 3; - */ - @java.lang.Override public int getFlopCard2() { return flopCard2_; } - /** - * required uint32 flopCard2 = 3; - */ - private void setFlopCard2(int value) { - bitField0_ |= 0x00000004; - flopCard2_ = value; - } - /** - * required uint32 flopCard2 = 3; - */ - private void clearFlopCard2() { - bitField0_ = (bitField0_ & ~0x00000004); - flopCard2_ = 0; - } - + + // required uint32 flopCard3 = 4; public static final int FLOPCARD3_FIELD_NUMBER = 4; private int flopCard3_; - /** - * required uint32 flopCard3 = 4; - */ - @java.lang.Override public boolean hasFlopCard3() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 flopCard3 = 4; - */ - @java.lang.Override public int getFlopCard3() { return flopCard3_; } - /** - * required uint32 flopCard3 = 4; - */ - private void setFlopCard3(int value) { - bitField0_ |= 0x00000008; - flopCard3_ = value; - } - /** - * required uint32 flopCard3 = 4; - */ - private void clearFlopCard3() { - bitField0_ = (bitField0_ & ~0x00000008); + + private void initFields() { + gameId_ = 0; + flopCard1_ = 0; + flopCard2_ = 0; flopCard3_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard3()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, flopCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, flopCard2_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, flopCard3_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, flopCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, flopCard2_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, flopCard3_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code DealFlopCardsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:DealFlopCardsMessage) - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + flopCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + flopCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + flopCard3_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage build() { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = new de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.flopCard1_ = flopCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.flopCard2_ = flopCard2_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.flopCard3_ = flopCard3_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasFlopCard1()) { + setFlopCard1(other.getFlopCard1()); + } + if (other.hasFlopCard2()) { + setFlopCard2(other.getFlopCard2()); + } + if (other.hasFlopCard3()) { + setFlopCard3(other.getFlopCard3()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasFlopCard1()) { + + return false; + } + if (!hasFlopCard2()) { + + return false; + } + if (!hasFlopCard3()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + flopCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + flopCard2_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + flopCard3_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 flopCard1 = 2; - */ - @java.lang.Override + + // required uint32 flopCard1 = 2; + private int flopCard1_ ; public boolean hasFlopCard1() { - return instance.hasFlopCard1(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 flopCard1 = 2; - */ - @java.lang.Override public int getFlopCard1() { - return instance.getFlopCard1(); + return flopCard1_; } - /** - * required uint32 flopCard1 = 2; - */ public Builder setFlopCard1(int value) { - copyOnWrite(); - instance.setFlopCard1(value); + bitField0_ |= 0x00000002; + flopCard1_ = value; + return this; } - /** - * required uint32 flopCard1 = 2; - */ public Builder clearFlopCard1() { - copyOnWrite(); - instance.clearFlopCard1(); + bitField0_ = (bitField0_ & ~0x00000002); + flopCard1_ = 0; + return this; } - - /** - * required uint32 flopCard2 = 3; - */ - @java.lang.Override + + // required uint32 flopCard2 = 3; + private int flopCard2_ ; public boolean hasFlopCard2() { - return instance.hasFlopCard2(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 flopCard2 = 3; - */ - @java.lang.Override public int getFlopCard2() { - return instance.getFlopCard2(); + return flopCard2_; } - /** - * required uint32 flopCard2 = 3; - */ public Builder setFlopCard2(int value) { - copyOnWrite(); - instance.setFlopCard2(value); + bitField0_ |= 0x00000004; + flopCard2_ = value; + return this; } - /** - * required uint32 flopCard2 = 3; - */ public Builder clearFlopCard2() { - copyOnWrite(); - instance.clearFlopCard2(); + bitField0_ = (bitField0_ & ~0x00000004); + flopCard2_ = 0; + return this; } - - /** - * required uint32 flopCard3 = 4; - */ - @java.lang.Override + + // required uint32 flopCard3 = 4; + private int flopCard3_ ; public boolean hasFlopCard3() { - return instance.hasFlopCard3(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 flopCard3 = 4; - */ - @java.lang.Override public int getFlopCard3() { - return instance.getFlopCard3(); + return flopCard3_; } - /** - * required uint32 flopCard3 = 4; - */ public Builder setFlopCard3(int value) { - copyOnWrite(); - instance.setFlopCard3(value); + bitField0_ |= 0x00000008; + flopCard3_ = value; + return this; } - /** - * required uint32 flopCard3 = 4; - */ public Builder clearFlopCard3() { - copyOnWrite(); - instance.clearFlopCard3(); + bitField0_ = (bitField0_ & ~0x00000008); + flopCard3_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:DealFlopCardsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasFlopCard1()) { - return null; - } - if (!hasFlopCard2()) { - return null; - } - if (!hasFlopCard3()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage other = (de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - flopCard1_ = visitor.visitInt( - hasFlopCard1(), flopCard1_, - other.hasFlopCard1(), other.flopCard1_); - flopCard2_ = visitor.visitInt( - hasFlopCard2(), flopCard2_, - other.hasFlopCard2(), other.flopCard2_); - flopCard3_ = visitor.visitInt( - hasFlopCard3(), flopCard3_, - other.hasFlopCard3(), other.flopCard3_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - flopCard1_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - flopCard2_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - flopCard3_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) - private static final de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new DealFlopCardsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new DealFlopCardsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) } - - public interface DealTurnCardMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:DealTurnCardMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface DealTurnCardMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 turnCard = 2; - */ + + // required uint32 turnCard = 2; boolean hasTurnCard(); - /** - * required uint32 turnCard = 2; - */ int getTurnCard(); } - /** - * Protobuf type {@code DealTurnCardMessage} - */ - public static final class DealTurnCardMessage extends - com.google.protobuf.GeneratedMessageLite< - DealTurnCardMessage, DealTurnCardMessage.Builder> implements - // @@protoc_insertion_point(message_implements:DealTurnCardMessage) - DealTurnCardMessageOrBuilder { - private DealTurnCardMessage() { + public static final class DealTurnCardMessage extends + com.google.protobuf.GeneratedMessageLite + implements DealTurnCardMessageOrBuilder { + // Use DealTurnCardMessage.newBuilder() to construct. + private DealTurnCardMessage(Builder builder) { + super(builder); } + private DealTurnCardMessage(boolean noInit) {} + + private static final DealTurnCardMessage defaultInstance; + public static DealTurnCardMessage getDefaultInstance() { + return defaultInstance; + } + + public DealTurnCardMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 turnCard = 2; public static final int TURNCARD_FIELD_NUMBER = 2; private int turnCard_; - /** - * required uint32 turnCard = 2; - */ - @java.lang.Override public boolean hasTurnCard() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 turnCard = 2; - */ - @java.lang.Override public int getTurnCard() { return turnCard_; } - /** - * required uint32 turnCard = 2; - */ - private void setTurnCard(int value) { - bitField0_ |= 0x00000002; - turnCard_ = value; - } - /** - * required uint32 turnCard = 2; - */ - private void clearTurnCard() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; turnCard_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTurnCard()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, turnCard_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, turnCard_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code DealTurnCardMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:DealTurnCardMessage) - de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + turnCard_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage build() { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = new de.pokerth.protocol.ProtoBuf.DealTurnCardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.turnCard_ = turnCard_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasTurnCard()) { + setTurnCard(other.getTurnCard()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasTurnCard()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + turnCard_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 turnCard = 2; - */ - @java.lang.Override + + // required uint32 turnCard = 2; + private int turnCard_ ; public boolean hasTurnCard() { - return instance.hasTurnCard(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 turnCard = 2; - */ - @java.lang.Override public int getTurnCard() { - return instance.getTurnCard(); + return turnCard_; } - /** - * required uint32 turnCard = 2; - */ public Builder setTurnCard(int value) { - copyOnWrite(); - instance.setTurnCard(value); + bitField0_ |= 0x00000002; + turnCard_ = value; + return this; } - /** - * required uint32 turnCard = 2; - */ public Builder clearTurnCard() { - copyOnWrite(); - instance.clearTurnCard(); + bitField0_ = (bitField0_ & ~0x00000002); + turnCard_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:DealTurnCardMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.DealTurnCardMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasTurnCard()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage other = (de.pokerth.protocol.ProtoBuf.DealTurnCardMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - turnCard_ = visitor.visitInt( - hasTurnCard(), turnCard_, - other.hasTurnCard(), other.turnCard_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - turnCard_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:DealTurnCardMessage) - private static final de.pokerth.protocol.ProtoBuf.DealTurnCardMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new DealTurnCardMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new DealTurnCardMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:DealTurnCardMessage) } - - public interface DealRiverCardMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:DealRiverCardMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface DealRiverCardMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 riverCard = 2; - */ + + // required uint32 riverCard = 2; boolean hasRiverCard(); - /** - * required uint32 riverCard = 2; - */ int getRiverCard(); } - /** - * Protobuf type {@code DealRiverCardMessage} - */ - public static final class DealRiverCardMessage extends - com.google.protobuf.GeneratedMessageLite< - DealRiverCardMessage, DealRiverCardMessage.Builder> implements - // @@protoc_insertion_point(message_implements:DealRiverCardMessage) - DealRiverCardMessageOrBuilder { - private DealRiverCardMessage() { + public static final class DealRiverCardMessage extends + com.google.protobuf.GeneratedMessageLite + implements DealRiverCardMessageOrBuilder { + // Use DealRiverCardMessage.newBuilder() to construct. + private DealRiverCardMessage(Builder builder) { + super(builder); } + private DealRiverCardMessage(boolean noInit) {} + + private static final DealRiverCardMessage defaultInstance; + public static DealRiverCardMessage getDefaultInstance() { + return defaultInstance; + } + + public DealRiverCardMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 riverCard = 2; public static final int RIVERCARD_FIELD_NUMBER = 2; private int riverCard_; - /** - * required uint32 riverCard = 2; - */ - @java.lang.Override public boolean hasRiverCard() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 riverCard = 2; - */ - @java.lang.Override public int getRiverCard() { return riverCard_; } - /** - * required uint32 riverCard = 2; - */ - private void setRiverCard(int value) { - bitField0_ |= 0x00000002; - riverCard_ = value; - } - /** - * required uint32 riverCard = 2; - */ - private void clearRiverCard() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; riverCard_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRiverCard()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, riverCard_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, riverCard_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code DealRiverCardMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:DealRiverCardMessage) - de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + riverCard_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage build() { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = new de.pokerth.protocol.ProtoBuf.DealRiverCardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.riverCard_ = riverCard_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasRiverCard()) { + setRiverCard(other.getRiverCard()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasRiverCard()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + riverCard_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 riverCard = 2; - */ - @java.lang.Override + + // required uint32 riverCard = 2; + private int riverCard_ ; public boolean hasRiverCard() { - return instance.hasRiverCard(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 riverCard = 2; - */ - @java.lang.Override public int getRiverCard() { - return instance.getRiverCard(); + return riverCard_; } - /** - * required uint32 riverCard = 2; - */ public Builder setRiverCard(int value) { - copyOnWrite(); - instance.setRiverCard(value); + bitField0_ |= 0x00000002; + riverCard_ = value; + return this; } - /** - * required uint32 riverCard = 2; - */ public Builder clearRiverCard() { - copyOnWrite(); - instance.clearRiverCard(); + bitField0_ = (bitField0_ & ~0x00000002); + riverCard_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:DealRiverCardMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.DealRiverCardMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasRiverCard()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage other = (de.pokerth.protocol.ProtoBuf.DealRiverCardMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - riverCard_ = visitor.visitInt( - hasRiverCard(), riverCard_, - other.hasRiverCard(), other.riverCard_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - riverCard_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:DealRiverCardMessage) - private static final de.pokerth.protocol.ProtoBuf.DealRiverCardMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new DealRiverCardMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new DealRiverCardMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:DealRiverCardMessage) } - - public interface AllInShowCardsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AllInShowCardsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface AllInShowCardsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; java.util.List getPlayersAllInList(); - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index); - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ int getPlayersAllInCount(); } - /** - * Protobuf type {@code AllInShowCardsMessage} - */ - public static final class AllInShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite< - AllInShowCardsMessage, AllInShowCardsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AllInShowCardsMessage) - AllInShowCardsMessageOrBuilder { - private AllInShowCardsMessage() { - playersAllIn_ = emptyProtobufList(); + public static final class AllInShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite + implements AllInShowCardsMessageOrBuilder { + // Use AllInShowCardsMessage.newBuilder() to construct. + private AllInShowCardsMessage(Builder builder) { + super(builder); } - public interface PlayerAllInOrBuilder extends - // @@protoc_insertion_point(interface_extends:AllInShowCardsMessage.PlayerAllIn) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 playerId = 1; - */ + private AllInShowCardsMessage(boolean noInit) {} + + private static final AllInShowCardsMessage defaultInstance; + public static AllInShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public AllInShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public interface PlayerAllInOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 playerId = 1; boolean hasPlayerId(); - /** - * required uint32 playerId = 1; - */ int getPlayerId(); - - /** - * required uint32 allInCard1 = 2; - */ + + // required uint32 allInCard1 = 2; boolean hasAllInCard1(); - /** - * required uint32 allInCard1 = 2; - */ int getAllInCard1(); - - /** - * required uint32 allInCard2 = 3; - */ + + // required uint32 allInCard2 = 3; boolean hasAllInCard2(); - /** - * required uint32 allInCard2 = 3; - */ int getAllInCard2(); } - /** - * Protobuf type {@code AllInShowCardsMessage.PlayerAllIn} - */ - public static final class PlayerAllIn extends - com.google.protobuf.GeneratedMessageLite< - PlayerAllIn, PlayerAllIn.Builder> implements - // @@protoc_insertion_point(message_implements:AllInShowCardsMessage.PlayerAllIn) - PlayerAllInOrBuilder { - private PlayerAllIn() { + public static final class PlayerAllIn extends + com.google.protobuf.GeneratedMessageLite + implements PlayerAllInOrBuilder { + // Use PlayerAllIn.newBuilder() to construct. + private PlayerAllIn(Builder builder) { + super(builder); } + private PlayerAllIn(boolean noInit) {} + + private static final PlayerAllIn defaultInstance; + public static PlayerAllIn getDefaultInstance() { + return defaultInstance; + } + + public PlayerAllIn getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 playerId = 1; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 1; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - } - /** - * required uint32 playerId = 1; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - } - + + // required uint32 allInCard1 = 2; public static final int ALLINCARD1_FIELD_NUMBER = 2; private int allInCard1_; - /** - * required uint32 allInCard1 = 2; - */ - @java.lang.Override public boolean hasAllInCard1() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 allInCard1 = 2; - */ - @java.lang.Override public int getAllInCard1() { return allInCard1_; } - /** - * required uint32 allInCard1 = 2; - */ - private void setAllInCard1(int value) { - bitField0_ |= 0x00000002; - allInCard1_ = value; - } - /** - * required uint32 allInCard1 = 2; - */ - private void clearAllInCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - allInCard1_ = 0; - } - + + // required uint32 allInCard2 = 3; public static final int ALLINCARD2_FIELD_NUMBER = 3; private int allInCard2_; - /** - * required uint32 allInCard2 = 3; - */ - @java.lang.Override public boolean hasAllInCard2() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 allInCard2 = 3; - */ - @java.lang.Override public int getAllInCard2() { return allInCard2_; } - /** - * required uint32 allInCard2 = 3; - */ - private void setAllInCard2(int value) { - bitField0_ |= 0x00000004; - allInCard2_ = value; - } - /** - * required uint32 allInCard2 = 3; - */ - private void clearAllInCard2() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + playerId_ = 0; + allInCard1_ = 0; allInCard2_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAllInCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAllInCard2()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, allInCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, allInCard2_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, allInCard1_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, allInCard2_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AllInShowCardsMessage.PlayerAllIn} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, Builder> implements - // @@protoc_insertion_point(builder_implements:AllInShowCardsMessage.PlayerAllIn) - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, Builder> + implements de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 playerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + allInCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + allInCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn build() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn buildPartial() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.allInCard1_ = allInCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.allInCard2_ = allInCard2_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn other) { + if (other == de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasAllInCard1()) { + setAllInCard1(other.getAllInCard1()); + } + if (other.hasAllInCard2()) { + setAllInCard2(other.getAllInCard2()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasAllInCard1()) { + + return false; + } + if (!hasAllInCard2()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + allInCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + allInCard2_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 playerId = 1; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 1; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000001; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 1; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + return this; } - - /** - * required uint32 allInCard1 = 2; - */ - @java.lang.Override + + // required uint32 allInCard1 = 2; + private int allInCard1_ ; public boolean hasAllInCard1() { - return instance.hasAllInCard1(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 allInCard1 = 2; - */ - @java.lang.Override public int getAllInCard1() { - return instance.getAllInCard1(); + return allInCard1_; } - /** - * required uint32 allInCard1 = 2; - */ public Builder setAllInCard1(int value) { - copyOnWrite(); - instance.setAllInCard1(value); + bitField0_ |= 0x00000002; + allInCard1_ = value; + return this; } - /** - * required uint32 allInCard1 = 2; - */ public Builder clearAllInCard1() { - copyOnWrite(); - instance.clearAllInCard1(); + bitField0_ = (bitField0_ & ~0x00000002); + allInCard1_ = 0; + return this; } - - /** - * required uint32 allInCard2 = 3; - */ - @java.lang.Override + + // required uint32 allInCard2 = 3; + private int allInCard2_ ; public boolean hasAllInCard2() { - return instance.hasAllInCard2(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 allInCard2 = 3; - */ - @java.lang.Override public int getAllInCard2() { - return instance.getAllInCard2(); + return allInCard2_; } - /** - * required uint32 allInCard2 = 3; - */ public Builder setAllInCard2(int value) { - copyOnWrite(); - instance.setAllInCard2(value); + bitField0_ |= 0x00000004; + allInCard2_ = value; + return this; } - /** - * required uint32 allInCard2 = 3; - */ public Builder clearAllInCard2() { - copyOnWrite(); - instance.clearAllInCard2(); + bitField0_ = (bitField0_ & ~0x00000004); + allInCard2_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AllInShowCardsMessage.PlayerAllIn) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerId()) { - return null; - } - if (!hasAllInCard1()) { - return null; - } - if (!hasAllInCard2()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn other = (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn) arg1; - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - allInCard1_ = visitor.visitInt( - hasAllInCard1(), allInCard1_, - other.hasAllInCard1(), other.allInCard1_); - allInCard2_ = visitor.visitInt( - hasAllInCard2(), allInCard2_, - other.hasAllInCard2(), other.allInCard2_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - allInCard1_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - allInCard2_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) - private static final de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerAllIn(); - } - - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerAllIn(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; public static final int PLAYERSALLIN_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList playersAllIn_; - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override + private java.util.List playersAllIn_; public java.util.List getPlayersAllInList() { return playersAllIn_; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public java.util.List getPlayersAllInOrBuilderList() { return playersAllIn_; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override public int getPlayersAllInCount() { return playersAllIn_.size(); } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index) { return playersAllIn_.get(index); } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder getPlayersAllInOrBuilder( int index) { return playersAllIn_.get(index); } - private void ensurePlayersAllInIsMutable() { - if (!playersAllIn_.isModifiable()) { - playersAllIn_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playersAllIn_); - } + + private void initFields() { + gameId_ = 0; + playersAllIn_ = java.util.Collections.emptyList(); } - - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void setPlayersAllIn( - int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - ensurePlayersAllInIsMutable(); - playersAllIn_.set(index, value); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void setPlayersAllIn( - int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.set(index, builderForValue.build()); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void addPlayersAllIn(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); + for (int i = 0; i < getPlayersAllInCount(); i++) { + if (!getPlayersAllIn(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - ensurePlayersAllInIsMutable(); - playersAllIn_.add(value); + memoizedIsInitialized = 1; + return true; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void addPlayersAllIn( - int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayersAllInIsMutable(); - playersAllIn_.add(index, value); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void addPlayersAllIn( - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.add(builderForValue.build()); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void addPlayersAllIn( - int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.add(index, builderForValue.build()); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void addAllPlayersAllIn( - java.lang.Iterable values) { - ensurePlayersAllInIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, playersAllIn_); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void clearPlayersAllIn() { - playersAllIn_ = emptyProtobufList(); - } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - private void removePlayersAllIn(int index) { - ensurePlayersAllInIsMutable(); - playersAllIn_.remove(index); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } for (int i = 0; i < playersAllIn_.size(); i++) { output.writeMessage(2, playersAllIn_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } @@ -34692,593 +27160,449 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, playersAllIn_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AllInShowCardsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AllInShowCardsMessage) - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playersAllIn_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + playersAllIn_ = java.util.Collections.unmodifiableList(playersAllIn_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.playersAllIn_ = playersAllIn_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (!other.playersAllIn_.isEmpty()) { + if (playersAllIn_.isEmpty()) { + playersAllIn_ = other.playersAllIn_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePlayersAllInIsMutable(); + playersAllIn_.addAll(other.playersAllIn_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + for (int i = 0; i < getPlayersAllInCount(); i++) { + if (!getPlayersAllIn(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addPlayersAllIn(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + private java.util.List playersAllIn_ = + java.util.Collections.emptyList(); + private void ensurePlayersAllInIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + playersAllIn_ = new java.util.ArrayList(playersAllIn_); + bitField0_ |= 0x00000002; + } + } + public java.util.List getPlayersAllInList() { - return java.util.Collections.unmodifiableList( - instance.getPlayersAllInList()); + return java.util.Collections.unmodifiableList(playersAllIn_); } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override public int getPlayersAllInCount() { - return instance.getPlayersAllInCount(); - }/** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ - @java.lang.Override + return playersAllIn_.size(); + } public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index) { - return instance.getPlayersAllIn(index); + return playersAllIn_.get(index); } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder setPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - copyOnWrite(); - instance.setPlayersAllIn(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.set(index, value); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder setPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - copyOnWrite(); - instance.setPlayersAllIn(index, builderForValue); + ensurePlayersAllInIsMutable(); + playersAllIn_.set(index, builderForValue.build()); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder addPlayersAllIn(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - copyOnWrite(); - instance.addPlayersAllIn(value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.add(value); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder addPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - copyOnWrite(); - instance.addPlayersAllIn(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.add(index, value); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder addPlayersAllIn( de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - copyOnWrite(); - instance.addPlayersAllIn(builderForValue); + ensurePlayersAllInIsMutable(); + playersAllIn_.add(builderForValue.build()); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder addPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - copyOnWrite(); - instance.addPlayersAllIn(index, builderForValue); + ensurePlayersAllInIsMutable(); + playersAllIn_.add(index, builderForValue.build()); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder addAllPlayersAllIn( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPlayersAllIn(values); + ensurePlayersAllInIsMutable(); + super.addAll(values, playersAllIn_); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder clearPlayersAllIn() { - copyOnWrite(); - instance.clearPlayersAllIn(); + playersAllIn_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; } - /** - * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - */ public Builder removePlayersAllIn(int index) { - copyOnWrite(); - instance.removePlayersAllIn(index); + ensurePlayersAllInIsMutable(); + playersAllIn_.remove(index); + return this; } - + // @@protoc_insertion_point(builder_scope:AllInShowCardsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - for (int i = 0; i < getPlayersAllInCount(); i++) { - if (!getPlayersAllIn(i).isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - playersAllIn_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage other = (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playersAllIn_= visitor.visitList(playersAllIn_, other.playersAllIn_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - if (!playersAllIn_.isModifiable()) { - playersAllIn_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playersAllIn_); - } - playersAllIn_.add( - input.readMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) - private static final de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AllInShowCardsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AllInShowCardsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) } - - public interface EndOfHandShowCardsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EndOfHandShowCardsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface EndOfHandShowCardsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * repeated .PlayerResult playerResults = 2; - */ + + // repeated .PlayerResult playerResults = 2; java.util.List getPlayerResultsList(); - /** - * repeated .PlayerResult playerResults = 2; - */ de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index); - /** - * repeated .PlayerResult playerResults = 2; - */ int getPlayerResultsCount(); } - /** - * Protobuf type {@code EndOfHandShowCardsMessage} - */ - public static final class EndOfHandShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite< - EndOfHandShowCardsMessage, EndOfHandShowCardsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:EndOfHandShowCardsMessage) - EndOfHandShowCardsMessageOrBuilder { - private EndOfHandShowCardsMessage() { - playerResults_ = emptyProtobufList(); + public static final class EndOfHandShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite + implements EndOfHandShowCardsMessageOrBuilder { + // Use EndOfHandShowCardsMessage.newBuilder() to construct. + private EndOfHandShowCardsMessage(Builder builder) { + super(builder); } + private EndOfHandShowCardsMessage(boolean noInit) {} + + private static final EndOfHandShowCardsMessage defaultInstance; + public static EndOfHandShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfHandShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // repeated .PlayerResult playerResults = 2; public static final int PLAYERRESULTS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList playerResults_; - /** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override + private java.util.List playerResults_; public java.util.List getPlayerResultsList() { return playerResults_; } - /** - * repeated .PlayerResult playerResults = 2; - */ public java.util.List getPlayerResultsOrBuilderList() { return playerResults_; } - /** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override public int getPlayerResultsCount() { return playerResults_.size(); } - /** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index) { return playerResults_.get(index); } - /** - * repeated .PlayerResult playerResults = 2; - */ public de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultsOrBuilder( int index) { return playerResults_.get(index); } - private void ensurePlayerResultsIsMutable() { - if (!playerResults_.isModifiable()) { - playerResults_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerResults_); - } + + private void initFields() { + gameId_ = 0; + playerResults_ = java.util.Collections.emptyList(); } - - /** - * repeated .PlayerResult playerResults = 2; - */ - private void setPlayerResults( - int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - ensurePlayerResultsIsMutable(); - playerResults_.set(index, value); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void setPlayerResults( - int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.set(index, builderForValue.build()); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void addPlayerResults(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); + for (int i = 0; i < getPlayerResultsCount(); i++) { + if (!getPlayerResults(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - ensurePlayerResultsIsMutable(); - playerResults_.add(value); + memoizedIsInitialized = 1; + return true; } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void addPlayerResults( - int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerResultsIsMutable(); - playerResults_.add(index, value); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void addPlayerResults( - de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.add(builderForValue.build()); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void addPlayerResults( - int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.add(index, builderForValue.build()); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void addAllPlayerResults( - java.lang.Iterable values) { - ensurePlayerResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, playerResults_); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void clearPlayerResults() { - playerResults_ = emptyProtobufList(); - } - /** - * repeated .PlayerResult playerResults = 2; - */ - private void removePlayerResults(int index) { - ensurePlayerResultsIsMutable(); - playerResults_.remove(index); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } for (int i = 0; i < playerResults_.size(); i++) { output.writeMessage(2, playerResults_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } @@ -35286,2970 +27610,2497 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, playerResults_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code EndOfHandShowCardsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:EndOfHandShowCardsMessage) - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + playerResults_ = java.util.Collections.unmodifiableList(playerResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.playerResults_ = playerResults_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (!other.playerResults_.isEmpty()) { + if (playerResults_.isEmpty()) { + playerResults_ = other.playerResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePlayerResultsIsMutable(); + playerResults_.addAll(other.playerResults_); + } + + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + for (int i = 0; i < getPlayerResultsCount(); i++) { + if (!getPlayerResults(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addPlayerResults(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override + + // repeated .PlayerResult playerResults = 2; + private java.util.List playerResults_ = + java.util.Collections.emptyList(); + private void ensurePlayerResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + playerResults_ = new java.util.ArrayList(playerResults_); + bitField0_ |= 0x00000002; + } + } + public java.util.List getPlayerResultsList() { - return java.util.Collections.unmodifiableList( - instance.getPlayerResultsList()); + return java.util.Collections.unmodifiableList(playerResults_); } - /** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override public int getPlayerResultsCount() { - return instance.getPlayerResultsCount(); - }/** - * repeated .PlayerResult playerResults = 2; - */ - @java.lang.Override + return playerResults_.size(); + } public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index) { - return instance.getPlayerResults(index); + return playerResults_.get(index); } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder setPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - copyOnWrite(); - instance.setPlayerResults(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.set(index, value); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder setPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerResults(index, builderForValue); + ensurePlayerResultsIsMutable(); + playerResults_.set(index, builderForValue.build()); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder addPlayerResults(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - copyOnWrite(); - instance.addPlayerResults(value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.add(value); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder addPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - copyOnWrite(); - instance.addPlayerResults(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.add(index, value); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder addPlayerResults( de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - copyOnWrite(); - instance.addPlayerResults(builderForValue); + ensurePlayerResultsIsMutable(); + playerResults_.add(builderForValue.build()); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder addPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - copyOnWrite(); - instance.addPlayerResults(index, builderForValue); + ensurePlayerResultsIsMutable(); + playerResults_.add(index, builderForValue.build()); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder addAllPlayerResults( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllPlayerResults(values); + ensurePlayerResultsIsMutable(); + super.addAll(values, playerResults_); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder clearPlayerResults() { - copyOnWrite(); - instance.clearPlayerResults(); + playerResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; } - /** - * repeated .PlayerResult playerResults = 2; - */ public Builder removePlayerResults(int index) { - copyOnWrite(); - instance.removePlayerResults(index); + ensurePlayerResultsIsMutable(); + playerResults_.remove(index); + return this; } - + // @@protoc_insertion_point(builder_scope:EndOfHandShowCardsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - for (int i = 0; i < getPlayerResultsCount(); i++) { - if (!getPlayerResults(i).isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - playerResults_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage other = (de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerResults_= visitor.visitList(playerResults_, other.playerResults_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - if (!playerResults_.isModifiable()) { - playerResults_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(playerResults_); - } - playerResults_.add( - input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) - private static final de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new EndOfHandShowCardsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new EndOfHandShowCardsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) } - - public interface EndOfHandHideCardsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EndOfHandHideCardsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface EndOfHandHideCardsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required uint32 moneyWon = 3; - */ + + // required uint32 moneyWon = 3; boolean hasMoneyWon(); - /** - * required uint32 moneyWon = 3; - */ int getMoneyWon(); - - /** - * required uint32 playerMoney = 4; - */ + + // required uint32 playerMoney = 4; boolean hasPlayerMoney(); - /** - * required uint32 playerMoney = 4; - */ int getPlayerMoney(); } - /** - * Protobuf type {@code EndOfHandHideCardsMessage} - */ - public static final class EndOfHandHideCardsMessage extends - com.google.protobuf.GeneratedMessageLite< - EndOfHandHideCardsMessage, EndOfHandHideCardsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:EndOfHandHideCardsMessage) - EndOfHandHideCardsMessageOrBuilder { - private EndOfHandHideCardsMessage() { + public static final class EndOfHandHideCardsMessage extends + com.google.protobuf.GeneratedMessageLite + implements EndOfHandHideCardsMessageOrBuilder { + // Use EndOfHandHideCardsMessage.newBuilder() to construct. + private EndOfHandHideCardsMessage(Builder builder) { + super(builder); } + private EndOfHandHideCardsMessage(boolean noInit) {} + + private static final EndOfHandHideCardsMessage defaultInstance; + public static EndOfHandHideCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfHandHideCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required uint32 moneyWon = 3; public static final int MONEYWON_FIELD_NUMBER = 3; private int moneyWon_; - /** - * required uint32 moneyWon = 3; - */ - @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 moneyWon = 3; - */ - @java.lang.Override public int getMoneyWon() { return moneyWon_; } - /** - * required uint32 moneyWon = 3; - */ - private void setMoneyWon(int value) { - bitField0_ |= 0x00000004; - moneyWon_ = value; - } - /** - * required uint32 moneyWon = 3; - */ - private void clearMoneyWon() { - bitField0_ = (bitField0_ & ~0x00000004); - moneyWon_ = 0; - } - + + // required uint32 playerMoney = 4; public static final int PLAYERMONEY_FIELD_NUMBER = 4; private int playerMoney_; - /** - * required uint32 playerMoney = 4; - */ - @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 playerMoney = 4; - */ - @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - /** - * required uint32 playerMoney = 4; - */ - private void setPlayerMoney(int value) { - bitField0_ |= 0x00000008; - playerMoney_ = value; - } - /** - * required uint32 playerMoney = 4; - */ - private void clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000008); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + moneyWon_ = 0; playerMoney_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMoneyWon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, moneyWon_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, playerMoney_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, moneyWon_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, playerMoney_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code EndOfHandHideCardsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:EndOfHandHideCardsMessage) - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + moneyWon_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = new de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.moneyWon_ = moneyWon_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.playerMoney_ = playerMoney_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasMoneyWon()) { + setMoneyWon(other.getMoneyWon()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasMoneyWon()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + moneyWon_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + playerMoney_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required uint32 moneyWon = 3; - */ - @java.lang.Override + + // required uint32 moneyWon = 3; + private int moneyWon_ ; public boolean hasMoneyWon() { - return instance.hasMoneyWon(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 moneyWon = 3; - */ - @java.lang.Override public int getMoneyWon() { - return instance.getMoneyWon(); + return moneyWon_; } - /** - * required uint32 moneyWon = 3; - */ public Builder setMoneyWon(int value) { - copyOnWrite(); - instance.setMoneyWon(value); + bitField0_ |= 0x00000004; + moneyWon_ = value; + return this; } - /** - * required uint32 moneyWon = 3; - */ public Builder clearMoneyWon() { - copyOnWrite(); - instance.clearMoneyWon(); + bitField0_ = (bitField0_ & ~0x00000004); + moneyWon_ = 0; + return this; } - - /** - * required uint32 playerMoney = 4; - */ - @java.lang.Override + + // required uint32 playerMoney = 4; + private int playerMoney_ ; public boolean hasPlayerMoney() { - return instance.hasPlayerMoney(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 playerMoney = 4; - */ - @java.lang.Override public int getPlayerMoney() { - return instance.getPlayerMoney(); + return playerMoney_; } - /** - * required uint32 playerMoney = 4; - */ public Builder setPlayerMoney(int value) { - copyOnWrite(); - instance.setPlayerMoney(value); + bitField0_ |= 0x00000008; + playerMoney_ = value; + return this; } - /** - * required uint32 playerMoney = 4; - */ public Builder clearPlayerMoney() { - copyOnWrite(); - instance.clearPlayerMoney(); + bitField0_ = (bitField0_ & ~0x00000008); + playerMoney_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:EndOfHandHideCardsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasMoneyWon()) { - return null; - } - if (!hasPlayerMoney()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage other = (de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - moneyWon_ = visitor.visitInt( - hasMoneyWon(), moneyWon_, - other.hasMoneyWon(), other.moneyWon_); - playerMoney_ = visitor.visitInt( - hasPlayerMoney(), playerMoney_, - other.hasPlayerMoney(), other.playerMoney_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - moneyWon_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - playerMoney_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) - private static final de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new EndOfHandHideCardsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new EndOfHandHideCardsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) } - - public interface ShowMyCardsRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ShowMyCardsRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { + + public interface ShowMyCardsRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { } - /** - * Protobuf type {@code ShowMyCardsRequestMessage} - */ - public static final class ShowMyCardsRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - ShowMyCardsRequestMessage, ShowMyCardsRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ShowMyCardsRequestMessage) - ShowMyCardsRequestMessageOrBuilder { - private ShowMyCardsRequestMessage() { + public static final class ShowMyCardsRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements ShowMyCardsRequestMessageOrBuilder { + // Use ShowMyCardsRequestMessage.newBuilder() to construct. + private ShowMyCardsRequestMessage(Builder builder) { + super(builder); } - @java.lang.Override + private ShowMyCardsRequestMessage(boolean noInit) {} + + private static final ShowMyCardsRequestMessage defaultInstance; + public static ShowMyCardsRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public ShowMyCardsRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + getSerializedSize(); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ShowMyCardsRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ShowMyCardsRequestMessage) - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage build() { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = new de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage(this); + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance()) return this; + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + } + } + } + + // @@protoc_insertion_point(builder_scope:ShowMyCardsRequestMessage) } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage other = (de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage) arg1; - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ShowMyCardsRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ShowMyCardsRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) } - - public interface AfterHandShowCardsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AfterHandShowCardsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .PlayerResult playerResult = 1; - */ + + public interface AfterHandShowCardsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .PlayerResult playerResult = 1; boolean hasPlayerResult(); - /** - * required .PlayerResult playerResult = 1; - */ de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult(); } - /** - * Protobuf type {@code AfterHandShowCardsMessage} - */ - public static final class AfterHandShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite< - AfterHandShowCardsMessage, AfterHandShowCardsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AfterHandShowCardsMessage) - AfterHandShowCardsMessageOrBuilder { - private AfterHandShowCardsMessage() { + public static final class AfterHandShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite + implements AfterHandShowCardsMessageOrBuilder { + // Use AfterHandShowCardsMessage.newBuilder() to construct. + private AfterHandShowCardsMessage(Builder builder) { + super(builder); } + private AfterHandShowCardsMessage(boolean noInit) {} + + private static final AfterHandShowCardsMessage defaultInstance; + public static AfterHandShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public AfterHandShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required .PlayerResult playerResult = 1; public static final int PLAYERRESULT_FIELD_NUMBER = 1; private de.pokerth.protocol.ProtoBuf.PlayerResult playerResult_; - /** - * required .PlayerResult playerResult = 1; - */ - @java.lang.Override public boolean hasPlayerResult() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .PlayerResult playerResult = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { - return playerResult_ == null ? de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance() : playerResult_; + return playerResult_; } - /** - * required .PlayerResult playerResult = 1; - */ - private void setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - playerResult_ = value; - bitField0_ |= 0x00000001; - } - /** - * required .PlayerResult playerResult = 1; - */ - private void setPlayerResult( - de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - playerResult_ = builderForValue.build(); - bitField0_ |= 0x00000001; + + private void initFields() { + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); } - /** - * required .PlayerResult playerResult = 1; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerResult()) { + memoizedIsInitialized = 0; + return false; } - if (playerResult_ != null && - playerResult_ != de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) { - playerResult_ = - de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(playerResult_).mergeFrom(value).buildPartial(); - } else { - playerResult_ = value; + if (!getPlayerResult().isInitialized()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000001; + memoizedIsInitialized = 1; + return true; } - /** - * required .PlayerResult playerResult = 1; - */ - private void clearPlayerResult() { playerResult_ = null; - bitField0_ = (bitField0_ & ~0x00000001); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getPlayerResult()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, playerResult_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPlayerResult()); + .computeMessageSize(1, playerResult_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AfterHandShowCardsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AfterHandShowCardsMessage) - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .PlayerResult playerResult = 1; - */ - @java.lang.Override - public boolean hasPlayerResult() { - return instance.hasPlayerResult(); + + private void maybeForceBuilderInitialization() { } - /** - * required .PlayerResult playerResult = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { - return instance.getPlayerResult(); + private static Builder create() { + return new Builder(); } - /** - * required .PlayerResult playerResult = 1; - */ - public Builder setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - copyOnWrite(); - instance.setPlayerResult(value); + + public Builder clear() { + super.clear(); + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000001); return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * required .PlayerResult playerResult = 1; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerResult_ = playerResult_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance()) return this; + if (other.hasPlayerResult()) { + mergePlayerResult(other.getPlayerResult()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerResult()) { + + return false; + } + if (!getPlayerResult().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(); + if (hasPlayerResult()) { + subBuilder.mergeFrom(getPlayerResult()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerResult(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required .PlayerResult playerResult = 1; + private de.pokerth.protocol.ProtoBuf.PlayerResult playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + public boolean hasPlayerResult() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { + return playerResult_; + } + public Builder setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (value == null) { + throw new NullPointerException(); + } + playerResult_ = value; + + bitField0_ |= 0x00000001; + return this; + } public Builder setPlayerResult( de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerResult(builderForValue); + playerResult_ = builderForValue.build(); + + bitField0_ |= 0x00000001; return this; } - /** - * required .PlayerResult playerResult = 1; - */ public Builder mergePlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - copyOnWrite(); - instance.mergePlayerResult(value); + if (((bitField0_ & 0x00000001) == 0x00000001) && + playerResult_ != de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) { + playerResult_ = + de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(playerResult_).mergeFrom(value).buildPartial(); + } else { + playerResult_ = value; + } + + bitField0_ |= 0x00000001; return this; } - /** - * required .PlayerResult playerResult = 1; - */ - public Builder clearPlayerResult() { copyOnWrite(); - instance.clearPlayerResult(); + public Builder clearPlayerResult() { + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000001); return this; } - + // @@protoc_insertion_point(builder_scope:AfterHandShowCardsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasPlayerResult()) { - return null; - } - if (!getPlayerResult().isInitialized()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage other = (de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage) arg1; - playerResult_ = visitor.visitMessage(playerResult_, other.playerResult_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = playerResult_.toBuilder(); - } - playerResult_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerResult_); - playerResult_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) - private static final de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AfterHandShowCardsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AfterHandShowCardsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) } - - public interface EndOfGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EndOfGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface EndOfGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 winnerPlayerId = 2; - */ + + // required uint32 winnerPlayerId = 2; boolean hasWinnerPlayerId(); - /** - * required uint32 winnerPlayerId = 2; - */ int getWinnerPlayerId(); } - /** - * Protobuf type {@code EndOfGameMessage} - */ - public static final class EndOfGameMessage extends - com.google.protobuf.GeneratedMessageLite< - EndOfGameMessage, EndOfGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:EndOfGameMessage) - EndOfGameMessageOrBuilder { - private EndOfGameMessage() { + public static final class EndOfGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements EndOfGameMessageOrBuilder { + // Use EndOfGameMessage.newBuilder() to construct. + private EndOfGameMessage(Builder builder) { + super(builder); } + private EndOfGameMessage(boolean noInit) {} + + private static final EndOfGameMessage defaultInstance; + public static EndOfGameMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 winnerPlayerId = 2; public static final int WINNERPLAYERID_FIELD_NUMBER = 2; private int winnerPlayerId_; - /** - * required uint32 winnerPlayerId = 2; - */ - @java.lang.Override public boolean hasWinnerPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 winnerPlayerId = 2; - */ - @java.lang.Override public int getWinnerPlayerId() { return winnerPlayerId_; } - /** - * required uint32 winnerPlayerId = 2; - */ - private void setWinnerPlayerId(int value) { - bitField0_ |= 0x00000002; - winnerPlayerId_ = value; - } - /** - * required uint32 winnerPlayerId = 2; - */ - private void clearWinnerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; winnerPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasWinnerPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, winnerPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, winnerPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code EndOfGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:EndOfGameMessage) - de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + winnerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = new de.pokerth.protocol.ProtoBuf.EndOfGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.winnerPlayerId_ = winnerPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasWinnerPlayerId()) { + setWinnerPlayerId(other.getWinnerPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasWinnerPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + winnerPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 winnerPlayerId = 2; - */ - @java.lang.Override + + // required uint32 winnerPlayerId = 2; + private int winnerPlayerId_ ; public boolean hasWinnerPlayerId() { - return instance.hasWinnerPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 winnerPlayerId = 2; - */ - @java.lang.Override public int getWinnerPlayerId() { - return instance.getWinnerPlayerId(); + return winnerPlayerId_; } - /** - * required uint32 winnerPlayerId = 2; - */ public Builder setWinnerPlayerId(int value) { - copyOnWrite(); - instance.setWinnerPlayerId(value); + bitField0_ |= 0x00000002; + winnerPlayerId_ = value; + return this; } - /** - * required uint32 winnerPlayerId = 2; - */ public Builder clearWinnerPlayerId() { - copyOnWrite(); - instance.clearWinnerPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + winnerPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:EndOfGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.EndOfGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasWinnerPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.EndOfGameMessage other = (de.pokerth.protocol.ProtoBuf.EndOfGameMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - winnerPlayerId_ = visitor.visitInt( - hasWinnerPlayerId(), winnerPlayerId_, - other.hasWinnerPlayerId(), other.winnerPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - winnerPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.EndOfGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:EndOfGameMessage) - private static final de.pokerth.protocol.ProtoBuf.EndOfGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new EndOfGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new EndOfGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:EndOfGameMessage) } - - public interface PlayerIdChangedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PlayerIdChangedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 oldPlayerId = 1; - */ + + public interface PlayerIdChangedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 oldPlayerId = 1; boolean hasOldPlayerId(); - /** - * required uint32 oldPlayerId = 1; - */ int getOldPlayerId(); - - /** - * required uint32 newPlayerId = 2; - */ + + // required uint32 newPlayerId = 2; boolean hasNewPlayerId(); - /** - * required uint32 newPlayerId = 2; - */ int getNewPlayerId(); } - /** - * Protobuf type {@code PlayerIdChangedMessage} - */ - public static final class PlayerIdChangedMessage extends - com.google.protobuf.GeneratedMessageLite< - PlayerIdChangedMessage, PlayerIdChangedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PlayerIdChangedMessage) - PlayerIdChangedMessageOrBuilder { - private PlayerIdChangedMessage() { + public static final class PlayerIdChangedMessage extends + com.google.protobuf.GeneratedMessageLite + implements PlayerIdChangedMessageOrBuilder { + // Use PlayerIdChangedMessage.newBuilder() to construct. + private PlayerIdChangedMessage(Builder builder) { + super(builder); } + private PlayerIdChangedMessage(boolean noInit) {} + + private static final PlayerIdChangedMessage defaultInstance; + public static PlayerIdChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerIdChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 oldPlayerId = 1; public static final int OLDPLAYERID_FIELD_NUMBER = 1; private int oldPlayerId_; - /** - * required uint32 oldPlayerId = 1; - */ - @java.lang.Override public boolean hasOldPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 oldPlayerId = 1; - */ - @java.lang.Override public int getOldPlayerId() { return oldPlayerId_; } - /** - * required uint32 oldPlayerId = 1; - */ - private void setOldPlayerId(int value) { - bitField0_ |= 0x00000001; - oldPlayerId_ = value; - } - /** - * required uint32 oldPlayerId = 1; - */ - private void clearOldPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - oldPlayerId_ = 0; - } - + + // required uint32 newPlayerId = 2; public static final int NEWPLAYERID_FIELD_NUMBER = 2; private int newPlayerId_; - /** - * required uint32 newPlayerId = 2; - */ - @java.lang.Override public boolean hasNewPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newPlayerId = 2; - */ - @java.lang.Override public int getNewPlayerId() { return newPlayerId_; } - /** - * required uint32 newPlayerId = 2; - */ - private void setNewPlayerId(int value) { - bitField0_ |= 0x00000002; - newPlayerId_ = value; - } - /** - * required uint32 newPlayerId = 2; - */ - private void clearNewPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + oldPlayerId_ = 0; newPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasOldPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, oldPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, newPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, oldPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PlayerIdChangedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PlayerIdChangedMessage) - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 oldPlayerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + oldPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = new de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.oldPlayerId_ = oldPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newPlayerId_ = newPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance()) return this; + if (other.hasOldPlayerId()) { + setOldPlayerId(other.getOldPlayerId()); + } + if (other.hasNewPlayerId()) { + setNewPlayerId(other.getNewPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasOldPlayerId()) { + + return false; + } + if (!hasNewPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + oldPlayerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 oldPlayerId = 1; + private int oldPlayerId_ ; public boolean hasOldPlayerId() { - return instance.hasOldPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 oldPlayerId = 1; - */ - @java.lang.Override public int getOldPlayerId() { - return instance.getOldPlayerId(); + return oldPlayerId_; } - /** - * required uint32 oldPlayerId = 1; - */ public Builder setOldPlayerId(int value) { - copyOnWrite(); - instance.setOldPlayerId(value); + bitField0_ |= 0x00000001; + oldPlayerId_ = value; + return this; } - /** - * required uint32 oldPlayerId = 1; - */ public Builder clearOldPlayerId() { - copyOnWrite(); - instance.clearOldPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + oldPlayerId_ = 0; + return this; } - - /** - * required uint32 newPlayerId = 2; - */ - @java.lang.Override + + // required uint32 newPlayerId = 2; + private int newPlayerId_ ; public boolean hasNewPlayerId() { - return instance.hasNewPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 newPlayerId = 2; - */ - @java.lang.Override public int getNewPlayerId() { - return instance.getNewPlayerId(); + return newPlayerId_; } - /** - * required uint32 newPlayerId = 2; - */ public Builder setNewPlayerId(int value) { - copyOnWrite(); - instance.setNewPlayerId(value); + bitField0_ |= 0x00000002; + newPlayerId_ = value; + return this; } - /** - * required uint32 newPlayerId = 2; - */ public Builder clearNewPlayerId() { - copyOnWrite(); - instance.clearNewPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + newPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:PlayerIdChangedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasOldPlayerId()) { - return null; - } - if (!hasNewPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage other = (de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage) arg1; - oldPlayerId_ = visitor.visitInt( - hasOldPlayerId(), oldPlayerId_, - other.hasOldPlayerId(), other.oldPlayerId_); - newPlayerId_ = visitor.visitInt( - hasNewPlayerId(), newPlayerId_, - other.hasNewPlayerId(), other.newPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - oldPlayerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) - private static final de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PlayerIdChangedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PlayerIdChangedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) } - - public interface AskKickPlayerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AskKickPlayerMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface AskKickPlayerMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); } - /** - * Protobuf type {@code AskKickPlayerMessage} - */ - public static final class AskKickPlayerMessage extends - com.google.protobuf.GeneratedMessageLite< - AskKickPlayerMessage, AskKickPlayerMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AskKickPlayerMessage) - AskKickPlayerMessageOrBuilder { - private AskKickPlayerMessage() { + public static final class AskKickPlayerMessage extends + com.google.protobuf.GeneratedMessageLite + implements AskKickPlayerMessageOrBuilder { + // Use AskKickPlayerMessage.newBuilder() to construct. + private AskKickPlayerMessage(Builder builder) { + super(builder); } + private AskKickPlayerMessage(boolean noInit) {} + + private static final AskKickPlayerMessage defaultInstance; + public static AskKickPlayerMessage getDefaultInstance() { + return defaultInstance; + } + + public AskKickPlayerMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + gameId_ = 0; playerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AskKickPlayerMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AskKickPlayerMessage) - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage build() { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = new de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AskKickPlayerMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage other = (de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) - private static final de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AskKickPlayerMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AskKickPlayerMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) } - - public interface AskKickDeniedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AskKickDeniedMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface AskKickDeniedMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 playerId = 2; - */ + + // required uint32 playerId = 2; boolean hasPlayerId(); - /** - * required uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; boolean hasKickDeniedReason(); - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason(); } - /** - * Protobuf type {@code AskKickDeniedMessage} - */ - public static final class AskKickDeniedMessage extends - com.google.protobuf.GeneratedMessageLite< - AskKickDeniedMessage, AskKickDeniedMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AskKickDeniedMessage) - AskKickDeniedMessageOrBuilder { - private AskKickDeniedMessage() { + public static final class AskKickDeniedMessage extends + com.google.protobuf.GeneratedMessageLite + implements AskKickDeniedMessageOrBuilder { + // Use AskKickDeniedMessage.newBuilder() to construct. + private AskKickDeniedMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code AskKickDeniedMessage.KickDeniedReason} - */ + private AskKickDeniedMessage(boolean noInit) {} + + private static final AskKickDeniedMessage defaultInstance; + public static AskKickDeniedMessage getDefaultInstance() { + return defaultInstance; + } + + public AskKickDeniedMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum KickDeniedReason implements com.google.protobuf.Internal.EnumLite { - /** - * kickDeniedInvalidGameState = 0; - */ - kickDeniedInvalidGameState(0), - /** - * kickDeniedNotPossible = 1; - */ - kickDeniedNotPossible(1), - /** - * kickDeniedTryAgainLater = 2; - */ - kickDeniedTryAgainLater(2), - /** - * kickDeniedAlreadyInProgress = 3; - */ - kickDeniedAlreadyInProgress(3), - /** - * kickDeniedInvalidPlayerId = 4; - */ - kickDeniedInvalidPlayerId(4), + kickDeniedInvalidGameState(0, 0), + kickDeniedNotPossible(1, 1), + kickDeniedTryAgainLater(2, 2), + kickDeniedAlreadyInProgress(3, 3), + kickDeniedInvalidPlayerId(4, 4), ; - - /** - * kickDeniedInvalidGameState = 0; - */ + public static final int kickDeniedInvalidGameState_VALUE = 0; - /** - * kickDeniedNotPossible = 1; - */ public static final int kickDeniedNotPossible_VALUE = 1; - /** - * kickDeniedTryAgainLater = 2; - */ public static final int kickDeniedTryAgainLater_VALUE = 2; - /** - * kickDeniedAlreadyInProgress = 3; - */ public static final int kickDeniedAlreadyInProgress_VALUE = 3; - /** - * kickDeniedInvalidPlayerId = 4; - */ public static final int kickDeniedInvalidPlayerId_VALUE = 4; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static KickDeniedReason valueOf(int value) { - return forNumber(value); - } - - public static KickDeniedReason forNumber(int value) { switch (value) { case 0: return kickDeniedInvalidGameState; case 1: return kickDeniedNotPossible; @@ -38259,1899 +30110,1508 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - KickDeniedReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public KickDeniedReason findValueByNumber(int number) { - return KickDeniedReason.forNumber(number); + return KickDeniedReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return KickDeniedReasonVerifier.INSTANCE; - } - - private static final class KickDeniedReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new KickDeniedReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return KickDeniedReason.forNumber(number) != null; - } - }; - + private final int value; - - private KickDeniedReason(int value) { + + private KickDeniedReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:AskKickDeniedMessage.KickDeniedReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * required uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * required uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; public static final int KICKDENIEDREASON_FIELD_NUMBER = 3; - private int kickDeniedReason_; - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_; public boolean hasKickDeniedReason() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason result = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.forNumber(kickDeniedReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState : result; + return kickDeniedReason_; } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - private void setKickDeniedReason(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - kickDeniedReason_ = value.getNumber(); + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickDeniedReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - private void clearKickDeniedReason() { - bitField0_ = (bitField0_ & ~0x00000004); - kickDeniedReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, kickDeniedReason_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, kickDeniedReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, kickDeniedReason_); + .computeEnumSize(3, kickDeniedReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AskKickDeniedMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AskKickDeniedMessage) - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage build() { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = new de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.kickDeniedReason_ = kickDeniedReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasKickDeniedReason()) { + setKickDeniedReason(other.getKickDeniedReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasKickDeniedReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + kickDeniedReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 playerId = 2; - */ - @java.lang.Override + + // required uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * required uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * required uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - @java.lang.Override + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; public boolean hasKickDeniedReason() { - return instance.hasKickDeniedReason(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { - return instance.getKickDeniedReason(); + return kickDeniedReason_; } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ public Builder setKickDeniedReason(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value) { - copyOnWrite(); - instance.setKickDeniedReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + kickDeniedReason_ = value; + return this; } - /** - * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - */ public Builder clearKickDeniedReason() { - copyOnWrite(); - instance.clearKickDeniedReason(); + bitField0_ = (bitField0_ & ~0x00000004); + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + return this; } - + // @@protoc_insertion_point(builder_scope:AskKickDeniedMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPlayerId()) { - return null; - } - if (!hasKickDeniedReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage other = (de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - kickDeniedReason_ = visitor.visitInt(hasKickDeniedReason(), kickDeniedReason_, - other.hasKickDeniedReason(), other.kickDeniedReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - kickDeniedReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) - private static final de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AskKickDeniedMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AskKickDeniedMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) } - - public interface StartKickPetitionMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:StartKickPetitionMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface StartKickPetitionMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 petitionId = 2; - */ + + // required uint32 petitionId = 2; boolean hasPetitionId(); - /** - * required uint32 petitionId = 2; - */ int getPetitionId(); - - /** - * required uint32 proposingPlayerId = 3; - */ + + // required uint32 proposingPlayerId = 3; boolean hasProposingPlayerId(); - /** - * required uint32 proposingPlayerId = 3; - */ int getProposingPlayerId(); - - /** - * required uint32 kickPlayerId = 4; - */ + + // required uint32 kickPlayerId = 4; boolean hasKickPlayerId(); - /** - * required uint32 kickPlayerId = 4; - */ int getKickPlayerId(); - - /** - * required uint32 kickTimeoutSec = 5; - */ + + // required uint32 kickTimeoutSec = 5; boolean hasKickTimeoutSec(); - /** - * required uint32 kickTimeoutSec = 5; - */ int getKickTimeoutSec(); - - /** - * required uint32 numVotesNeededToKick = 6; - */ + + // required uint32 numVotesNeededToKick = 6; boolean hasNumVotesNeededToKick(); - /** - * required uint32 numVotesNeededToKick = 6; - */ int getNumVotesNeededToKick(); } - /** - * Protobuf type {@code StartKickPetitionMessage} - */ - public static final class StartKickPetitionMessage extends - com.google.protobuf.GeneratedMessageLite< - StartKickPetitionMessage, StartKickPetitionMessage.Builder> implements - // @@protoc_insertion_point(message_implements:StartKickPetitionMessage) - StartKickPetitionMessageOrBuilder { - private StartKickPetitionMessage() { + public static final class StartKickPetitionMessage extends + com.google.protobuf.GeneratedMessageLite + implements StartKickPetitionMessageOrBuilder { + // Use StartKickPetitionMessage.newBuilder() to construct. + private StartKickPetitionMessage(Builder builder) { + super(builder); } + private StartKickPetitionMessage(boolean noInit) {} + + private static final StartKickPetitionMessage defaultInstance; + public static StartKickPetitionMessage getDefaultInstance() { + return defaultInstance; + } + + public StartKickPetitionMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 petitionId = 2; public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { return petitionId_; } - /** - * required uint32 petitionId = 2; - */ - private void setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - } - /** - * required uint32 petitionId = 2; - */ - private void clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - } - + + // required uint32 proposingPlayerId = 3; public static final int PROPOSINGPLAYERID_FIELD_NUMBER = 3; private int proposingPlayerId_; - /** - * required uint32 proposingPlayerId = 3; - */ - @java.lang.Override public boolean hasProposingPlayerId() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 proposingPlayerId = 3; - */ - @java.lang.Override public int getProposingPlayerId() { return proposingPlayerId_; } - /** - * required uint32 proposingPlayerId = 3; - */ - private void setProposingPlayerId(int value) { - bitField0_ |= 0x00000004; - proposingPlayerId_ = value; - } - /** - * required uint32 proposingPlayerId = 3; - */ - private void clearProposingPlayerId() { - bitField0_ = (bitField0_ & ~0x00000004); - proposingPlayerId_ = 0; - } - + + // required uint32 kickPlayerId = 4; public static final int KICKPLAYERID_FIELD_NUMBER = 4; private int kickPlayerId_; - /** - * required uint32 kickPlayerId = 4; - */ - @java.lang.Override public boolean hasKickPlayerId() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 kickPlayerId = 4; - */ - @java.lang.Override public int getKickPlayerId() { return kickPlayerId_; } - /** - * required uint32 kickPlayerId = 4; - */ - private void setKickPlayerId(int value) { - bitField0_ |= 0x00000008; - kickPlayerId_ = value; - } - /** - * required uint32 kickPlayerId = 4; - */ - private void clearKickPlayerId() { - bitField0_ = (bitField0_ & ~0x00000008); - kickPlayerId_ = 0; - } - + + // required uint32 kickTimeoutSec = 5; public static final int KICKTIMEOUTSEC_FIELD_NUMBER = 5; private int kickTimeoutSec_; - /** - * required uint32 kickTimeoutSec = 5; - */ - @java.lang.Override public boolean hasKickTimeoutSec() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 kickTimeoutSec = 5; - */ - @java.lang.Override public int getKickTimeoutSec() { return kickTimeoutSec_; } - /** - * required uint32 kickTimeoutSec = 5; - */ - private void setKickTimeoutSec(int value) { - bitField0_ |= 0x00000010; - kickTimeoutSec_ = value; - } - /** - * required uint32 kickTimeoutSec = 5; - */ - private void clearKickTimeoutSec() { - bitField0_ = (bitField0_ & ~0x00000010); - kickTimeoutSec_ = 0; - } - + + // required uint32 numVotesNeededToKick = 6; public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 6; private int numVotesNeededToKick_; - /** - * required uint32 numVotesNeededToKick = 6; - */ - @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required uint32 numVotesNeededToKick = 6; - */ - @java.lang.Override public int getNumVotesNeededToKick() { return numVotesNeededToKick_; } - /** - * required uint32 numVotesNeededToKick = 6; - */ - private void setNumVotesNeededToKick(int value) { - bitField0_ |= 0x00000020; - numVotesNeededToKick_ = value; - } - /** - * required uint32 numVotesNeededToKick = 6; - */ - private void clearNumVotesNeededToKick() { - bitField0_ = (bitField0_ & ~0x00000020); + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + proposingPlayerId_ = 0; + kickPlayerId_ = 0; + kickTimeoutSec_ = 0; numVotesNeededToKick_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasProposingPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickTimeoutSec()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesNeededToKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, proposingPlayerId_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, kickPlayerId_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, kickTimeoutSec_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeUInt32(6, numVotesNeededToKick_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, proposingPlayerId_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, kickPlayerId_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, kickTimeoutSec_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, numVotesNeededToKick_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code StartKickPetitionMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:StartKickPetitionMessage) - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + proposingPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + kickPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + kickTimeoutSec_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + numVotesNeededToKick_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage build() { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = new de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.proposingPlayerId_ = proposingPlayerId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.kickPlayerId_ = kickPlayerId_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.kickTimeoutSec_ = kickTimeoutSec_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.numVotesNeededToKick_ = numVotesNeededToKick_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasProposingPlayerId()) { + setProposingPlayerId(other.getProposingPlayerId()); + } + if (other.hasKickPlayerId()) { + setKickPlayerId(other.getKickPlayerId()); + } + if (other.hasKickTimeoutSec()) { + setKickTimeoutSec(other.getKickTimeoutSec()); + } + if (other.hasNumVotesNeededToKick()) { + setNumVotesNeededToKick(other.getNumVotesNeededToKick()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasProposingPlayerId()) { + + return false; + } + if (!hasKickPlayerId()) { + + return false; + } + if (!hasKickTimeoutSec()) { + + return false; + } + if (!hasNumVotesNeededToKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + proposingPlayerId_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + kickPlayerId_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + kickTimeoutSec_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + numVotesNeededToKick_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override + + // required uint32 petitionId = 2; + private int petitionId_ ; public boolean hasPetitionId() { - return instance.hasPetitionId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { - return instance.getPetitionId(); + return petitionId_; } - /** - * required uint32 petitionId = 2; - */ public Builder setPetitionId(int value) { - copyOnWrite(); - instance.setPetitionId(value); + bitField0_ |= 0x00000002; + petitionId_ = value; + return this; } - /** - * required uint32 petitionId = 2; - */ public Builder clearPetitionId() { - copyOnWrite(); - instance.clearPetitionId(); + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + return this; } - - /** - * required uint32 proposingPlayerId = 3; - */ - @java.lang.Override + + // required uint32 proposingPlayerId = 3; + private int proposingPlayerId_ ; public boolean hasProposingPlayerId() { - return instance.hasProposingPlayerId(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 proposingPlayerId = 3; - */ - @java.lang.Override public int getProposingPlayerId() { - return instance.getProposingPlayerId(); + return proposingPlayerId_; } - /** - * required uint32 proposingPlayerId = 3; - */ public Builder setProposingPlayerId(int value) { - copyOnWrite(); - instance.setProposingPlayerId(value); + bitField0_ |= 0x00000004; + proposingPlayerId_ = value; + return this; } - /** - * required uint32 proposingPlayerId = 3; - */ public Builder clearProposingPlayerId() { - copyOnWrite(); - instance.clearProposingPlayerId(); + bitField0_ = (bitField0_ & ~0x00000004); + proposingPlayerId_ = 0; + return this; } - - /** - * required uint32 kickPlayerId = 4; - */ - @java.lang.Override + + // required uint32 kickPlayerId = 4; + private int kickPlayerId_ ; public boolean hasKickPlayerId() { - return instance.hasKickPlayerId(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 kickPlayerId = 4; - */ - @java.lang.Override public int getKickPlayerId() { - return instance.getKickPlayerId(); + return kickPlayerId_; } - /** - * required uint32 kickPlayerId = 4; - */ public Builder setKickPlayerId(int value) { - copyOnWrite(); - instance.setKickPlayerId(value); + bitField0_ |= 0x00000008; + kickPlayerId_ = value; + return this; } - /** - * required uint32 kickPlayerId = 4; - */ public Builder clearKickPlayerId() { - copyOnWrite(); - instance.clearKickPlayerId(); + bitField0_ = (bitField0_ & ~0x00000008); + kickPlayerId_ = 0; + return this; } - - /** - * required uint32 kickTimeoutSec = 5; - */ - @java.lang.Override + + // required uint32 kickTimeoutSec = 5; + private int kickTimeoutSec_ ; public boolean hasKickTimeoutSec() { - return instance.hasKickTimeoutSec(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 kickTimeoutSec = 5; - */ - @java.lang.Override public int getKickTimeoutSec() { - return instance.getKickTimeoutSec(); + return kickTimeoutSec_; } - /** - * required uint32 kickTimeoutSec = 5; - */ public Builder setKickTimeoutSec(int value) { - copyOnWrite(); - instance.setKickTimeoutSec(value); + bitField0_ |= 0x00000010; + kickTimeoutSec_ = value; + return this; } - /** - * required uint32 kickTimeoutSec = 5; - */ public Builder clearKickTimeoutSec() { - copyOnWrite(); - instance.clearKickTimeoutSec(); + bitField0_ = (bitField0_ & ~0x00000010); + kickTimeoutSec_ = 0; + return this; } - - /** - * required uint32 numVotesNeededToKick = 6; - */ - @java.lang.Override + + // required uint32 numVotesNeededToKick = 6; + private int numVotesNeededToKick_ ; public boolean hasNumVotesNeededToKick() { - return instance.hasNumVotesNeededToKick(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required uint32 numVotesNeededToKick = 6; - */ - @java.lang.Override public int getNumVotesNeededToKick() { - return instance.getNumVotesNeededToKick(); + return numVotesNeededToKick_; } - /** - * required uint32 numVotesNeededToKick = 6; - */ public Builder setNumVotesNeededToKick(int value) { - copyOnWrite(); - instance.setNumVotesNeededToKick(value); + bitField0_ |= 0x00000020; + numVotesNeededToKick_ = value; + return this; } - /** - * required uint32 numVotesNeededToKick = 6; - */ public Builder clearNumVotesNeededToKick() { - copyOnWrite(); - instance.clearNumVotesNeededToKick(); + bitField0_ = (bitField0_ & ~0x00000020); + numVotesNeededToKick_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:StartKickPetitionMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPetitionId()) { - return null; - } - if (!hasProposingPlayerId()) { - return null; - } - if (!hasKickPlayerId()) { - return null; - } - if (!hasKickTimeoutSec()) { - return null; - } - if (!hasNumVotesNeededToKick()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage other = (de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - petitionId_ = visitor.visitInt( - hasPetitionId(), petitionId_, - other.hasPetitionId(), other.petitionId_); - proposingPlayerId_ = visitor.visitInt( - hasProposingPlayerId(), proposingPlayerId_, - other.hasProposingPlayerId(), other.proposingPlayerId_); - kickPlayerId_ = visitor.visitInt( - hasKickPlayerId(), kickPlayerId_, - other.hasKickPlayerId(), other.kickPlayerId_); - kickTimeoutSec_ = visitor.visitInt( - hasKickTimeoutSec(), kickTimeoutSec_, - other.hasKickTimeoutSec(), other.kickTimeoutSec_); - numVotesNeededToKick_ = visitor.visitInt( - hasNumVotesNeededToKick(), numVotesNeededToKick_, - other.hasNumVotesNeededToKick(), other.numVotesNeededToKick_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - petitionId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - proposingPlayerId_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - kickPlayerId_ = input.readUInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - kickTimeoutSec_ = input.readUInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - numVotesNeededToKick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) - private static final de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new StartKickPetitionMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new StartKickPetitionMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) } - - public interface VoteKickRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:VoteKickRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface VoteKickRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 petitionId = 2; - */ + + // required uint32 petitionId = 2; boolean hasPetitionId(); - /** - * required uint32 petitionId = 2; - */ int getPetitionId(); - - /** - * required bool voteKick = 3; - */ + + // required bool voteKick = 3; boolean hasVoteKick(); - /** - * required bool voteKick = 3; - */ boolean getVoteKick(); } - /** - * Protobuf type {@code VoteKickRequestMessage} - */ - public static final class VoteKickRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - VoteKickRequestMessage, VoteKickRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:VoteKickRequestMessage) - VoteKickRequestMessageOrBuilder { - private VoteKickRequestMessage() { + public static final class VoteKickRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements VoteKickRequestMessageOrBuilder { + // Use VoteKickRequestMessage.newBuilder() to construct. + private VoteKickRequestMessage(Builder builder) { + super(builder); } + private VoteKickRequestMessage(boolean noInit) {} + + private static final VoteKickRequestMessage defaultInstance; + public static VoteKickRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public VoteKickRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 petitionId = 2; public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { return petitionId_; } - /** - * required uint32 petitionId = 2; - */ - private void setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - } - /** - * required uint32 petitionId = 2; - */ - private void clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - } - + + // required bool voteKick = 3; public static final int VOTEKICK_FIELD_NUMBER = 3; private boolean voteKick_; - /** - * required bool voteKick = 3; - */ - @java.lang.Override public boolean hasVoteKick() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool voteKick = 3; - */ - @java.lang.Override public boolean getVoteKick() { return voteKick_; } - /** - * required bool voteKick = 3; - */ - private void setVoteKick(boolean value) { - bitField0_ |= 0x00000004; - voteKick_ = value; - } - /** - * required bool voteKick = 3; - */ - private void clearVoteKick() { - bitField0_ = (bitField0_ & ~0x00000004); + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; voteKick_ = false; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVoteKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, voteKick_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, voteKick_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code VoteKickRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:VoteKickRequestMessage) - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + voteKick_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage build() { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = new de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.voteKick_ = voteKick_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasVoteKick()) { + setVoteKick(other.getVoteKick()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasVoteKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + voteKick_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override + + // required uint32 petitionId = 2; + private int petitionId_ ; public boolean hasPetitionId() { - return instance.hasPetitionId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { - return instance.getPetitionId(); + return petitionId_; } - /** - * required uint32 petitionId = 2; - */ public Builder setPetitionId(int value) { - copyOnWrite(); - instance.setPetitionId(value); + bitField0_ |= 0x00000002; + petitionId_ = value; + return this; } - /** - * required uint32 petitionId = 2; - */ public Builder clearPetitionId() { - copyOnWrite(); - instance.clearPetitionId(); + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + return this; } - - /** - * required bool voteKick = 3; - */ - @java.lang.Override + + // required bool voteKick = 3; + private boolean voteKick_ ; public boolean hasVoteKick() { - return instance.hasVoteKick(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required bool voteKick = 3; - */ - @java.lang.Override public boolean getVoteKick() { - return instance.getVoteKick(); + return voteKick_; } - /** - * required bool voteKick = 3; - */ public Builder setVoteKick(boolean value) { - copyOnWrite(); - instance.setVoteKick(value); + bitField0_ |= 0x00000004; + voteKick_ = value; + return this; } - /** - * required bool voteKick = 3; - */ public Builder clearVoteKick() { - copyOnWrite(); - instance.clearVoteKick(); + bitField0_ = (bitField0_ & ~0x00000004); + voteKick_ = false; + return this; } - + // @@protoc_insertion_point(builder_scope:VoteKickRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPetitionId()) { - return null; - } - if (!hasVoteKick()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage other = (de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - petitionId_ = visitor.visitInt( - hasPetitionId(), petitionId_, - other.hasPetitionId(), other.petitionId_); - voteKick_ = visitor.visitBoolean( - hasVoteKick(), voteKick_, - other.hasVoteKick(), other.voteKick_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - petitionId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - voteKick_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new VoteKickRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new VoteKickRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) } - - public interface VoteKickReplyMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:VoteKickReplyMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface VoteKickReplyMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 petitionId = 2; - */ + + // required uint32 petitionId = 2; boolean hasPetitionId(); - /** - * required uint32 petitionId = 2; - */ int getPetitionId(); - - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; boolean hasVoteKickReplyType(); - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType(); } - /** - * Protobuf type {@code VoteKickReplyMessage} - */ - public static final class VoteKickReplyMessage extends - com.google.protobuf.GeneratedMessageLite< - VoteKickReplyMessage, VoteKickReplyMessage.Builder> implements - // @@protoc_insertion_point(message_implements:VoteKickReplyMessage) - VoteKickReplyMessageOrBuilder { - private VoteKickReplyMessage() { + public static final class VoteKickReplyMessage extends + com.google.protobuf.GeneratedMessageLite + implements VoteKickReplyMessageOrBuilder { + // Use VoteKickReplyMessage.newBuilder() to construct. + private VoteKickReplyMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code VoteKickReplyMessage.VoteKickReplyType} - */ + private VoteKickReplyMessage(boolean noInit) {} + + private static final VoteKickReplyMessage defaultInstance; + public static VoteKickReplyMessage getDefaultInstance() { + return defaultInstance; + } + + public VoteKickReplyMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum VoteKickReplyType implements com.google.protobuf.Internal.EnumLite { - /** - * voteKickAck = 0; - */ - voteKickAck(0), - /** - * voteKickDeniedInvalid = 1; - */ - voteKickDeniedInvalid(1), - /** - * voteKickDeniedAlreadyVoted = 2; - */ - voteKickDeniedAlreadyVoted(2), + voteKickAck(0, 0), + voteKickDeniedInvalid(1, 1), + voteKickDeniedAlreadyVoted(2, 2), ; - - /** - * voteKickAck = 0; - */ + public static final int voteKickAck_VALUE = 0; - /** - * voteKickDeniedInvalid = 1; - */ public static final int voteKickDeniedInvalid_VALUE = 1; - /** - * voteKickDeniedAlreadyVoted = 2; - */ public static final int voteKickDeniedAlreadyVoted_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static VoteKickReplyType valueOf(int value) { - return forNumber(value); - } - - public static VoteKickReplyType forNumber(int value) { switch (value) { case 0: return voteKickAck; case 1: return voteKickDeniedInvalid; @@ -40159,1334 +31619,1036 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - VoteKickReplyType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public VoteKickReplyType findValueByNumber(int number) { - return VoteKickReplyType.forNumber(number); + return VoteKickReplyType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return VoteKickReplyTypeVerifier.INSTANCE; - } - - private static final class VoteKickReplyTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new VoteKickReplyTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return VoteKickReplyType.forNumber(number) != null; - } - }; - + private final int value; - - private VoteKickReplyType(int value) { + + private VoteKickReplyType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:VoteKickReplyMessage.VoteKickReplyType) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 petitionId = 2; public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { return petitionId_; } - /** - * required uint32 petitionId = 2; - */ - private void setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - } - /** - * required uint32 petitionId = 2; - */ - private void clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - } - + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; public static final int VOTEKICKREPLYTYPE_FIELD_NUMBER = 3; - private int voteKickReplyType_; - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_; public boolean hasVoteKickReplyType() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType result = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.forNumber(voteKickReplyType_); - return result == null ? de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck : result; + return voteKickReplyType_; } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - private void setVoteKickReplyType(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000004; - voteKickReplyType_ = value.getNumber(); + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVoteKickReplyType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - private void clearVoteKickReplyType() { - bitField0_ = (bitField0_ & ~0x00000004); - voteKickReplyType_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, voteKickReplyType_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, voteKickReplyType_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, voteKickReplyType_); + .computeEnumSize(3, voteKickReplyType_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code VoteKickReplyMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:VoteKickReplyMessage) - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage build() { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = new de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.voteKickReplyType_ = voteKickReplyType_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasVoteKickReplyType()) { + setVoteKickReplyType(other.getVoteKickReplyType()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasVoteKickReplyType()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + voteKickReplyType_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override + + // required uint32 petitionId = 2; + private int petitionId_ ; public boolean hasPetitionId() { - return instance.hasPetitionId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { - return instance.getPetitionId(); + return petitionId_; } - /** - * required uint32 petitionId = 2; - */ public Builder setPetitionId(int value) { - copyOnWrite(); - instance.setPetitionId(value); + bitField0_ |= 0x00000002; + petitionId_ = value; + return this; } - /** - * required uint32 petitionId = 2; - */ public Builder clearPetitionId() { - copyOnWrite(); - instance.clearPetitionId(); + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + return this; } - - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - @java.lang.Override + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; public boolean hasVoteKickReplyType() { - return instance.hasVoteKickReplyType(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { - return instance.getVoteKickReplyType(); + return voteKickReplyType_; } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ public Builder setVoteKickReplyType(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value) { - copyOnWrite(); - instance.setVoteKickReplyType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + voteKickReplyType_ = value; + return this; } - /** - * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - */ public Builder clearVoteKickReplyType() { - copyOnWrite(); - instance.clearVoteKickReplyType(); + bitField0_ = (bitField0_ & ~0x00000004); + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + return this; } - + // @@protoc_insertion_point(builder_scope:VoteKickReplyMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPetitionId()) { - return null; - } - if (!hasVoteKickReplyType()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage other = (de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - petitionId_ = visitor.visitInt( - hasPetitionId(), petitionId_, - other.hasPetitionId(), other.petitionId_); - voteKickReplyType_ = visitor.visitInt(hasVoteKickReplyType(), voteKickReplyType_, - other.hasVoteKickReplyType(), other.voteKickReplyType_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - petitionId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - voteKickReplyType_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) - private static final de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new VoteKickReplyMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new VoteKickReplyMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) } - - public interface KickPetitionUpdateMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:KickPetitionUpdateMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface KickPetitionUpdateMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 petitionId = 2; - */ + + // required uint32 petitionId = 2; boolean hasPetitionId(); - /** - * required uint32 petitionId = 2; - */ int getPetitionId(); - - /** - * required uint32 numVotesAgainstKicking = 3; - */ + + // required uint32 numVotesAgainstKicking = 3; boolean hasNumVotesAgainstKicking(); - /** - * required uint32 numVotesAgainstKicking = 3; - */ int getNumVotesAgainstKicking(); - - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ + + // required uint32 numVotesInFavourOfKicking = 4; boolean hasNumVotesInFavourOfKicking(); - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ int getNumVotesInFavourOfKicking(); - - /** - * required uint32 numVotesNeededToKick = 5; - */ + + // required uint32 numVotesNeededToKick = 5; boolean hasNumVotesNeededToKick(); - /** - * required uint32 numVotesNeededToKick = 5; - */ int getNumVotesNeededToKick(); } - /** - * Protobuf type {@code KickPetitionUpdateMessage} - */ - public static final class KickPetitionUpdateMessage extends - com.google.protobuf.GeneratedMessageLite< - KickPetitionUpdateMessage, KickPetitionUpdateMessage.Builder> implements - // @@protoc_insertion_point(message_implements:KickPetitionUpdateMessage) - KickPetitionUpdateMessageOrBuilder { - private KickPetitionUpdateMessage() { + public static final class KickPetitionUpdateMessage extends + com.google.protobuf.GeneratedMessageLite + implements KickPetitionUpdateMessageOrBuilder { + // Use KickPetitionUpdateMessage.newBuilder() to construct. + private KickPetitionUpdateMessage(Builder builder) { + super(builder); } + private KickPetitionUpdateMessage(boolean noInit) {} + + private static final KickPetitionUpdateMessage defaultInstance; + public static KickPetitionUpdateMessage getDefaultInstance() { + return defaultInstance; + } + + public KickPetitionUpdateMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 petitionId = 2; public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { return petitionId_; } - /** - * required uint32 petitionId = 2; - */ - private void setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - } - /** - * required uint32 petitionId = 2; - */ - private void clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - } - + + // required uint32 numVotesAgainstKicking = 3; public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; private int numVotesAgainstKicking_; - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public int getNumVotesAgainstKicking() { return numVotesAgainstKicking_; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - private void setNumVotesAgainstKicking(int value) { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = value; - } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - private void clearNumVotesAgainstKicking() { - bitField0_ = (bitField0_ & ~0x00000004); - numVotesAgainstKicking_ = 0; - } - + + // required uint32 numVotesInFavourOfKicking = 4; public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; private int numVotesInFavourOfKicking_; - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public int getNumVotesInFavourOfKicking() { return numVotesInFavourOfKicking_; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - private void setNumVotesInFavourOfKicking(int value) { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = value; - } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - private void clearNumVotesInFavourOfKicking() { - bitField0_ = (bitField0_ & ~0x00000008); - numVotesInFavourOfKicking_ = 0; - } - + + // required uint32 numVotesNeededToKick = 5; public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 5; private int numVotesNeededToKick_; - /** - * required uint32 numVotesNeededToKick = 5; - */ - @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 numVotesNeededToKick = 5; - */ - @java.lang.Override public int getNumVotesNeededToKick() { return numVotesNeededToKick_; } - /** - * required uint32 numVotesNeededToKick = 5; - */ - private void setNumVotesNeededToKick(int value) { - bitField0_ |= 0x00000010; - numVotesNeededToKick_ = value; - } - /** - * required uint32 numVotesNeededToKick = 5; - */ - private void clearNumVotesNeededToKick() { - bitField0_ = (bitField0_ & ~0x00000010); + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + numVotesAgainstKicking_ = 0; + numVotesInFavourOfKicking_ = 0; numVotesNeededToKick_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesAgainstKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesNeededToKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, numVotesNeededToKick_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, numVotesNeededToKick_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code KickPetitionUpdateMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:KickPetitionUpdateMessage) - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + numVotesAgainstKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + numVotesInFavourOfKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + numVotesNeededToKick_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage build() { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = new de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.numVotesAgainstKicking_ = numVotesAgainstKicking_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.numVotesInFavourOfKicking_ = numVotesInFavourOfKicking_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.numVotesNeededToKick_ = numVotesNeededToKick_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasNumVotesAgainstKicking()) { + setNumVotesAgainstKicking(other.getNumVotesAgainstKicking()); + } + if (other.hasNumVotesInFavourOfKicking()) { + setNumVotesInFavourOfKicking(other.getNumVotesInFavourOfKicking()); + } + if (other.hasNumVotesNeededToKick()) { + setNumVotesNeededToKick(other.getNumVotesNeededToKick()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasNumVotesAgainstKicking()) { + + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + + return false; + } + if (!hasNumVotesNeededToKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + numVotesNeededToKick_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override + + // required uint32 petitionId = 2; + private int petitionId_ ; public boolean hasPetitionId() { - return instance.hasPetitionId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { - return instance.getPetitionId(); + return petitionId_; } - /** - * required uint32 petitionId = 2; - */ public Builder setPetitionId(int value) { - copyOnWrite(); - instance.setPetitionId(value); + bitField0_ |= 0x00000002; + petitionId_ = value; + return this; } - /** - * required uint32 petitionId = 2; - */ public Builder clearPetitionId() { - copyOnWrite(); - instance.clearPetitionId(); + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + return this; } - - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override + + // required uint32 numVotesAgainstKicking = 3; + private int numVotesAgainstKicking_ ; public boolean hasNumVotesAgainstKicking() { - return instance.hasNumVotesAgainstKicking(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public int getNumVotesAgainstKicking() { - return instance.getNumVotesAgainstKicking(); + return numVotesAgainstKicking_; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ public Builder setNumVotesAgainstKicking(int value) { - copyOnWrite(); - instance.setNumVotesAgainstKicking(value); + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = value; + return this; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ public Builder clearNumVotesAgainstKicking() { - copyOnWrite(); - instance.clearNumVotesAgainstKicking(); + bitField0_ = (bitField0_ & ~0x00000004); + numVotesAgainstKicking_ = 0; + return this; } - - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override + + // required uint32 numVotesInFavourOfKicking = 4; + private int numVotesInFavourOfKicking_ ; public boolean hasNumVotesInFavourOfKicking() { - return instance.hasNumVotesInFavourOfKicking(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public int getNumVotesInFavourOfKicking() { - return instance.getNumVotesInFavourOfKicking(); + return numVotesInFavourOfKicking_; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ public Builder setNumVotesInFavourOfKicking(int value) { - copyOnWrite(); - instance.setNumVotesInFavourOfKicking(value); + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = value; + return this; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ public Builder clearNumVotesInFavourOfKicking() { - copyOnWrite(); - instance.clearNumVotesInFavourOfKicking(); + bitField0_ = (bitField0_ & ~0x00000008); + numVotesInFavourOfKicking_ = 0; + return this; } - - /** - * required uint32 numVotesNeededToKick = 5; - */ - @java.lang.Override + + // required uint32 numVotesNeededToKick = 5; + private int numVotesNeededToKick_ ; public boolean hasNumVotesNeededToKick() { - return instance.hasNumVotesNeededToKick(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 numVotesNeededToKick = 5; - */ - @java.lang.Override public int getNumVotesNeededToKick() { - return instance.getNumVotesNeededToKick(); + return numVotesNeededToKick_; } - /** - * required uint32 numVotesNeededToKick = 5; - */ public Builder setNumVotesNeededToKick(int value) { - copyOnWrite(); - instance.setNumVotesNeededToKick(value); + bitField0_ |= 0x00000010; + numVotesNeededToKick_ = value; + return this; } - /** - * required uint32 numVotesNeededToKick = 5; - */ public Builder clearNumVotesNeededToKick() { - copyOnWrite(); - instance.clearNumVotesNeededToKick(); + bitField0_ = (bitField0_ & ~0x00000010); + numVotesNeededToKick_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:KickPetitionUpdateMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPetitionId()) { - return null; - } - if (!hasNumVotesAgainstKicking()) { - return null; - } - if (!hasNumVotesInFavourOfKicking()) { - return null; - } - if (!hasNumVotesNeededToKick()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage other = (de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - petitionId_ = visitor.visitInt( - hasPetitionId(), petitionId_, - other.hasPetitionId(), other.petitionId_); - numVotesAgainstKicking_ = visitor.visitInt( - hasNumVotesAgainstKicking(), numVotesAgainstKicking_, - other.hasNumVotesAgainstKicking(), other.numVotesAgainstKicking_); - numVotesInFavourOfKicking_ = visitor.visitInt( - hasNumVotesInFavourOfKicking(), numVotesInFavourOfKicking_, - other.hasNumVotesInFavourOfKicking(), other.numVotesInFavourOfKicking_); - numVotesNeededToKick_ = visitor.visitInt( - hasNumVotesNeededToKick(), numVotesNeededToKick_, - other.hasNumVotesNeededToKick(), other.numVotesNeededToKick_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - petitionId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = input.readUInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - numVotesNeededToKick_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) - private static final de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new KickPetitionUpdateMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new KickPetitionUpdateMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) } - - public interface EndKickPetitionMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:EndKickPetitionMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 gameId = 1; - */ + + public interface EndKickPetitionMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 gameId = 1; boolean hasGameId(); - /** - * required uint32 gameId = 1; - */ int getGameId(); - - /** - * required uint32 petitionId = 2; - */ + + // required uint32 petitionId = 2; boolean hasPetitionId(); - /** - * required uint32 petitionId = 2; - */ int getPetitionId(); - - /** - * required uint32 numVotesAgainstKicking = 3; - */ + + // required uint32 numVotesAgainstKicking = 3; boolean hasNumVotesAgainstKicking(); - /** - * required uint32 numVotesAgainstKicking = 3; - */ int getNumVotesAgainstKicking(); - - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ + + // required uint32 numVotesInFavourOfKicking = 4; boolean hasNumVotesInFavourOfKicking(); - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ int getNumVotesInFavourOfKicking(); - - /** - * required uint32 resultPlayerKicked = 5; - */ + + // required uint32 resultPlayerKicked = 5; boolean hasResultPlayerKicked(); - /** - * required uint32 resultPlayerKicked = 5; - */ int getResultPlayerKicked(); - - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; boolean hasPetitionEndReason(); - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason(); } - /** - * Protobuf type {@code EndKickPetitionMessage} - */ - public static final class EndKickPetitionMessage extends - com.google.protobuf.GeneratedMessageLite< - EndKickPetitionMessage, EndKickPetitionMessage.Builder> implements - // @@protoc_insertion_point(message_implements:EndKickPetitionMessage) - EndKickPetitionMessageOrBuilder { - private EndKickPetitionMessage() { + public static final class EndKickPetitionMessage extends + com.google.protobuf.GeneratedMessageLite + implements EndKickPetitionMessageOrBuilder { + // Use EndKickPetitionMessage.newBuilder() to construct. + private EndKickPetitionMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code EndKickPetitionMessage.PetitionEndReason} - */ + private EndKickPetitionMessage(boolean noInit) {} + + private static final EndKickPetitionMessage defaultInstance; + public static EndKickPetitionMessage getDefaultInstance() { + return defaultInstance; + } + + public EndKickPetitionMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum PetitionEndReason implements com.google.protobuf.Internal.EnumLite { - /** - * petitionEndEnoughVotes = 0; - */ - petitionEndEnoughVotes(0), - /** - * petitionEndTooFewPlayers = 1; - */ - petitionEndTooFewPlayers(1), - /** - * petitionEndPlayerLeft = 2; - */ - petitionEndPlayerLeft(2), - /** - * petitionEndTimeout = 3; - */ - petitionEndTimeout(3), + petitionEndEnoughVotes(0, 0), + petitionEndTooFewPlayers(1, 1), + petitionEndPlayerLeft(2, 2), + petitionEndTimeout(3, 3), ; - - /** - * petitionEndEnoughVotes = 0; - */ + public static final int petitionEndEnoughVotes_VALUE = 0; - /** - * petitionEndTooFewPlayers = 1; - */ public static final int petitionEndTooFewPlayers_VALUE = 1; - /** - * petitionEndPlayerLeft = 2; - */ public static final int petitionEndPlayerLeft_VALUE = 2; - /** - * petitionEndTimeout = 3; - */ public static final int petitionEndTimeout_VALUE = 3; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static PetitionEndReason valueOf(int value) { - return forNumber(value); - } - - public static PetitionEndReason forNumber(int value) { switch (value) { case 0: return petitionEndEnoughVotes; case 1: return petitionEndTooFewPlayers; @@ -41495,2442 +32657,1887 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PetitionEndReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public PetitionEndReason findValueByNumber(int number) { - return PetitionEndReason.forNumber(number); + return PetitionEndReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return PetitionEndReasonVerifier.INSTANCE; - } - - private static final class PetitionEndReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new PetitionEndReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return PetitionEndReason.forNumber(number) != null; - } - }; - + private final int value; - - private PetitionEndReason(int value) { + + private PetitionEndReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:EndKickPetitionMessage.PetitionEndReason) } - + private int bitField0_; + // required uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * required uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * required uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // required uint32 petitionId = 2; public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { return petitionId_; } - /** - * required uint32 petitionId = 2; - */ - private void setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - } - /** - * required uint32 petitionId = 2; - */ - private void clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - } - + + // required uint32 numVotesAgainstKicking = 3; public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; private int numVotesAgainstKicking_; - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public int getNumVotesAgainstKicking() { return numVotesAgainstKicking_; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - private void setNumVotesAgainstKicking(int value) { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = value; - } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - private void clearNumVotesAgainstKicking() { - bitField0_ = (bitField0_ & ~0x00000004); - numVotesAgainstKicking_ = 0; - } - + + // required uint32 numVotesInFavourOfKicking = 4; public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; private int numVotesInFavourOfKicking_; - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public int getNumVotesInFavourOfKicking() { return numVotesInFavourOfKicking_; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - private void setNumVotesInFavourOfKicking(int value) { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = value; - } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - private void clearNumVotesInFavourOfKicking() { - bitField0_ = (bitField0_ & ~0x00000008); - numVotesInFavourOfKicking_ = 0; - } - + + // required uint32 resultPlayerKicked = 5; public static final int RESULTPLAYERKICKED_FIELD_NUMBER = 5; private int resultPlayerKicked_; - /** - * required uint32 resultPlayerKicked = 5; - */ - @java.lang.Override public boolean hasResultPlayerKicked() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 resultPlayerKicked = 5; - */ - @java.lang.Override public int getResultPlayerKicked() { return resultPlayerKicked_; } - /** - * required uint32 resultPlayerKicked = 5; - */ - private void setResultPlayerKicked(int value) { - bitField0_ |= 0x00000010; - resultPlayerKicked_ = value; - } - /** - * required uint32 resultPlayerKicked = 5; - */ - private void clearResultPlayerKicked() { - bitField0_ = (bitField0_ & ~0x00000010); - resultPlayerKicked_ = 0; - } - + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; public static final int PETITIONENDREASON_FIELD_NUMBER = 6; - private int petitionEndReason_; - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_; public boolean hasPetitionEndReason() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason result = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.forNumber(petitionEndReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes : result; + return petitionEndReason_; } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - private void setPetitionEndReason(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + numVotesAgainstKicking_ = 0; + numVotesInFavourOfKicking_ = 0; + resultPlayerKicked_ = 0; + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000020; - petitionEndReason_ = value.getNumber(); + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesAgainstKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultPlayerKicked()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionEndReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - private void clearPetitionEndReason() { - bitField0_ = (bitField0_ & ~0x00000020); - petitionEndReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, resultPlayerKicked_); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeEnum(6, petitionEndReason_); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeEnum(6, petitionEndReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, resultPlayerKicked_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, petitionEndReason_); + .computeEnumSize(6, petitionEndReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code EndKickPetitionMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:EndKickPetitionMessage) - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + numVotesAgainstKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + numVotesInFavourOfKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + resultPlayerKicked_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage build() { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = new de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.numVotesAgainstKicking_ = numVotesAgainstKicking_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.numVotesInFavourOfKicking_ = numVotesInFavourOfKicking_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.resultPlayerKicked_ = resultPlayerKicked_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.petitionEndReason_ = petitionEndReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasNumVotesAgainstKicking()) { + setNumVotesAgainstKicking(other.getNumVotesAgainstKicking()); + } + if (other.hasNumVotesInFavourOfKicking()) { + setNumVotesInFavourOfKicking(other.getNumVotesInFavourOfKicking()); + } + if (other.hasResultPlayerKicked()) { + setResultPlayerKicked(other.getResultPlayerKicked()); + } + if (other.hasPetitionEndReason()) { + setPetitionEndReason(other.getPetitionEndReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasNumVotesAgainstKicking()) { + + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + + return false; + } + if (!hasResultPlayerKicked()) { + + return false; + } + if (!hasPetitionEndReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + resultPlayerKicked_ = input.readUInt32(); + break; + } + case 48: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000020; + petitionEndReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * required uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * required uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override + + // required uint32 petitionId = 2; + private int petitionId_ ; public boolean hasPetitionId() { - return instance.hasPetitionId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 petitionId = 2; - */ - @java.lang.Override public int getPetitionId() { - return instance.getPetitionId(); + return petitionId_; } - /** - * required uint32 petitionId = 2; - */ public Builder setPetitionId(int value) { - copyOnWrite(); - instance.setPetitionId(value); + bitField0_ |= 0x00000002; + petitionId_ = value; + return this; } - /** - * required uint32 petitionId = 2; - */ public Builder clearPetitionId() { - copyOnWrite(); - instance.clearPetitionId(); + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + return this; } - - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override + + // required uint32 numVotesAgainstKicking = 3; + private int numVotesAgainstKicking_ ; public boolean hasNumVotesAgainstKicking() { - return instance.hasNumVotesAgainstKicking(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required uint32 numVotesAgainstKicking = 3; - */ - @java.lang.Override public int getNumVotesAgainstKicking() { - return instance.getNumVotesAgainstKicking(); + return numVotesAgainstKicking_; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ public Builder setNumVotesAgainstKicking(int value) { - copyOnWrite(); - instance.setNumVotesAgainstKicking(value); + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = value; + return this; } - /** - * required uint32 numVotesAgainstKicking = 3; - */ public Builder clearNumVotesAgainstKicking() { - copyOnWrite(); - instance.clearNumVotesAgainstKicking(); + bitField0_ = (bitField0_ & ~0x00000004); + numVotesAgainstKicking_ = 0; + return this; } - - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override + + // required uint32 numVotesInFavourOfKicking = 4; + private int numVotesInFavourOfKicking_ ; public boolean hasNumVotesInFavourOfKicking() { - return instance.hasNumVotesInFavourOfKicking(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ - @java.lang.Override public int getNumVotesInFavourOfKicking() { - return instance.getNumVotesInFavourOfKicking(); + return numVotesInFavourOfKicking_; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ public Builder setNumVotesInFavourOfKicking(int value) { - copyOnWrite(); - instance.setNumVotesInFavourOfKicking(value); + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = value; + return this; } - /** - * required uint32 numVotesInFavourOfKicking = 4; - */ public Builder clearNumVotesInFavourOfKicking() { - copyOnWrite(); - instance.clearNumVotesInFavourOfKicking(); + bitField0_ = (bitField0_ & ~0x00000008); + numVotesInFavourOfKicking_ = 0; + return this; } - - /** - * required uint32 resultPlayerKicked = 5; - */ - @java.lang.Override + + // required uint32 resultPlayerKicked = 5; + private int resultPlayerKicked_ ; public boolean hasResultPlayerKicked() { - return instance.hasResultPlayerKicked(); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * required uint32 resultPlayerKicked = 5; - */ - @java.lang.Override public int getResultPlayerKicked() { - return instance.getResultPlayerKicked(); + return resultPlayerKicked_; } - /** - * required uint32 resultPlayerKicked = 5; - */ public Builder setResultPlayerKicked(int value) { - copyOnWrite(); - instance.setResultPlayerKicked(value); + bitField0_ |= 0x00000010; + resultPlayerKicked_ = value; + return this; } - /** - * required uint32 resultPlayerKicked = 5; - */ public Builder clearResultPlayerKicked() { - copyOnWrite(); - instance.clearResultPlayerKicked(); + bitField0_ = (bitField0_ & ~0x00000010); + resultPlayerKicked_ = 0; + return this; } - - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - @java.lang.Override + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; public boolean hasPetitionEndReason() { - return instance.hasPetitionEndReason(); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { - return instance.getPetitionEndReason(); + return petitionEndReason_; } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ public Builder setPetitionEndReason(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value) { - copyOnWrite(); - instance.setPetitionEndReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + petitionEndReason_ = value; + return this; } - /** - * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - */ public Builder clearPetitionEndReason() { - copyOnWrite(); - instance.clearPetitionEndReason(); + bitField0_ = (bitField0_ & ~0x00000020); + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + return this; } - + // @@protoc_insertion_point(builder_scope:EndKickPetitionMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasGameId()) { - return null; - } - if (!hasPetitionId()) { - return null; - } - if (!hasNumVotesAgainstKicking()) { - return null; - } - if (!hasNumVotesInFavourOfKicking()) { - return null; - } - if (!hasResultPlayerKicked()) { - return null; - } - if (!hasPetitionEndReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage other = (de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - petitionId_ = visitor.visitInt( - hasPetitionId(), petitionId_, - other.hasPetitionId(), other.petitionId_); - numVotesAgainstKicking_ = visitor.visitInt( - hasNumVotesAgainstKicking(), numVotesAgainstKicking_, - other.hasNumVotesAgainstKicking(), other.numVotesAgainstKicking_); - numVotesInFavourOfKicking_ = visitor.visitInt( - hasNumVotesInFavourOfKicking(), numVotesInFavourOfKicking_, - other.hasNumVotesInFavourOfKicking(), other.numVotesInFavourOfKicking_); - resultPlayerKicked_ = visitor.visitInt( - hasResultPlayerKicked(), resultPlayerKicked_, - other.hasResultPlayerKicked(), other.resultPlayerKicked_); - petitionEndReason_ = visitor.visitInt(hasPetitionEndReason(), petitionEndReason_, - other.hasPetitionEndReason(), other.petitionEndReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - petitionId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = input.readUInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - resultPlayerKicked_ = input.readUInt32(); - break; - } - case 48: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - petitionEndReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) - private static final de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new EndKickPetitionMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new EndKickPetitionMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) } - - public interface StatisticsMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:StatisticsMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ + + public interface StatisticsMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; java.util.List getStatisticsDataList(); - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index); - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ int getStatisticsDataCount(); } - /** - * Protobuf type {@code StatisticsMessage} - */ - public static final class StatisticsMessage extends - com.google.protobuf.GeneratedMessageLite< - StatisticsMessage, StatisticsMessage.Builder> implements - // @@protoc_insertion_point(message_implements:StatisticsMessage) - StatisticsMessageOrBuilder { - private StatisticsMessage() { - statisticsData_ = emptyProtobufList(); + public static final class StatisticsMessage extends + com.google.protobuf.GeneratedMessageLite + implements StatisticsMessageOrBuilder { + // Use StatisticsMessage.newBuilder() to construct. + private StatisticsMessage(Builder builder) { + super(builder); } - public interface StatisticsDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:StatisticsMessage.StatisticsData) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ + private StatisticsMessage(boolean noInit) {} + + private static final StatisticsMessage defaultInstance; + public static StatisticsMessage getDefaultInstance() { + return defaultInstance; + } + + public StatisticsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public interface StatisticsDataOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; boolean hasStatisticsType(); - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType(); - - /** - * required uint32 statisticsValue = 2; - */ + + // required uint32 statisticsValue = 2; boolean hasStatisticsValue(); - /** - * required uint32 statisticsValue = 2; - */ int getStatisticsValue(); } - /** - * Protobuf type {@code StatisticsMessage.StatisticsData} - */ - public static final class StatisticsData extends - com.google.protobuf.GeneratedMessageLite< - StatisticsData, StatisticsData.Builder> implements - // @@protoc_insertion_point(message_implements:StatisticsMessage.StatisticsData) - StatisticsDataOrBuilder { - private StatisticsData() { - statisticsType_ = 1; + public static final class StatisticsData extends + com.google.protobuf.GeneratedMessageLite + implements StatisticsDataOrBuilder { + // Use StatisticsData.newBuilder() to construct. + private StatisticsData(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code StatisticsMessage.StatisticsData.StatisticsType} - */ + private StatisticsData(boolean noInit) {} + + private static final StatisticsData defaultInstance; + public static StatisticsData getDefaultInstance() { + return defaultInstance; + } + + public StatisticsData getDefaultInstanceForType() { + return defaultInstance; + } + public enum StatisticsType implements com.google.protobuf.Internal.EnumLite { - /** - * statNumberOfPlayers = 1; - */ - statNumberOfPlayers(1), + statNumberOfPlayers(0, 1), ; - - /** - * statNumberOfPlayers = 1; - */ + public static final int statNumberOfPlayers_VALUE = 1; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static StatisticsType valueOf(int value) { - return forNumber(value); - } - - public static StatisticsType forNumber(int value) { switch (value) { case 1: return statNumberOfPlayers; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StatisticsType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public StatisticsType findValueByNumber(int number) { - return StatisticsType.forNumber(number); + return StatisticsType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return StatisticsTypeVerifier.INSTANCE; - } - - private static final class StatisticsTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new StatisticsTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return StatisticsType.forNumber(number) != null; - } - }; - + private final int value; - - private StatisticsType(int value) { + + private StatisticsType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:StatisticsMessage.StatisticsData.StatisticsType) } - + private int bitField0_; + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; public static final int STATISTICSTYPE_FIELD_NUMBER = 1; - private int statisticsType_; - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_; public boolean hasStatisticsType() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType result = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.forNumber(statisticsType_); - return result == null ? de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers : result; + return statisticsType_; } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - private void setStatisticsType(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - statisticsType_ = value.getNumber(); - } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - private void clearStatisticsType() { - bitField0_ = (bitField0_ & ~0x00000001); - statisticsType_ = 1; - } - + + // required uint32 statisticsValue = 2; public static final int STATISTICSVALUE_FIELD_NUMBER = 2; private int statisticsValue_; - /** - * required uint32 statisticsValue = 2; - */ - @java.lang.Override public boolean hasStatisticsValue() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 statisticsValue = 2; - */ - @java.lang.Override public int getStatisticsValue() { return statisticsValue_; } - /** - * required uint32 statisticsValue = 2; - */ - private void setStatisticsValue(int value) { - bitField0_ |= 0x00000002; - statisticsValue_ = value; - } - /** - * required uint32 statisticsValue = 2; - */ - private void clearStatisticsValue() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; statisticsValue_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasStatisticsType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStatisticsValue()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, statisticsType_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, statisticsType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, statisticsValue_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, statisticsType_); + .computeEnumSize(1, statisticsType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, statisticsValue_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code StatisticsMessage.StatisticsData} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, Builder> implements - // @@protoc_insertion_point(builder_implements:StatisticsMessage.StatisticsData) - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, Builder> + implements de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + bitField0_ = (bitField0_ & ~0x00000001); + statisticsValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData build() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData buildPartial() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = new de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.statisticsType_ = statisticsType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.statisticsValue_ = statisticsValue_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData other) { + if (other == de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance()) return this; + if (other.hasStatisticsType()) { + setStatisticsType(other.getStatisticsType()); + } + if (other.hasStatisticsValue()) { + setStatisticsValue(other.getStatisticsValue()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasStatisticsType()) { + + return false; + } + if (!hasStatisticsValue()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + statisticsType_ = value; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + statisticsValue_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; public boolean hasStatisticsType() { - return instance.hasStatisticsType(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { - return instance.getStatisticsType(); + return statisticsType_; } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ public Builder setStatisticsType(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value) { - copyOnWrite(); - instance.setStatisticsType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + statisticsType_ = value; + return this; } - /** - * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - */ public Builder clearStatisticsType() { - copyOnWrite(); - instance.clearStatisticsType(); + bitField0_ = (bitField0_ & ~0x00000001); + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + return this; } - - /** - * required uint32 statisticsValue = 2; - */ - @java.lang.Override + + // required uint32 statisticsValue = 2; + private int statisticsValue_ ; public boolean hasStatisticsValue() { - return instance.hasStatisticsValue(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 statisticsValue = 2; - */ - @java.lang.Override public int getStatisticsValue() { - return instance.getStatisticsValue(); + return statisticsValue_; } - /** - * required uint32 statisticsValue = 2; - */ public Builder setStatisticsValue(int value) { - copyOnWrite(); - instance.setStatisticsValue(value); + bitField0_ |= 0x00000002; + statisticsValue_ = value; + return this; } - /** - * required uint32 statisticsValue = 2; - */ public Builder clearStatisticsValue() { - copyOnWrite(); - instance.clearStatisticsValue(); + bitField0_ = (bitField0_ & ~0x00000002); + statisticsValue_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:StatisticsMessage.StatisticsData) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasStatisticsType()) { - return null; - } - if (!hasStatisticsValue()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData other = (de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData) arg1; - statisticsType_ = visitor.visitInt(hasStatisticsType(), statisticsType_, - other.hasStatisticsType(), other.statisticsType_); - statisticsValue_ = visitor.visitInt( - hasStatisticsValue(), statisticsValue_, - other.hasStatisticsValue(), other.statisticsValue_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - statisticsType_ = rawValue; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - statisticsValue_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) - private static final de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new StatisticsData(); - } - - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new StatisticsData(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) } - + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; public static final int STATISTICSDATA_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.ProtobufList statisticsData_; - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override + private java.util.List statisticsData_; public java.util.List getStatisticsDataList() { return statisticsData_; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public java.util.List getStatisticsDataOrBuilderList() { return statisticsData_; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override public int getStatisticsDataCount() { return statisticsData_.size(); } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { return statisticsData_.get(index); } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder getStatisticsDataOrBuilder( int index) { return statisticsData_.get(index); } - private void ensureStatisticsDataIsMutable() { - if (!statisticsData_.isModifiable()) { - statisticsData_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(statisticsData_); - } + + private void initFields() { + statisticsData_ = java.util.Collections.emptyList(); } - - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void setStatisticsData( - int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getStatisticsDataCount(); i++) { + if (!getStatisticsData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - ensureStatisticsDataIsMutable(); - statisticsData_.set(index, value); + memoizedIsInitialized = 1; + return true; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void setStatisticsData( - int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.set(index, builderForValue.build()); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void addStatisticsData(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatisticsDataIsMutable(); - statisticsData_.add(value); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void addStatisticsData( - int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatisticsDataIsMutable(); - statisticsData_.add(index, value); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void addStatisticsData( - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.add(builderForValue.build()); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void addStatisticsData( - int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.add(index, builderForValue.build()); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void addAllStatisticsData( - java.lang.Iterable values) { - ensureStatisticsDataIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, statisticsData_); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void clearStatisticsData() { - statisticsData_ = emptyProtobufList(); - } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - private void removeStatisticsData(int index) { - ensureStatisticsDataIsMutable(); - statisticsData_.remove(index); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); for (int i = 0; i < statisticsData_.size(); i++) { output.writeMessage(1, statisticsData_.get(i)); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; for (int i = 0; i < statisticsData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, statisticsData_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code StatisticsMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StatisticsMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:StatisticsMessage) - de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.StatisticsMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override - public java.util.List getStatisticsDataList() { - return java.util.Collections.unmodifiableList( - instance.getStatisticsDataList()); + + private void maybeForceBuilderInitialization() { } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override - public int getStatisticsDataCount() { - return instance.getStatisticsDataCount(); - }/** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { - return instance.getStatisticsData(index); + private static Builder create() { + return new Builder(); } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ + + public Builder clear() { + super.clear(); + statisticsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage build() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StatisticsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = new de.pokerth.protocol.ProtoBuf.StatisticsMessage(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + statisticsData_ = java.util.Collections.unmodifiableList(statisticsData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.statisticsData_ = statisticsData_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StatisticsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance()) return this; + if (!other.statisticsData_.isEmpty()) { + if (statisticsData_.isEmpty()) { + statisticsData_ = other.statisticsData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatisticsDataIsMutable(); + statisticsData_.addAll(other.statisticsData_); + } + + } + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getStatisticsDataCount(); i++) { + if (!getStatisticsData(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addStatisticsData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + private java.util.List statisticsData_ = + java.util.Collections.emptyList(); + private void ensureStatisticsDataIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + statisticsData_ = new java.util.ArrayList(statisticsData_); + bitField0_ |= 0x00000001; + } + } + + public java.util.List getStatisticsDataList() { + return java.util.Collections.unmodifiableList(statisticsData_); + } + public int getStatisticsDataCount() { + return statisticsData_.size(); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { + return statisticsData_.get(index); + } public Builder setStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - copyOnWrite(); - instance.setStatisticsData(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.set(index, value); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder setStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - copyOnWrite(); - instance.setStatisticsData(index, builderForValue); + ensureStatisticsDataIsMutable(); + statisticsData_.set(index, builderForValue.build()); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder addStatisticsData(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - copyOnWrite(); - instance.addStatisticsData(value); + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.add(value); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder addStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - copyOnWrite(); - instance.addStatisticsData(index, value); + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.add(index, value); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder addStatisticsData( de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - copyOnWrite(); - instance.addStatisticsData(builderForValue); + ensureStatisticsDataIsMutable(); + statisticsData_.add(builderForValue.build()); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder addStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - copyOnWrite(); - instance.addStatisticsData(index, builderForValue); + ensureStatisticsDataIsMutable(); + statisticsData_.add(index, builderForValue.build()); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder addAllStatisticsData( java.lang.Iterable values) { - copyOnWrite(); - instance.addAllStatisticsData(values); + ensureStatisticsDataIsMutable(); + super.addAll(values, statisticsData_); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder clearStatisticsData() { - copyOnWrite(); - instance.clearStatisticsData(); + statisticsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; } - /** - * repeated .StatisticsMessage.StatisticsData statisticsData = 1; - */ public Builder removeStatisticsData(int index) { - copyOnWrite(); - instance.removeStatisticsData(index); + ensureStatisticsDataIsMutable(); + statisticsData_.remove(index); + return this; } - + // @@protoc_insertion_point(builder_scope:StatisticsMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.StatisticsMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - for (int i = 0; i < getStatisticsDataCount(); i++) { - if (!getStatisticsData(i).isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - statisticsData_.makeImmutable(); - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.StatisticsMessage other = (de.pokerth.protocol.ProtoBuf.StatisticsMessage) arg1; - statisticsData_= visitor.visitList(statisticsData_, other.statisticsData_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!statisticsData_.isModifiable()) { - statisticsData_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(statisticsData_); - } - statisticsData_.add( - input.readMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.StatisticsMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:StatisticsMessage) - private static final de.pokerth.protocol.ProtoBuf.StatisticsMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new StatisticsMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new StatisticsMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:StatisticsMessage) } - - public interface ChatRequestMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChatRequestMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional uint32 targetGameId = 1; - */ + + public interface ChatRequestMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional uint32 targetGameId = 1; boolean hasTargetGameId(); - /** - * optional uint32 targetGameId = 1; - */ int getTargetGameId(); - - /** - * optional uint32 targetPlayerId = 2; - */ + + // optional uint32 targetPlayerId = 2; boolean hasTargetPlayerId(); - /** - * optional uint32 targetPlayerId = 2; - */ int getTargetPlayerId(); - - /** - * required string chatText = 3; - */ + + // required string chatText = 3; boolean hasChatText(); - /** - * required string chatText = 3; - */ - java.lang.String getChatText(); - /** - * required string chatText = 3; - */ - com.google.protobuf.ByteString - getChatTextBytes(); + String getChatText(); } - /** - * Protobuf type {@code ChatRequestMessage} - */ - public static final class ChatRequestMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatRequestMessage, ChatRequestMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ChatRequestMessage) - ChatRequestMessageOrBuilder { - private ChatRequestMessage() { - chatText_ = ""; + public static final class ChatRequestMessage extends + com.google.protobuf.GeneratedMessageLite + implements ChatRequestMessageOrBuilder { + // Use ChatRequestMessage.newBuilder() to construct. + private ChatRequestMessage(Builder builder) { + super(builder); } + private ChatRequestMessage(boolean noInit) {} + + private static final ChatRequestMessage defaultInstance; + public static ChatRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // optional uint32 targetGameId = 1; public static final int TARGETGAMEID_FIELD_NUMBER = 1; private int targetGameId_; - /** - * optional uint32 targetGameId = 1; - */ - @java.lang.Override public boolean hasTargetGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint32 targetGameId = 1; - */ - @java.lang.Override public int getTargetGameId() { return targetGameId_; } - /** - * optional uint32 targetGameId = 1; - */ - private void setTargetGameId(int value) { - bitField0_ |= 0x00000001; - targetGameId_ = value; - } - /** - * optional uint32 targetGameId = 1; - */ - private void clearTargetGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - targetGameId_ = 0; - } - + + // optional uint32 targetPlayerId = 2; public static final int TARGETPLAYERID_FIELD_NUMBER = 2; private int targetPlayerId_; - /** - * optional uint32 targetPlayerId = 2; - */ - @java.lang.Override public boolean hasTargetPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 targetPlayerId = 2; - */ - @java.lang.Override public int getTargetPlayerId() { return targetPlayerId_; } - /** - * optional uint32 targetPlayerId = 2; - */ - private void setTargetPlayerId(int value) { - bitField0_ |= 0x00000002; - targetPlayerId_ = value; - } - /** - * optional uint32 targetPlayerId = 2; - */ - private void clearTargetPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - targetPlayerId_ = 0; - } - + + // required string chatText = 3; public static final int CHATTEXT_FIELD_NUMBER = 3; - private java.lang.String chatText_; - /** - * required string chatText = 3; - */ - @java.lang.Override + private java.lang.Object chatText_; public boolean hasChatText() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required string chatText = 3; - */ - @java.lang.Override - public java.lang.String getChatText() { - return chatText_; + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } } - /** - * required string chatText = 3; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(chatText_); + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * required string chatText = 3; - */ - private void setChatText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatText_ = value; + + private void initFields() { + targetGameId_ = 0; + targetPlayerId_ = 0; + chatText_ = ""; } - /** - * required string chatText = 3; - */ - private void clearChatText() { - bitField0_ = (bitField0_ & ~0x00000004); - chatText_ = getDefaultInstance().getChatText(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required string chatText = 3; - */ - private void setChatTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatText_ = value.toStringUtf8(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, targetGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, targetPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeString(3, getChatText()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getChatTextBytes()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, targetGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, targetPlayerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(3, getChatText()); + .computeBytesSize(3, getChatTextBytes()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRequestMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ChatRequestMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatRequestMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ChatRequestMessage) - de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * optional uint32 targetGameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + targetGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + targetPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage build() { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = new de.pokerth.protocol.ProtoBuf.ChatRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.targetGameId_ = targetGameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.targetPlayerId_ = targetPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance()) return this; + if (other.hasTargetGameId()) { + setTargetGameId(other.getTargetGameId()); + } + if (other.hasTargetPlayerId()) { + setTargetPlayerId(other.getTargetPlayerId()); + } + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + targetGameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + targetPlayerId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // optional uint32 targetGameId = 1; + private int targetGameId_ ; public boolean hasTargetGameId() { - return instance.hasTargetGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint32 targetGameId = 1; - */ - @java.lang.Override public int getTargetGameId() { - return instance.getTargetGameId(); + return targetGameId_; } - /** - * optional uint32 targetGameId = 1; - */ public Builder setTargetGameId(int value) { - copyOnWrite(); - instance.setTargetGameId(value); + bitField0_ |= 0x00000001; + targetGameId_ = value; + return this; } - /** - * optional uint32 targetGameId = 1; - */ public Builder clearTargetGameId() { - copyOnWrite(); - instance.clearTargetGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + targetGameId_ = 0; + return this; } - - /** - * optional uint32 targetPlayerId = 2; - */ - @java.lang.Override + + // optional uint32 targetPlayerId = 2; + private int targetPlayerId_ ; public boolean hasTargetPlayerId() { - return instance.hasTargetPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 targetPlayerId = 2; - */ - @java.lang.Override public int getTargetPlayerId() { - return instance.getTargetPlayerId(); + return targetPlayerId_; } - /** - * optional uint32 targetPlayerId = 2; - */ public Builder setTargetPlayerId(int value) { - copyOnWrite(); - instance.setTargetPlayerId(value); + bitField0_ |= 0x00000002; + targetPlayerId_ = value; + return this; } - /** - * optional uint32 targetPlayerId = 2; - */ public Builder clearTargetPlayerId() { - copyOnWrite(); - instance.clearTargetPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + targetPlayerId_ = 0; + return this; } - - /** - * required string chatText = 3; - */ - @java.lang.Override + + // required string chatText = 3; + private java.lang.Object chatText_ = ""; public boolean hasChatText() { - return instance.hasChatText(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required string chatText = 3; - */ - @java.lang.Override - public java.lang.String getChatText() { - return instance.getChatText(); + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } } - /** - * required string chatText = 3; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return instance.getChatTextBytes(); - } - /** - * required string chatText = 3; - */ - public Builder setChatText( - java.lang.String value) { - copyOnWrite(); - instance.setChatText(value); + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + chatText_ = value; + return this; } - /** - * required string chatText = 3; - */ public Builder clearChatText() { - copyOnWrite(); - instance.clearChatText(); + bitField0_ = (bitField0_ & ~0x00000004); + chatText_ = getDefaultInstance().getChatText(); + return this; } - /** - * required string chatText = 3; - */ - public Builder setChatTextBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setChatTextBytes(value); - return this; + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000004; + chatText_ = value; + } - + // @@protoc_insertion_point(builder_scope:ChatRequestMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ChatRequestMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasChatText()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ChatRequestMessage other = (de.pokerth.protocol.ProtoBuf.ChatRequestMessage) arg1; - targetGameId_ = visitor.visitInt( - hasTargetGameId(), targetGameId_, - other.hasTargetGameId(), other.targetGameId_); - targetPlayerId_ = visitor.visitInt( - hasTargetPlayerId(), targetPlayerId_, - other.hasTargetPlayerId(), other.targetPlayerId_); - chatText_ = visitor.visitString( - hasChatText(), chatText_, - other.hasChatText(), other.chatText_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - targetGameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - targetPlayerId_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000004; - chatText_ = s; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ChatRequestMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ChatRequestMessage) - private static final de.pokerth.protocol.ProtoBuf.ChatRequestMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ChatRequestMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ChatRequestMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ChatRequestMessage) } - - public interface ChatMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChatMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional uint32 gameId = 1; - */ + + public interface ChatMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // optional uint32 gameId = 1; boolean hasGameId(); - /** - * optional uint32 gameId = 1; - */ int getGameId(); - - /** - * optional uint32 playerId = 2; - */ + + // optional uint32 playerId = 2; boolean hasPlayerId(); - /** - * optional uint32 playerId = 2; - */ int getPlayerId(); - - /** - * required .ChatMessage.ChatType chatType = 3; - */ + + // required .ChatMessage.ChatType chatType = 3; boolean hasChatType(); - /** - * required .ChatMessage.ChatType chatType = 3; - */ de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType(); - - /** - * required string chatText = 4; - */ + + // required string chatText = 4; boolean hasChatText(); - /** - * required string chatText = 4; - */ - java.lang.String getChatText(); - /** - * required string chatText = 4; - */ - com.google.protobuf.ByteString - getChatTextBytes(); + String getChatText(); } - /** - * Protobuf type {@code ChatMessage} - */ - public static final class ChatMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatMessage, ChatMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ChatMessage) - ChatMessageOrBuilder { - private ChatMessage() { - chatText_ = ""; + public static final class ChatMessage extends + com.google.protobuf.GeneratedMessageLite + implements ChatMessageOrBuilder { + // Use ChatMessage.newBuilder() to construct. + private ChatMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code ChatMessage.ChatType} - */ + private ChatMessage(boolean noInit) {} + + private static final ChatMessage defaultInstance; + public static ChatMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum ChatType implements com.google.protobuf.Internal.EnumLite { - /** - * chatTypeLobby = 0; - */ - chatTypeLobby(0), - /** - * chatTypeGame = 1; - */ - chatTypeGame(1), - /** - * chatTypeBot = 2; - */ - chatTypeBot(2), - /** - * chatTypeBroadcast = 3; - */ - chatTypeBroadcast(3), - /** - * chatTypePrivate = 4; - */ - chatTypePrivate(4), + chatTypeLobby(0, 0), + chatTypeGame(1, 1), + chatTypeBot(2, 2), + chatTypeBroadcast(3, 3), + chatTypePrivate(4, 4), ; - - /** - * chatTypeLobby = 0; - */ + public static final int chatTypeLobby_VALUE = 0; - /** - * chatTypeGame = 1; - */ public static final int chatTypeGame_VALUE = 1; - /** - * chatTypeBot = 2; - */ public static final int chatTypeBot_VALUE = 2; - /** - * chatTypeBroadcast = 3; - */ public static final int chatTypeBroadcast_VALUE = 3; - /** - * chatTypePrivate = 4; - */ public static final int chatTypePrivate_VALUE = 4; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static ChatType valueOf(int value) { - return forNumber(value); - } - - public static ChatType forNumber(int value) { switch (value) { case 0: return chatTypeLobby; case 1: return chatTypeGame; @@ -43940,1479 +34547,1205 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChatType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public ChatType findValueByNumber(int number) { - return ChatType.forNumber(number); + return ChatType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return ChatTypeVerifier.INSTANCE; - } - - private static final class ChatTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ChatTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return ChatType.forNumber(number) != null; - } - }; - + private final int value; - - private ChatType(int value) { + + private ChatType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:ChatMessage.ChatType) } - + private int bitField0_; + // optional uint32 gameId = 1; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; - /** - * optional uint32 gameId = 1; - */ - @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { return gameId_; } - /** - * optional uint32 gameId = 1; - */ - private void setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - } - /** - * optional uint32 gameId = 1; - */ - private void clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - } - + + // optional uint32 playerId = 2; public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; - /** - * optional uint32 playerId = 2; - */ - @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { return playerId_; } - /** - * optional uint32 playerId = 2; - */ - private void setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - } - /** - * optional uint32 playerId = 2; - */ - private void clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - } - + + // required .ChatMessage.ChatType chatType = 3; public static final int CHATTYPE_FIELD_NUMBER = 3; - private int chatType_; - /** - * required .ChatMessage.ChatType chatType = 3; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_; public boolean hasChatType() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .ChatMessage.ChatType chatType = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { - de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType result = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.forNumber(chatType_); - return result == null ? de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby : result; + return chatType_; } - /** - * required .ChatMessage.ChatType chatType = 3; - */ - private void setChatType(de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatType_ = value.getNumber(); - } - /** - * required .ChatMessage.ChatType chatType = 3; - */ - private void clearChatType() { - bitField0_ = (bitField0_ & ~0x00000004); - chatType_ = 0; - } - + + // required string chatText = 4; public static final int CHATTEXT_FIELD_NUMBER = 4; - private java.lang.String chatText_; - /** - * required string chatText = 4; - */ - @java.lang.Override + private java.lang.Object chatText_; public boolean hasChatText() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required string chatText = 4; - */ - @java.lang.Override - public java.lang.String getChatText() { - return chatText_; + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } } - /** - * required string chatText = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(chatText_); + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - /** - * required string chatText = 4; - */ - private void setChatText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - chatText_ = value; + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + chatText_ = ""; } - /** - * required string chatText = 4; - */ - private void clearChatText() { - bitField0_ = (bitField0_ & ~0x00000008); - chatText_ = getDefaultInstance().getChatText(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required string chatText = 4; - */ - private void setChatTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - chatText_ = value.toStringUtf8(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(3, chatType_); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, chatType_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeString(4, getChatText()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getChatTextBytes()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, chatType_); + .computeEnumSize(3, chatType_.getNumber()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(4, getChatText()); + .computeBytesSize(4, getChatTextBytes()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ChatMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ChatMessage) - de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ChatMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * optional uint32 gameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + bitField0_ = (bitField0_ & ~0x00000004); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage build() { + de.pokerth.protocol.ProtoBuf.ChatMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatMessage result = new de.pokerth.protocol.ProtoBuf.ChatMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.chatType_ = chatType_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasChatType()) { + setChatType(other.getChatType()); + } + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasChatType()) { + + return false; + } + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000004; + chatType_ = value; + } + break; + } + case 34: { + bitField0_ |= 0x00000008; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // optional uint32 gameId = 1; + private int gameId_ ; public boolean hasGameId() { - return instance.hasGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint32 gameId = 1; - */ - @java.lang.Override public int getGameId() { - return instance.getGameId(); + return gameId_; } - /** - * optional uint32 gameId = 1; - */ public Builder setGameId(int value) { - copyOnWrite(); - instance.setGameId(value); + bitField0_ |= 0x00000001; + gameId_ = value; + return this; } - /** - * optional uint32 gameId = 1; - */ public Builder clearGameId() { - copyOnWrite(); - instance.clearGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + return this; } - - /** - * optional uint32 playerId = 2; - */ - @java.lang.Override + + // optional uint32 playerId = 2; + private int playerId_ ; public boolean hasPlayerId() { - return instance.hasPlayerId(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 playerId = 2; - */ - @java.lang.Override public int getPlayerId() { - return instance.getPlayerId(); + return playerId_; } - /** - * optional uint32 playerId = 2; - */ public Builder setPlayerId(int value) { - copyOnWrite(); - instance.setPlayerId(value); + bitField0_ |= 0x00000002; + playerId_ = value; + return this; } - /** - * optional uint32 playerId = 2; - */ public Builder clearPlayerId() { - copyOnWrite(); - instance.clearPlayerId(); + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + return this; } - - /** - * required .ChatMessage.ChatType chatType = 3; - */ - @java.lang.Override + + // required .ChatMessage.ChatType chatType = 3; + private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; public boolean hasChatType() { - return instance.hasChatType(); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * required .ChatMessage.ChatType chatType = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { - return instance.getChatType(); + return chatType_; } - /** - * required .ChatMessage.ChatType chatType = 3; - */ public Builder setChatType(de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value) { - copyOnWrite(); - instance.setChatType(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + chatType_ = value; + return this; } - /** - * required .ChatMessage.ChatType chatType = 3; - */ public Builder clearChatType() { - copyOnWrite(); - instance.clearChatType(); + bitField0_ = (bitField0_ & ~0x00000004); + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + return this; } - - /** - * required string chatText = 4; - */ - @java.lang.Override + + // required string chatText = 4; + private java.lang.Object chatText_ = ""; public boolean hasChatText() { - return instance.hasChatText(); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * required string chatText = 4; - */ - @java.lang.Override - public java.lang.String getChatText() { - return instance.getChatText(); + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } } - /** - * required string chatText = 4; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return instance.getChatTextBytes(); - } - /** - * required string chatText = 4; - */ - public Builder setChatText( - java.lang.String value) { - copyOnWrite(); - instance.setChatText(value); + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + chatText_ = value; + return this; } - /** - * required string chatText = 4; - */ public Builder clearChatText() { - copyOnWrite(); - instance.clearChatText(); + bitField0_ = (bitField0_ & ~0x00000008); + chatText_ = getDefaultInstance().getChatText(); + return this; } - /** - * required string chatText = 4; - */ - public Builder setChatTextBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setChatTextBytes(value); - return this; + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + chatText_ = value; + } - + // @@protoc_insertion_point(builder_scope:ChatMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ChatMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasChatType()) { - return null; - } - if (!hasChatText()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ChatMessage other = (de.pokerth.protocol.ProtoBuf.ChatMessage) arg1; - gameId_ = visitor.visitInt( - hasGameId(), gameId_, - other.hasGameId(), other.gameId_); - playerId_ = visitor.visitInt( - hasPlayerId(), playerId_, - other.hasPlayerId(), other.playerId_); - chatType_ = visitor.visitInt(hasChatType(), chatType_, - other.hasChatType(), other.chatType_); - chatText_ = visitor.visitString( - hasChatText(), chatText_, - other.hasChatText(), other.chatText_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - case 24: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - chatType_ = rawValue; - } - break; - } - case 34: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000008; - chatText_ = s; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ChatMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ChatMessage) - private static final de.pokerth.protocol.ProtoBuf.ChatMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ChatMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ChatMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ChatMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ChatMessage) } - - public interface ChatRejectMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ChatRejectMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required string chatText = 1; - */ + + public interface ChatRejectMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required string chatText = 1; boolean hasChatText(); - /** - * required string chatText = 1; - */ - java.lang.String getChatText(); - /** - * required string chatText = 1; - */ - com.google.protobuf.ByteString - getChatTextBytes(); + String getChatText(); } - /** - * Protobuf type {@code ChatRejectMessage} - */ - public static final class ChatRejectMessage extends - com.google.protobuf.GeneratedMessageLite< - ChatRejectMessage, ChatRejectMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ChatRejectMessage) - ChatRejectMessageOrBuilder { - private ChatRejectMessage() { + public static final class ChatRejectMessage extends + com.google.protobuf.GeneratedMessageLite + implements ChatRejectMessageOrBuilder { + // Use ChatRejectMessage.newBuilder() to construct. + private ChatRejectMessage(Builder builder) { + super(builder); + } + private ChatRejectMessage(boolean noInit) {} + + private static final ChatRejectMessage defaultInstance; + public static ChatRejectMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatRejectMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required string chatText = 1; + public static final int CHATTEXT_FIELD_NUMBER = 1; + private java.lang.Object chatText_; + public boolean hasChatText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { chatText_ = ""; } - private int bitField0_; - public static final int CHATTEXT_FIELD_NUMBER = 1; - private java.lang.String chatText_; - /** - * required string chatText = 1; - */ - @java.lang.Override - public boolean hasChatText() { - return ((bitField0_ & 0x00000001) != 0); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required string chatText = 1; - */ - @java.lang.Override - public java.lang.String getChatText() { - return chatText_; - } - /** - * required string chatText = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(chatText_); - } - /** - * required string chatText = 1; - */ - private void setChatText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - chatText_ = value; - } - /** - * required string chatText = 1; - */ - private void clearChatText() { - bitField0_ = (bitField0_ & ~0x00000001); - chatText_ = getDefaultInstance().getChatText(); - } - /** - * required string chatText = 1; - */ - private void setChatTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - chatText_ = value.toStringUtf8(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeString(1, getChatText()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getChatTextBytes()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getChatText()); + .computeBytesSize(1, getChatTextBytes()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRejectMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ChatRejectMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatRejectMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ChatRejectMessage) - de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required string chatText = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage build() { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatRejectMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = new de.pokerth.protocol.ProtoBuf.ChatRejectMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatRejectMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance()) return this; + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required string chatText = 1; + private java.lang.Object chatText_ = ""; public boolean hasChatText() { - return instance.hasChatText(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string chatText = 1; - */ - @java.lang.Override - public java.lang.String getChatText() { - return instance.getChatText(); + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } } - /** - * required string chatText = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatTextBytes() { - return instance.getChatTextBytes(); - } - /** - * required string chatText = 1; - */ - public Builder setChatText( - java.lang.String value) { - copyOnWrite(); - instance.setChatText(value); + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + chatText_ = value; + return this; } - /** - * required string chatText = 1; - */ public Builder clearChatText() { - copyOnWrite(); - instance.clearChatText(); + bitField0_ = (bitField0_ & ~0x00000001); + chatText_ = getDefaultInstance().getChatText(); + return this; } - /** - * required string chatText = 1; - */ - public Builder setChatTextBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setChatTextBytes(value); - return this; + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + chatText_ = value; + } - + // @@protoc_insertion_point(builder_scope:ChatRejectMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ChatRejectMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasChatText()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ChatRejectMessage other = (de.pokerth.protocol.ProtoBuf.ChatRejectMessage) arg1; - chatText_ = visitor.visitString( - hasChatText(), chatText_, - other.hasChatText(), other.chatText_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000001; - chatText_ = s; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ChatRejectMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ChatRejectMessage) - private static final de.pokerth.protocol.ProtoBuf.ChatRejectMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ChatRejectMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ChatRejectMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ChatRejectMessage) } - - public interface DialogMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:DialogMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required string notificationText = 1; - */ + + public interface DialogMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required string notificationText = 1; boolean hasNotificationText(); - /** - * required string notificationText = 1; - */ - java.lang.String getNotificationText(); - /** - * required string notificationText = 1; - */ - com.google.protobuf.ByteString - getNotificationTextBytes(); + String getNotificationText(); } - /** - * Protobuf type {@code DialogMessage} - */ - public static final class DialogMessage extends - com.google.protobuf.GeneratedMessageLite< - DialogMessage, DialogMessage.Builder> implements - // @@protoc_insertion_point(message_implements:DialogMessage) - DialogMessageOrBuilder { - private DialogMessage() { + public static final class DialogMessage extends + com.google.protobuf.GeneratedMessageLite + implements DialogMessageOrBuilder { + // Use DialogMessage.newBuilder() to construct. + private DialogMessage(Builder builder) { + super(builder); + } + private DialogMessage(boolean noInit) {} + + private static final DialogMessage defaultInstance; + public static DialogMessage getDefaultInstance() { + return defaultInstance; + } + + public DialogMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private int bitField0_; + // required string notificationText = 1; + public static final int NOTIFICATIONTEXT_FIELD_NUMBER = 1; + private java.lang.Object notificationText_; + public boolean hasNotificationText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getNotificationText() { + java.lang.Object ref = notificationText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + notificationText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNotificationTextBytes() { + java.lang.Object ref = notificationText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + notificationText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { notificationText_ = ""; } - private int bitField0_; - public static final int NOTIFICATIONTEXT_FIELD_NUMBER = 1; - private java.lang.String notificationText_; - /** - * required string notificationText = 1; - */ - @java.lang.Override - public boolean hasNotificationText() { - return ((bitField0_ & 0x00000001) != 0); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasNotificationText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required string notificationText = 1; - */ - @java.lang.Override - public java.lang.String getNotificationText() { - return notificationText_; - } - /** - * required string notificationText = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNotificationTextBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(notificationText_); - } - /** - * required string notificationText = 1; - */ - private void setNotificationText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - notificationText_ = value; - } - /** - * required string notificationText = 1; - */ - private void clearNotificationText() { - bitField0_ = (bitField0_ & ~0x00000001); - notificationText_ = getDefaultInstance().getNotificationText(); - } - /** - * required string notificationText = 1; - */ - private void setNotificationTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - notificationText_ = value.toStringUtf8(); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeString(1, getNotificationText()); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNotificationTextBytes()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getNotificationText()); + .computeBytesSize(1, getNotificationTextBytes()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DialogMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code DialogMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DialogMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:DialogMessage) - de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.DialogMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required string notificationText = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + notificationText_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage build() { + de.pokerth.protocol.ProtoBuf.DialogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DialogMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DialogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DialogMessage result = new de.pokerth.protocol.ProtoBuf.DialogMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.notificationText_ = notificationText_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DialogMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance()) return this; + if (other.hasNotificationText()) { + setNotificationText(other.getNotificationText()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasNotificationText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + notificationText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required string notificationText = 1; + private java.lang.Object notificationText_ = ""; public boolean hasNotificationText() { - return instance.hasNotificationText(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string notificationText = 1; - */ - @java.lang.Override - public java.lang.String getNotificationText() { - return instance.getNotificationText(); + public String getNotificationText() { + java.lang.Object ref = notificationText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + notificationText_ = s; + return s; + } else { + return (String) ref; + } } - /** - * required string notificationText = 1; - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNotificationTextBytes() { - return instance.getNotificationTextBytes(); - } - /** - * required string notificationText = 1; - */ - public Builder setNotificationText( - java.lang.String value) { - copyOnWrite(); - instance.setNotificationText(value); + public Builder setNotificationText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + notificationText_ = value; + return this; } - /** - * required string notificationText = 1; - */ public Builder clearNotificationText() { - copyOnWrite(); - instance.clearNotificationText(); + bitField0_ = (bitField0_ & ~0x00000001); + notificationText_ = getDefaultInstance().getNotificationText(); + return this; } - /** - * required string notificationText = 1; - */ - public Builder setNotificationTextBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setNotificationTextBytes(value); - return this; + void setNotificationText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + notificationText_ = value; + } - + // @@protoc_insertion_point(builder_scope:DialogMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.DialogMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasNotificationText()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.DialogMessage other = (de.pokerth.protocol.ProtoBuf.DialogMessage) arg1; - notificationText_ = visitor.visitString( - hasNotificationText(), notificationText_, - other.hasNotificationText(), other.notificationText_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readString(); - bitField0_ |= 0x00000001; - notificationText_ = s; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.DialogMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:DialogMessage) - private static final de.pokerth.protocol.ProtoBuf.DialogMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new DialogMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.DialogMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new DialogMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:DialogMessage) } - - public interface TimeoutWarningMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:TimeoutWarningMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ + + public interface TimeoutWarningMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; boolean hasTimeoutReason(); - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason(); - - /** - * required uint32 remainingSeconds = 2; - */ + + // required uint32 remainingSeconds = 2; boolean hasRemainingSeconds(); - /** - * required uint32 remainingSeconds = 2; - */ int getRemainingSeconds(); } - /** - * Protobuf type {@code TimeoutWarningMessage} - */ - public static final class TimeoutWarningMessage extends - com.google.protobuf.GeneratedMessageLite< - TimeoutWarningMessage, TimeoutWarningMessage.Builder> implements - // @@protoc_insertion_point(message_implements:TimeoutWarningMessage) - TimeoutWarningMessageOrBuilder { - private TimeoutWarningMessage() { + public static final class TimeoutWarningMessage extends + com.google.protobuf.GeneratedMessageLite + implements TimeoutWarningMessageOrBuilder { + // Use TimeoutWarningMessage.newBuilder() to construct. + private TimeoutWarningMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code TimeoutWarningMessage.TimeoutReason} - */ + private TimeoutWarningMessage(boolean noInit) {} + + private static final TimeoutWarningMessage defaultInstance; + public static TimeoutWarningMessage getDefaultInstance() { + return defaultInstance; + } + + public TimeoutWarningMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum TimeoutReason implements com.google.protobuf.Internal.EnumLite { - /** - * timeoutNoDataReceived = 0; - */ - timeoutNoDataReceived(0), - /** - * timeoutInactiveGame = 1; - */ - timeoutInactiveGame(1), - /** - * timeoutKickAfterAutofold = 2; - */ - timeoutKickAfterAutofold(2), + timeoutNoDataReceived(0, 0), + timeoutInactiveGame(1, 1), + timeoutKickAfterAutofold(2, 2), ; - - /** - * timeoutNoDataReceived = 0; - */ + public static final int timeoutNoDataReceived_VALUE = 0; - /** - * timeoutInactiveGame = 1; - */ public static final int timeoutInactiveGame_VALUE = 1; - /** - * timeoutKickAfterAutofold = 2; - */ public static final int timeoutKickAfterAutofold_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static TimeoutReason valueOf(int value) { - return forNumber(value); - } - - public static TimeoutReason forNumber(int value) { switch (value) { case 0: return timeoutNoDataReceived; case 1: return timeoutInactiveGame; @@ -45420,1181 +35753,986 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TimeoutReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public TimeoutReason findValueByNumber(int number) { - return TimeoutReason.forNumber(number); + return TimeoutReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return TimeoutReasonVerifier.INSTANCE; - } - - private static final class TimeoutReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new TimeoutReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return TimeoutReason.forNumber(number) != null; - } - }; - + private final int value; - - private TimeoutReason(int value) { + + private TimeoutReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:TimeoutWarningMessage.TimeoutReason) } - + private int bitField0_; + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; public static final int TIMEOUTREASON_FIELD_NUMBER = 1; - private int timeoutReason_; - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_; public boolean hasTimeoutReason() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason result = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.forNumber(timeoutReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived : result; + return timeoutReason_; } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - private void setTimeoutReason(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - timeoutReason_ = value.getNumber(); - } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - private void clearTimeoutReason() { - bitField0_ = (bitField0_ & ~0x00000001); - timeoutReason_ = 0; - } - + + // required uint32 remainingSeconds = 2; public static final int REMAININGSECONDS_FIELD_NUMBER = 2; private int remainingSeconds_; - /** - * required uint32 remainingSeconds = 2; - */ - @java.lang.Override public boolean hasRemainingSeconds() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 remainingSeconds = 2; - */ - @java.lang.Override public int getRemainingSeconds() { return remainingSeconds_; } - /** - * required uint32 remainingSeconds = 2; - */ - private void setRemainingSeconds(int value) { - bitField0_ |= 0x00000002; - remainingSeconds_ = value; - } - /** - * required uint32 remainingSeconds = 2; - */ - private void clearRemainingSeconds() { - bitField0_ = (bitField0_ & ~0x00000002); + + private void initFields() { + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; remainingSeconds_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTimeoutReason()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRemainingSeconds()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, timeoutReason_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, timeoutReason_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, remainingSeconds_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, timeoutReason_); + .computeEnumSize(1, timeoutReason_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, remainingSeconds_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code TimeoutWarningMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:TimeoutWarningMessage) - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + bitField0_ = (bitField0_ & ~0x00000001); + remainingSeconds_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage build() { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = new de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.timeoutReason_ = timeoutReason_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.remainingSeconds_ = remainingSeconds_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance()) return this; + if (other.hasTimeoutReason()) { + setTimeoutReason(other.getTimeoutReason()); + } + if (other.hasRemainingSeconds()) { + setRemainingSeconds(other.getRemainingSeconds()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasTimeoutReason()) { + + return false; + } + if (!hasRemainingSeconds()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + timeoutReason_ = value; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + remainingSeconds_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; public boolean hasTimeoutReason() { - return instance.hasTimeoutReason(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { - return instance.getTimeoutReason(); + return timeoutReason_; } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ public Builder setTimeoutReason(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value) { - copyOnWrite(); - instance.setTimeoutReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + timeoutReason_ = value; + return this; } - /** - * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - */ public Builder clearTimeoutReason() { - copyOnWrite(); - instance.clearTimeoutReason(); + bitField0_ = (bitField0_ & ~0x00000001); + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + return this; } - - /** - * required uint32 remainingSeconds = 2; - */ - @java.lang.Override + + // required uint32 remainingSeconds = 2; + private int remainingSeconds_ ; public boolean hasRemainingSeconds() { - return instance.hasRemainingSeconds(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint32 remainingSeconds = 2; - */ - @java.lang.Override public int getRemainingSeconds() { - return instance.getRemainingSeconds(); + return remainingSeconds_; } - /** - * required uint32 remainingSeconds = 2; - */ public Builder setRemainingSeconds(int value) { - copyOnWrite(); - instance.setRemainingSeconds(value); + bitField0_ |= 0x00000002; + remainingSeconds_ = value; + return this; } - /** - * required uint32 remainingSeconds = 2; - */ public Builder clearRemainingSeconds() { - copyOnWrite(); - instance.clearRemainingSeconds(); + bitField0_ = (bitField0_ & ~0x00000002); + remainingSeconds_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:TimeoutWarningMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasTimeoutReason()) { - return null; - } - if (!hasRemainingSeconds()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage other = (de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage) arg1; - timeoutReason_ = visitor.visitInt(hasTimeoutReason(), timeoutReason_, - other.hasTimeoutReason(), other.timeoutReason_); - remainingSeconds_ = visitor.visitInt( - hasRemainingSeconds(), remainingSeconds_, - other.hasRemainingSeconds(), other.remainingSeconds_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - timeoutReason_ = rawValue; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - remainingSeconds_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) - private static final de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new TimeoutWarningMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new TimeoutWarningMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) } - - public interface ResetTimeoutMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ResetTimeoutMessage) - com.google.protobuf.MessageLiteOrBuilder { + + public interface ResetTimeoutMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { } - /** - * Protobuf type {@code ResetTimeoutMessage} - */ - public static final class ResetTimeoutMessage extends - com.google.protobuf.GeneratedMessageLite< - ResetTimeoutMessage, ResetTimeoutMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ResetTimeoutMessage) - ResetTimeoutMessageOrBuilder { - private ResetTimeoutMessage() { + public static final class ResetTimeoutMessage extends + com.google.protobuf.GeneratedMessageLite + implements ResetTimeoutMessageOrBuilder { + // Use ResetTimeoutMessage.newBuilder() to construct. + private ResetTimeoutMessage(Builder builder) { + super(builder); } - @java.lang.Override + private ResetTimeoutMessage(boolean noInit) {} + + private static final ResetTimeoutMessage defaultInstance; + public static ResetTimeoutMessage getDefaultInstance() { + return defaultInstance; + } + + public ResetTimeoutMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + getSerializedSize(); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ResetTimeoutMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ResetTimeoutMessage) - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage build() { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = new de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage(this); + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance()) return this; + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + } + } + } + + // @@protoc_insertion_point(builder_scope:ResetTimeoutMessage) } - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage other = (de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage) arg1; - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return (byte) 1; - } - case SET_MEMOIZED_IS_INITIALIZED: { - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) - private static final de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ResetTimeoutMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ResetTimeoutMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) } - - public interface ReportAvatarMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReportAvatarMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 reportedPlayerId = 1; - */ + + public interface ReportAvatarMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 reportedPlayerId = 1; boolean hasReportedPlayerId(); - /** - * required uint32 reportedPlayerId = 1; - */ int getReportedPlayerId(); - - /** - * required bytes reportedAvatarHash = 2; - */ + + // required bytes reportedAvatarHash = 2; boolean hasReportedAvatarHash(); - /** - * required bytes reportedAvatarHash = 2; - */ com.google.protobuf.ByteString getReportedAvatarHash(); } - /** - * Protobuf type {@code ReportAvatarMessage} - */ - public static final class ReportAvatarMessage extends - com.google.protobuf.GeneratedMessageLite< - ReportAvatarMessage, ReportAvatarMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ReportAvatarMessage) - ReportAvatarMessageOrBuilder { - private ReportAvatarMessage() { - reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + public static final class ReportAvatarMessage extends + com.google.protobuf.GeneratedMessageLite + implements ReportAvatarMessageOrBuilder { + // Use ReportAvatarMessage.newBuilder() to construct. + private ReportAvatarMessage(Builder builder) { + super(builder); } + private ReportAvatarMessage(boolean noInit) {} + + private static final ReportAvatarMessage defaultInstance; + public static ReportAvatarMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportAvatarMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 reportedPlayerId = 1; public static final int REPORTEDPLAYERID_FIELD_NUMBER = 1; private int reportedPlayerId_; - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public int getReportedPlayerId() { return reportedPlayerId_; } - /** - * required uint32 reportedPlayerId = 1; - */ - private void setReportedPlayerId(int value) { - bitField0_ |= 0x00000001; - reportedPlayerId_ = value; - } - /** - * required uint32 reportedPlayerId = 1; - */ - private void clearReportedPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedPlayerId_ = 0; - } - + + // required bytes reportedAvatarHash = 2; public static final int REPORTEDAVATARHASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString reportedAvatarHash_; - /** - * required bytes reportedAvatarHash = 2; - */ - @java.lang.Override public boolean hasReportedAvatarHash() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes reportedAvatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getReportedAvatarHash() { return reportedAvatarHash_; } - /** - * required bytes reportedAvatarHash = 2; - */ - private void setReportedAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - reportedAvatarHash_ = value; + + private void initFields() { + reportedPlayerId_ = 0; + reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; } - /** - * required bytes reportedAvatarHash = 2; - */ - private void clearReportedAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - reportedAvatarHash_ = getDefaultInstance().getReportedAvatarHash(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReportedAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, reportedAvatarHash_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, reportedAvatarHash_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ReportAvatarMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ReportAvatarMessage) - de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage build() { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = new de.pokerth.protocol.ProtoBuf.ReportAvatarMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedPlayerId_ = reportedPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportedAvatarHash_ = reportedAvatarHash_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance()) return this; + if (other.hasReportedPlayerId()) { + setReportedPlayerId(other.getReportedPlayerId()); + } + if (other.hasReportedAvatarHash()) { + setReportedAvatarHash(other.getReportedAvatarHash()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasReportedPlayerId()) { + + return false; + } + if (!hasReportedAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedPlayerId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + reportedAvatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedPlayerId = 1; + private int reportedPlayerId_ ; public boolean hasReportedPlayerId() { - return instance.hasReportedPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public int getReportedPlayerId() { - return instance.getReportedPlayerId(); + return reportedPlayerId_; } - /** - * required uint32 reportedPlayerId = 1; - */ public Builder setReportedPlayerId(int value) { - copyOnWrite(); - instance.setReportedPlayerId(value); + bitField0_ |= 0x00000001; + reportedPlayerId_ = value; + return this; } - /** - * required uint32 reportedPlayerId = 1; - */ public Builder clearReportedPlayerId() { - copyOnWrite(); - instance.clearReportedPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + reportedPlayerId_ = 0; + return this; } - - /** - * required bytes reportedAvatarHash = 2; - */ - @java.lang.Override + + // required bytes reportedAvatarHash = 2; + private com.google.protobuf.ByteString reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; public boolean hasReportedAvatarHash() { - return instance.hasReportedAvatarHash(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes reportedAvatarHash = 2; - */ - @java.lang.Override public com.google.protobuf.ByteString getReportedAvatarHash() { - return instance.getReportedAvatarHash(); + return reportedAvatarHash_; } - /** - * required bytes reportedAvatarHash = 2; - */ public Builder setReportedAvatarHash(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setReportedAvatarHash(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportedAvatarHash_ = value; + return this; } - /** - * required bytes reportedAvatarHash = 2; - */ public Builder clearReportedAvatarHash() { - copyOnWrite(); - instance.clearReportedAvatarHash(); + bitField0_ = (bitField0_ & ~0x00000002); + reportedAvatarHash_ = getDefaultInstance().getReportedAvatarHash(); + return this; } - + // @@protoc_insertion_point(builder_scope:ReportAvatarMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ReportAvatarMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasReportedPlayerId()) { - return null; - } - if (!hasReportedAvatarHash()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage other = (de.pokerth.protocol.ProtoBuf.ReportAvatarMessage) arg1; - reportedPlayerId_ = visitor.visitInt( - hasReportedPlayerId(), reportedPlayerId_, - other.hasReportedPlayerId(), other.reportedPlayerId_); - reportedAvatarHash_ = visitor.visitByteString( - hasReportedAvatarHash(), reportedAvatarHash_, - other.hasReportedAvatarHash(), other.reportedAvatarHash_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - reportedPlayerId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - reportedAvatarHash_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ReportAvatarMessage) - private static final de.pokerth.protocol.ProtoBuf.ReportAvatarMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ReportAvatarMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ReportAvatarMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ReportAvatarMessage) } - - public interface ReportAvatarAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReportAvatarAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 reportedPlayerId = 1; - */ + + public interface ReportAvatarAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 reportedPlayerId = 1; boolean hasReportedPlayerId(); - /** - * required uint32 reportedPlayerId = 1; - */ int getReportedPlayerId(); - - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; boolean hasReportAvatarResult(); - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult(); } - /** - * Protobuf type {@code ReportAvatarAckMessage} - */ - public static final class ReportAvatarAckMessage extends - com.google.protobuf.GeneratedMessageLite< - ReportAvatarAckMessage, ReportAvatarAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ReportAvatarAckMessage) - ReportAvatarAckMessageOrBuilder { - private ReportAvatarAckMessage() { + public static final class ReportAvatarAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements ReportAvatarAckMessageOrBuilder { + // Use ReportAvatarAckMessage.newBuilder() to construct. + private ReportAvatarAckMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code ReportAvatarAckMessage.ReportAvatarResult} - */ + private ReportAvatarAckMessage(boolean noInit) {} + + private static final ReportAvatarAckMessage defaultInstance; + public static ReportAvatarAckMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportAvatarAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum ReportAvatarResult implements com.google.protobuf.Internal.EnumLite { - /** - * avatarReportAccepted = 0; - */ - avatarReportAccepted(0), - /** - * avatarReportDuplicate = 1; - */ - avatarReportDuplicate(1), - /** - * avatarReportInvalid = 2; - */ - avatarReportInvalid(2), + avatarReportAccepted(0, 0), + avatarReportDuplicate(1, 1), + avatarReportInvalid(2, 2), ; - - /** - * avatarReportAccepted = 0; - */ + public static final int avatarReportAccepted_VALUE = 0; - /** - * avatarReportDuplicate = 1; - */ public static final int avatarReportDuplicate_VALUE = 1; - /** - * avatarReportInvalid = 2; - */ public static final int avatarReportInvalid_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static ReportAvatarResult valueOf(int value) { - return forNumber(value); - } - - public static ReportAvatarResult forNumber(int value) { switch (value) { case 0: return avatarReportAccepted; case 1: return avatarReportDuplicate; @@ -46602,854 +36740,697 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ReportAvatarResult> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public ReportAvatarResult findValueByNumber(int number) { - return ReportAvatarResult.forNumber(number); + return ReportAvatarResult.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return ReportAvatarResultVerifier.INSTANCE; - } - - private static final class ReportAvatarResultVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ReportAvatarResultVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return ReportAvatarResult.forNumber(number) != null; - } - }; - + private final int value; - - private ReportAvatarResult(int value) { + + private ReportAvatarResult(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:ReportAvatarAckMessage.ReportAvatarResult) } - + private int bitField0_; + // required uint32 reportedPlayerId = 1; public static final int REPORTEDPLAYERID_FIELD_NUMBER = 1; private int reportedPlayerId_; - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public int getReportedPlayerId() { return reportedPlayerId_; } - /** - * required uint32 reportedPlayerId = 1; - */ - private void setReportedPlayerId(int value) { - bitField0_ |= 0x00000001; - reportedPlayerId_ = value; - } - /** - * required uint32 reportedPlayerId = 1; - */ - private void clearReportedPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedPlayerId_ = 0; - } - + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; public static final int REPORTAVATARRESULT_FIELD_NUMBER = 2; - private int reportAvatarResult_; - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_; public boolean hasReportAvatarResult() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult result = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.forNumber(reportAvatarResult_); - return result == null ? de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted : result; + return reportAvatarResult_; } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - private void setReportAvatarResult(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + reportedPlayerId_ = 0; + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedPlayerId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - reportAvatarResult_ = value.getNumber(); + if (!hasReportAvatarResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - private void clearReportAvatarResult() { - bitField0_ = (bitField0_ & ~0x00000002); - reportAvatarResult_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, reportAvatarResult_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, reportAvatarResult_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reportAvatarResult_); + .computeEnumSize(2, reportAvatarResult_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ReportAvatarAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ReportAvatarAckMessage) - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage build() { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = new de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedPlayerId_ = reportedPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportAvatarResult_ = reportAvatarResult_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance()) return this; + if (other.hasReportedPlayerId()) { + setReportedPlayerId(other.getReportedPlayerId()); + } + if (other.hasReportAvatarResult()) { + setReportAvatarResult(other.getReportAvatarResult()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasReportedPlayerId()) { + + return false; + } + if (!hasReportAvatarResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedPlayerId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + reportAvatarResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedPlayerId = 1; + private int reportedPlayerId_ ; public boolean hasReportedPlayerId() { - return instance.hasReportedPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedPlayerId = 1; - */ - @java.lang.Override public int getReportedPlayerId() { - return instance.getReportedPlayerId(); + return reportedPlayerId_; } - /** - * required uint32 reportedPlayerId = 1; - */ public Builder setReportedPlayerId(int value) { - copyOnWrite(); - instance.setReportedPlayerId(value); + bitField0_ |= 0x00000001; + reportedPlayerId_ = value; + return this; } - /** - * required uint32 reportedPlayerId = 1; - */ public Builder clearReportedPlayerId() { - copyOnWrite(); - instance.clearReportedPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + reportedPlayerId_ = 0; + return this; } - - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - @java.lang.Override + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; public boolean hasReportAvatarResult() { - return instance.hasReportAvatarResult(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { - return instance.getReportAvatarResult(); + return reportAvatarResult_; } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ public Builder setReportAvatarResult(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value) { - copyOnWrite(); - instance.setReportAvatarResult(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportAvatarResult_ = value; + return this; } - /** - * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - */ public Builder clearReportAvatarResult() { - copyOnWrite(); - instance.clearReportAvatarResult(); + bitField0_ = (bitField0_ & ~0x00000002); + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + return this; } - + // @@protoc_insertion_point(builder_scope:ReportAvatarAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasReportedPlayerId()) { - return null; - } - if (!hasReportAvatarResult()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage other = (de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage) arg1; - reportedPlayerId_ = visitor.visitInt( - hasReportedPlayerId(), reportedPlayerId_, - other.hasReportedPlayerId(), other.reportedPlayerId_); - reportAvatarResult_ = visitor.visitInt(hasReportAvatarResult(), reportAvatarResult_, - other.hasReportAvatarResult(), other.reportAvatarResult_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - reportedPlayerId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - reportAvatarResult_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) - private static final de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ReportAvatarAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ReportAvatarAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) } - - public interface ReportGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReportGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 reportedGameId = 1; - */ + + public interface ReportGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 reportedGameId = 1; boolean hasReportedGameId(); - /** - * required uint32 reportedGameId = 1; - */ int getReportedGameId(); } - /** - * Protobuf type {@code ReportGameMessage} - */ - public static final class ReportGameMessage extends - com.google.protobuf.GeneratedMessageLite< - ReportGameMessage, ReportGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ReportGameMessage) - ReportGameMessageOrBuilder { - private ReportGameMessage() { + public static final class ReportGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements ReportGameMessageOrBuilder { + // Use ReportGameMessage.newBuilder() to construct. + private ReportGameMessage(Builder builder) { + super(builder); } + private ReportGameMessage(boolean noInit) {} + + private static final ReportGameMessage defaultInstance; + public static ReportGameMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 reportedGameId = 1; public static final int REPORTEDGAMEID_FIELD_NUMBER = 1; private int reportedGameId_; - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public int getReportedGameId() { return reportedGameId_; } - /** - * required uint32 reportedGameId = 1; - */ - private void setReportedGameId(int value) { - bitField0_ |= 0x00000001; - reportedGameId_ = value; - } - /** - * required uint32 reportedGameId = 1; - */ - private void clearReportedGameId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { reportedGameId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, reportedGameId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedGameId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ReportGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ReportGameMessage) - de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ReportGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage build() { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = new de.pokerth.protocol.ProtoBuf.ReportGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedGameId_ = reportedGameId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance()) return this; + if (other.hasReportedGameId()) { + setReportedGameId(other.getReportedGameId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasReportedGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedGameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedGameId = 1; + private int reportedGameId_ ; public boolean hasReportedGameId() { - return instance.hasReportedGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public int getReportedGameId() { - return instance.getReportedGameId(); + return reportedGameId_; } - /** - * required uint32 reportedGameId = 1; - */ public Builder setReportedGameId(int value) { - copyOnWrite(); - instance.setReportedGameId(value); + bitField0_ |= 0x00000001; + reportedGameId_ = value; + return this; } - /** - * required uint32 reportedGameId = 1; - */ public Builder clearReportedGameId() { - copyOnWrite(); - instance.clearReportedGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + reportedGameId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:ReportGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ReportGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasReportedGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ReportGameMessage other = (de.pokerth.protocol.ProtoBuf.ReportGameMessage) arg1; - reportedGameId_ = visitor.visitInt( - hasReportedGameId(), reportedGameId_, - other.hasReportedGameId(), other.reportedGameId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - reportedGameId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ReportGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ReportGameMessage) - private static final de.pokerth.protocol.ProtoBuf.ReportGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ReportGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ReportGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ReportGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ReportGameMessage) } - - public interface ReportGameAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ReportGameAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 reportedGameId = 1; - */ + + public interface ReportGameAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 reportedGameId = 1; boolean hasReportedGameId(); - /** - * required uint32 reportedGameId = 1; - */ int getReportedGameId(); - - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; boolean hasReportGameResult(); - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult(); } - /** - * Protobuf type {@code ReportGameAckMessage} - */ - public static final class ReportGameAckMessage extends - com.google.protobuf.GeneratedMessageLite< - ReportGameAckMessage, ReportGameAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ReportGameAckMessage) - ReportGameAckMessageOrBuilder { - private ReportGameAckMessage() { + public static final class ReportGameAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements ReportGameAckMessageOrBuilder { + // Use ReportGameAckMessage.newBuilder() to construct. + private ReportGameAckMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code ReportGameAckMessage.ReportGameResult} - */ + private ReportGameAckMessage(boolean noInit) {} + + private static final ReportGameAckMessage defaultInstance; + public static ReportGameAckMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportGameAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum ReportGameResult implements com.google.protobuf.Internal.EnumLite { - /** - * gameReportAccepted = 0; - */ - gameReportAccepted(0), - /** - * gameReportDuplicate = 1; - */ - gameReportDuplicate(1), - /** - * gameReportInvalid = 2; - */ - gameReportInvalid(2), + gameReportAccepted(0, 0), + gameReportDuplicate(1, 1), + gameReportInvalid(2, 2), ; - - /** - * gameReportAccepted = 0; - */ + public static final int gameReportAccepted_VALUE = 0; - /** - * gameReportDuplicate = 1; - */ public static final int gameReportDuplicate_VALUE = 1; - /** - * gameReportInvalid = 2; - */ public static final int gameReportInvalid_VALUE = 2; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static ReportGameResult valueOf(int value) { - return forNumber(value); - } - - public static ReportGameResult forNumber(int value) { switch (value) { case 0: return gameReportAccepted; case 1: return gameReportDuplicate; @@ -47457,608 +37438,426 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ReportGameResult> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public ReportGameResult findValueByNumber(int number) { - return ReportGameResult.forNumber(number); + return ReportGameResult.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return ReportGameResultVerifier.INSTANCE; - } - - private static final class ReportGameResultVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ReportGameResultVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return ReportGameResult.forNumber(number) != null; - } - }; - + private final int value; - - private ReportGameResult(int value) { + + private ReportGameResult(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:ReportGameAckMessage.ReportGameResult) } - + private int bitField0_; + // required uint32 reportedGameId = 1; public static final int REPORTEDGAMEID_FIELD_NUMBER = 1; private int reportedGameId_; - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public int getReportedGameId() { return reportedGameId_; } - /** - * required uint32 reportedGameId = 1; - */ - private void setReportedGameId(int value) { - bitField0_ |= 0x00000001; - reportedGameId_ = value; - } - /** - * required uint32 reportedGameId = 1; - */ - private void clearReportedGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedGameId_ = 0; - } - + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; public static final int REPORTGAMERESULT_FIELD_NUMBER = 2; - private int reportGameResult_; - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_; public boolean hasReportGameResult() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult result = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.forNumber(reportGameResult_); - return result == null ? de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted : result; + return reportGameResult_; } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - private void setReportGameResult(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + reportedGameId_ = 0; + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - reportGameResult_ = value.getNumber(); + if (!hasReportGameResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - private void clearReportGameResult() { - bitField0_ = (bitField0_ & ~0x00000002); - reportGameResult_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, reportedGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, reportGameResult_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, reportGameResult_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reportGameResult_); + .computeEnumSize(2, reportGameResult_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ReportGameAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ReportGameAckMessage) - de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage build() { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = new de.pokerth.protocol.ProtoBuf.ReportGameAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedGameId_ = reportedGameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportGameResult_ = reportGameResult_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance()) return this; + if (other.hasReportedGameId()) { + setReportedGameId(other.getReportedGameId()); + } + if (other.hasReportGameResult()) { + setReportGameResult(other.getReportGameResult()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasReportedGameId()) { + + return false; + } + if (!hasReportGameResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedGameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + reportGameResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedGameId = 1; + private int reportedGameId_ ; public boolean hasReportedGameId() { - return instance.hasReportedGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 reportedGameId = 1; - */ - @java.lang.Override public int getReportedGameId() { - return instance.getReportedGameId(); + return reportedGameId_; } - /** - * required uint32 reportedGameId = 1; - */ public Builder setReportedGameId(int value) { - copyOnWrite(); - instance.setReportedGameId(value); + bitField0_ |= 0x00000001; + reportedGameId_ = value; + return this; } - /** - * required uint32 reportedGameId = 1; - */ public Builder clearReportedGameId() { - copyOnWrite(); - instance.clearReportedGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + reportedGameId_ = 0; + return this; } - - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - @java.lang.Override + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; public boolean hasReportGameResult() { - return instance.hasReportGameResult(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { - return instance.getReportGameResult(); + return reportGameResult_; } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ public Builder setReportGameResult(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value) { - copyOnWrite(); - instance.setReportGameResult(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportGameResult_ = value; + return this; } - /** - * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - */ public Builder clearReportGameResult() { - copyOnWrite(); - instance.clearReportGameResult(); + bitField0_ = (bitField0_ & ~0x00000002); + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + return this; } - + // @@protoc_insertion_point(builder_scope:ReportGameAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ReportGameAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasReportedGameId()) { - return null; - } - if (!hasReportGameResult()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage other = (de.pokerth.protocol.ProtoBuf.ReportGameAckMessage) arg1; - reportedGameId_ = visitor.visitInt( - hasReportedGameId(), reportedGameId_, - other.hasReportedGameId(), other.reportedGameId_); - reportGameResult_ = visitor.visitInt(hasReportGameResult(), reportGameResult_, - other.hasReportGameResult(), other.reportGameResult_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - reportedGameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - reportGameResult_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ReportGameAckMessage) - private static final de.pokerth.protocol.ProtoBuf.ReportGameAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ReportGameAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ReportGameAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ReportGameAckMessage) } - - public interface ErrorMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ErrorMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ + + public interface ErrorMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .ErrorMessage.ErrorReason errorReason = 1; boolean hasErrorReason(); - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason(); } - /** - * Protobuf type {@code ErrorMessage} - */ - public static final class ErrorMessage extends - com.google.protobuf.GeneratedMessageLite< - ErrorMessage, ErrorMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ErrorMessage) - ErrorMessageOrBuilder { - private ErrorMessage() { + public static final class ErrorMessage extends + com.google.protobuf.GeneratedMessageLite + implements ErrorMessageOrBuilder { + // Use ErrorMessage.newBuilder() to construct. + private ErrorMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code ErrorMessage.ErrorReason} - */ + private ErrorMessage(boolean noInit) {} + + private static final ErrorMessage defaultInstance; + public static ErrorMessage getDefaultInstance() { + return defaultInstance; + } + + public ErrorMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum ErrorReason implements com.google.protobuf.Internal.EnumLite { - /** - * custReserved = 0; - */ - custReserved(0), - /** - * initVersionNotSupported = 1; - */ - initVersionNotSupported(1), - /** - * initServerFull = 2; - */ - initServerFull(2), - /** - * initAuthFailure = 3; - */ - initAuthFailure(3), - /** - * initPlayerNameInUse = 4; - */ - initPlayerNameInUse(4), - /** - * initInvalidPlayerName = 5; - */ - initInvalidPlayerName(5), - /** - * initServerMaintenance = 6; - */ - initServerMaintenance(6), - /** - * initBlocked = 7; - */ - initBlocked(7), - /** - * avatarTooLarge = 8; - */ - avatarTooLarge(8), - /** - * invalidPacket = 9; - */ - invalidPacket(9), - /** - * invalidState = 10; - */ - invalidState(10), - /** - * kickedFromServer = 11; - */ - kickedFromServer(11), - /** - * bannedFromServer = 12; - */ - bannedFromServer(12), - /** - * blockedByServer = 13; - */ - blockedByServer(13), - /** - * sessionTimeout = 14; - */ - sessionTimeout(14), + custReserved(0, 0), + initVersionNotSupported(1, 1), + initServerFull(2, 2), + initAuthFailure(3, 3), + initPlayerNameInUse(4, 4), + initInvalidPlayerName(5, 5), + initServerMaintenance(6, 6), + initBlocked(7, 7), + avatarTooLarge(8, 8), + invalidPacket(9, 9), + invalidState(10, 10), + kickedFromServer(11, 11), + bannedFromServer(12, 12), + blockedByServer(13, 13), + sessionTimeout(14, 14), ; - - /** - * custReserved = 0; - */ + public static final int custReserved_VALUE = 0; - /** - * initVersionNotSupported = 1; - */ public static final int initVersionNotSupported_VALUE = 1; - /** - * initServerFull = 2; - */ public static final int initServerFull_VALUE = 2; - /** - * initAuthFailure = 3; - */ public static final int initAuthFailure_VALUE = 3; - /** - * initPlayerNameInUse = 4; - */ public static final int initPlayerNameInUse_VALUE = 4; - /** - * initInvalidPlayerName = 5; - */ public static final int initInvalidPlayerName_VALUE = 5; - /** - * initServerMaintenance = 6; - */ public static final int initServerMaintenance_VALUE = 6; - /** - * initBlocked = 7; - */ public static final int initBlocked_VALUE = 7; - /** - * avatarTooLarge = 8; - */ public static final int avatarTooLarge_VALUE = 8; - /** - * invalidPacket = 9; - */ public static final int invalidPacket_VALUE = 9; - /** - * invalidState = 10; - */ public static final int invalidState_VALUE = 10; - /** - * kickedFromServer = 11; - */ public static final int kickedFromServer_VALUE = 11; - /** - * bannedFromServer = 12; - */ public static final int bannedFromServer_VALUE = 12; - /** - * blockedByServer = 13; - */ public static final int blockedByServer_VALUE = 13; - /** - * sessionTimeout = 14; - */ public static final int sessionTimeout_VALUE = 14; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static ErrorReason valueOf(int value) { - return forNumber(value); - } - - public static ErrorReason forNumber(int value) { switch (value) { case 0: return custReserved; case 1: return initVersionNotSupported; @@ -48078,1636 +37877,1335 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ErrorReason> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public ErrorReason findValueByNumber(int number) { - return ErrorReason.forNumber(number); + return ErrorReason.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return ErrorReasonVerifier.INSTANCE; - } - - private static final class ErrorReasonVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new ErrorReasonVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return ErrorReason.forNumber(number) != null; - } - }; - + private final int value; - - private ErrorReason(int value) { + + private ErrorReason(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:ErrorMessage.ErrorReason) } - + private int bitField0_; + // required .ErrorMessage.ErrorReason errorReason = 1; public static final int ERRORREASON_FIELD_NUMBER = 1; - private int errorReason_; - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_; public boolean hasErrorReason() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { - de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason result = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.forNumber(errorReason_); - return result == null ? de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.custReserved : result; + return errorReason_; } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - private void setErrorReason(de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.custReserved; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasErrorReason()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000001; - errorReason_ = value.getNumber(); + memoizedIsInitialized = 1; + return true; } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - private void clearErrorReason() { - bitField0_ = (bitField0_ & ~0x00000001); - errorReason_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, errorReason_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, errorReason_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, errorReason_); + .computeEnumSize(1, errorReason_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ErrorMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code ErrorMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ErrorMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ErrorMessage) - de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.ErrorMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.custReserved; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage build() { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ErrorMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = new de.pokerth.protocol.ProtoBuf.ErrorMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.errorReason_ = errorReason_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ErrorMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance()) return this; + if (other.hasErrorReason()) { + setErrorReason(other.getErrorReason()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasErrorReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + errorReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required .ErrorMessage.ErrorReason errorReason = 1; + private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.custReserved; public boolean hasErrorReason() { - return instance.hasErrorReason(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { - return instance.getErrorReason(); + return errorReason_; } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ public Builder setErrorReason(de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value) { - copyOnWrite(); - instance.setErrorReason(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + errorReason_ = value; + return this; } - /** - * required .ErrorMessage.ErrorReason errorReason = 1; - */ public Builder clearErrorReason() { - copyOnWrite(); - instance.clearErrorReason(); + bitField0_ = (bitField0_ & ~0x00000001); + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.custReserved; + return this; } - + // @@protoc_insertion_point(builder_scope:ErrorMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.ErrorMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasErrorReason()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.ErrorMessage other = (de.pokerth.protocol.ProtoBuf.ErrorMessage) arg1; - errorReason_ = visitor.visitInt(hasErrorReason(), errorReason_, - other.hasErrorReason(), other.errorReason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - errorReason_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.ErrorMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ErrorMessage) - private static final de.pokerth.protocol.ProtoBuf.ErrorMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new ErrorMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.ErrorMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new ErrorMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:ErrorMessage) } - - public interface AdminRemoveGameMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AdminRemoveGameMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 removeGameId = 1; - */ + + public interface AdminRemoveGameMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 removeGameId = 1; boolean hasRemoveGameId(); - /** - * required uint32 removeGameId = 1; - */ int getRemoveGameId(); } - /** - * Protobuf type {@code AdminRemoveGameMessage} - */ - public static final class AdminRemoveGameMessage extends - com.google.protobuf.GeneratedMessageLite< - AdminRemoveGameMessage, AdminRemoveGameMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AdminRemoveGameMessage) - AdminRemoveGameMessageOrBuilder { - private AdminRemoveGameMessage() { + public static final class AdminRemoveGameMessage extends + com.google.protobuf.GeneratedMessageLite + implements AdminRemoveGameMessageOrBuilder { + // Use AdminRemoveGameMessage.newBuilder() to construct. + private AdminRemoveGameMessage(Builder builder) { + super(builder); } + private AdminRemoveGameMessage(boolean noInit) {} + + private static final AdminRemoveGameMessage defaultInstance; + public static AdminRemoveGameMessage getDefaultInstance() { + return defaultInstance; + } + + public AdminRemoveGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 removeGameId = 1; public static final int REMOVEGAMEID_FIELD_NUMBER = 1; private int removeGameId_; - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public int getRemoveGameId() { return removeGameId_; } - /** - * required uint32 removeGameId = 1; - */ - private void setRemoveGameId(int value) { - bitField0_ |= 0x00000001; - removeGameId_ = value; - } - /** - * required uint32 removeGameId = 1; - */ - private void clearRemoveGameId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { removeGameId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRemoveGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, removeGameId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, removeGameId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AdminRemoveGameMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AdminRemoveGameMessage) - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + removeGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage build() { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage result = new de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.removeGameId_ = removeGameId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance()) return this; + if (other.hasRemoveGameId()) { + setRemoveGameId(other.getRemoveGameId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRemoveGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + removeGameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 removeGameId = 1; + private int removeGameId_ ; public boolean hasRemoveGameId() { - return instance.hasRemoveGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public int getRemoveGameId() { - return instance.getRemoveGameId(); + return removeGameId_; } - /** - * required uint32 removeGameId = 1; - */ public Builder setRemoveGameId(int value) { - copyOnWrite(); - instance.setRemoveGameId(value); + bitField0_ |= 0x00000001; + removeGameId_ = value; + return this; } - /** - * required uint32 removeGameId = 1; - */ public Builder clearRemoveGameId() { - copyOnWrite(); - instance.clearRemoveGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + removeGameId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AdminRemoveGameMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRemoveGameId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage other = (de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage) arg1; - removeGameId_ = visitor.visitInt( - hasRemoveGameId(), removeGameId_, - other.hasRemoveGameId(), other.removeGameId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - removeGameId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AdminRemoveGameMessage) - private static final de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AdminRemoveGameMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AdminRemoveGameMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AdminRemoveGameMessage) } - - public interface AdminRemoveGameAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AdminRemoveGameAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 removeGameId = 1; - */ + + public interface AdminRemoveGameAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 removeGameId = 1; boolean hasRemoveGameId(); - /** - * required uint32 removeGameId = 1; - */ int getRemoveGameId(); - - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ + + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; boolean hasRemoveGameResult(); - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult getRemoveGameResult(); } - /** - * Protobuf type {@code AdminRemoveGameAckMessage} - */ - public static final class AdminRemoveGameAckMessage extends - com.google.protobuf.GeneratedMessageLite< - AdminRemoveGameAckMessage, AdminRemoveGameAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AdminRemoveGameAckMessage) - AdminRemoveGameAckMessageOrBuilder { - private AdminRemoveGameAckMessage() { + public static final class AdminRemoveGameAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements AdminRemoveGameAckMessageOrBuilder { + // Use AdminRemoveGameAckMessage.newBuilder() to construct. + private AdminRemoveGameAckMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code AdminRemoveGameAckMessage.AdminRemoveGameResult} - */ + private AdminRemoveGameAckMessage(boolean noInit) {} + + private static final AdminRemoveGameAckMessage defaultInstance; + public static AdminRemoveGameAckMessage getDefaultInstance() { + return defaultInstance; + } + + public AdminRemoveGameAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum AdminRemoveGameResult implements com.google.protobuf.Internal.EnumLite { - /** - * gameRemoveAccepted = 0; - */ - gameRemoveAccepted(0), - /** - * gameRemoveInvalid = 1; - */ - gameRemoveInvalid(1), + gameRemoveAccepted(0, 0), + gameRemoveInvalid(1, 1), ; - - /** - * gameRemoveAccepted = 0; - */ + public static final int gameRemoveAccepted_VALUE = 0; - /** - * gameRemoveInvalid = 1; - */ public static final int gameRemoveInvalid_VALUE = 1; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static AdminRemoveGameResult valueOf(int value) { - return forNumber(value); - } - - public static AdminRemoveGameResult forNumber(int value) { switch (value) { case 0: return gameRemoveAccepted; case 1: return gameRemoveInvalid; default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AdminRemoveGameResult> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public AdminRemoveGameResult findValueByNumber(int number) { - return AdminRemoveGameResult.forNumber(number); + return AdminRemoveGameResult.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return AdminRemoveGameResultVerifier.INSTANCE; - } - - private static final class AdminRemoveGameResultVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new AdminRemoveGameResultVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return AdminRemoveGameResult.forNumber(number) != null; - } - }; - + private final int value; - - private AdminRemoveGameResult(int value) { + + private AdminRemoveGameResult(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:AdminRemoveGameAckMessage.AdminRemoveGameResult) } - + private int bitField0_; + // required uint32 removeGameId = 1; public static final int REMOVEGAMEID_FIELD_NUMBER = 1; private int removeGameId_; - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public int getRemoveGameId() { return removeGameId_; } - /** - * required uint32 removeGameId = 1; - */ - private void setRemoveGameId(int value) { - bitField0_ |= 0x00000001; - removeGameId_ = value; - } - /** - * required uint32 removeGameId = 1; - */ - private void clearRemoveGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - removeGameId_ = 0; - } - + + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; public static final int REMOVEGAMERESULT_FIELD_NUMBER = 2; - private int removeGameResult_; - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult_; public boolean hasRemoveGameResult() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult getRemoveGameResult() { - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult result = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.forNumber(removeGameResult_); - return result == null ? de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted : result; + return removeGameResult_; } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - private void setRemoveGameResult(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + removeGameId_ = 0; + removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRemoveGameId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - removeGameResult_ = value.getNumber(); + if (!hasRemoveGameResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - private void clearRemoveGameResult() { - bitField0_ = (bitField0_ & ~0x00000002); - removeGameResult_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, removeGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, removeGameResult_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, removeGameResult_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, removeGameId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, removeGameResult_); + .computeEnumSize(2, removeGameResult_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AdminRemoveGameAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AdminRemoveGameAckMessage) - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + removeGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage build() { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage result = new de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.removeGameId_ = removeGameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.removeGameResult_ = removeGameResult_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance()) return this; + if (other.hasRemoveGameId()) { + setRemoveGameId(other.getRemoveGameId()); + } + if (other.hasRemoveGameResult()) { + setRemoveGameResult(other.getRemoveGameResult()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasRemoveGameId()) { + + return false; + } + if (!hasRemoveGameResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + removeGameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + removeGameResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 removeGameId = 1; + private int removeGameId_ ; public boolean hasRemoveGameId() { - return instance.hasRemoveGameId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 removeGameId = 1; - */ - @java.lang.Override public int getRemoveGameId() { - return instance.getRemoveGameId(); + return removeGameId_; } - /** - * required uint32 removeGameId = 1; - */ public Builder setRemoveGameId(int value) { - copyOnWrite(); - instance.setRemoveGameId(value); + bitField0_ |= 0x00000001; + removeGameId_ = value; + return this; } - /** - * required uint32 removeGameId = 1; - */ public Builder clearRemoveGameId() { - copyOnWrite(); - instance.clearRemoveGameId(); + bitField0_ = (bitField0_ & ~0x00000001); + removeGameId_ = 0; + return this; } - - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - @java.lang.Override + + // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; public boolean hasRemoveGameResult() { - return instance.hasRemoveGameResult(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult getRemoveGameResult() { - return instance.getRemoveGameResult(); + return removeGameResult_; } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ public Builder setRemoveGameResult(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value) { - copyOnWrite(); - instance.setRemoveGameResult(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + removeGameResult_ = value; + return this; } - /** - * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - */ public Builder clearRemoveGameResult() { - copyOnWrite(); - instance.clearRemoveGameResult(); + bitField0_ = (bitField0_ & ~0x00000002); + removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; + return this; } - + // @@protoc_insertion_point(builder_scope:AdminRemoveGameAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasRemoveGameId()) { - return null; - } - if (!hasRemoveGameResult()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage other = (de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage) arg1; - removeGameId_ = visitor.visitInt( - hasRemoveGameId(), removeGameId_, - other.hasRemoveGameId(), other.removeGameId_); - removeGameResult_ = visitor.visitInt(hasRemoveGameResult(), removeGameResult_, - other.hasRemoveGameResult(), other.removeGameResult_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - removeGameId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - removeGameResult_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AdminRemoveGameAckMessage) - private static final de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AdminRemoveGameAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AdminRemoveGameAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AdminRemoveGameAckMessage) } - - public interface AdminBanPlayerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AdminBanPlayerMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 banPlayerId = 1; - */ + + public interface AdminBanPlayerMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 banPlayerId = 1; boolean hasBanPlayerId(); - /** - * required uint32 banPlayerId = 1; - */ int getBanPlayerId(); } - /** - * Protobuf type {@code AdminBanPlayerMessage} - */ - public static final class AdminBanPlayerMessage extends - com.google.protobuf.GeneratedMessageLite< - AdminBanPlayerMessage, AdminBanPlayerMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AdminBanPlayerMessage) - AdminBanPlayerMessageOrBuilder { - private AdminBanPlayerMessage() { + public static final class AdminBanPlayerMessage extends + com.google.protobuf.GeneratedMessageLite + implements AdminBanPlayerMessageOrBuilder { + // Use AdminBanPlayerMessage.newBuilder() to construct. + private AdminBanPlayerMessage(Builder builder) { + super(builder); } + private AdminBanPlayerMessage(boolean noInit) {} + + private static final AdminBanPlayerMessage defaultInstance; + public static AdminBanPlayerMessage getDefaultInstance() { + return defaultInstance; + } + + public AdminBanPlayerMessage getDefaultInstanceForType() { + return defaultInstance; + } + private int bitField0_; + // required uint32 banPlayerId = 1; public static final int BANPLAYERID_FIELD_NUMBER = 1; private int banPlayerId_; - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public int getBanPlayerId() { return banPlayerId_; } - /** - * required uint32 banPlayerId = 1; - */ - private void setBanPlayerId(int value) { - bitField0_ |= 0x00000001; - banPlayerId_ = value; - } - /** - * required uint32 banPlayerId = 1; - */ - private void clearBanPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); + + private void initFields() { banPlayerId_ = 0; } - - @java.lang.Override + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasBanPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, banPlayerId_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, banPlayerId_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AdminBanPlayerMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AdminBanPlayerMessage) - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + banPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage build() { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage result = new de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.banPlayerId_ = banPlayerId_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance()) return this; + if (other.hasBanPlayerId()) { + setBanPlayerId(other.getBanPlayerId()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasBanPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + banPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 banPlayerId = 1; + private int banPlayerId_ ; public boolean hasBanPlayerId() { - return instance.hasBanPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public int getBanPlayerId() { - return instance.getBanPlayerId(); + return banPlayerId_; } - /** - * required uint32 banPlayerId = 1; - */ public Builder setBanPlayerId(int value) { - copyOnWrite(); - instance.setBanPlayerId(value); + bitField0_ |= 0x00000001; + banPlayerId_ = value; + return this; } - /** - * required uint32 banPlayerId = 1; - */ public Builder clearBanPlayerId() { - copyOnWrite(); - instance.clearBanPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + banPlayerId_ = 0; + return this; } - + // @@protoc_insertion_point(builder_scope:AdminBanPlayerMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasBanPlayerId()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage other = (de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage) arg1; - banPlayerId_ = visitor.visitInt( - hasBanPlayerId(), banPlayerId_, - other.hasBanPlayerId(), other.banPlayerId_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - banPlayerId_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AdminBanPlayerMessage) - private static final de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AdminBanPlayerMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AdminBanPlayerMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AdminBanPlayerMessage) } - - public interface AdminBanPlayerAckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AdminBanPlayerAckMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required uint32 banPlayerId = 1; - */ + + public interface AdminBanPlayerAckMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required uint32 banPlayerId = 1; boolean hasBanPlayerId(); - /** - * required uint32 banPlayerId = 1; - */ int getBanPlayerId(); - - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ + + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; boolean hasBanPlayerResult(); - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult getBanPlayerResult(); } - /** - * Protobuf type {@code AdminBanPlayerAckMessage} - */ - public static final class AdminBanPlayerAckMessage extends - com.google.protobuf.GeneratedMessageLite< - AdminBanPlayerAckMessage, AdminBanPlayerAckMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AdminBanPlayerAckMessage) - AdminBanPlayerAckMessageOrBuilder { - private AdminBanPlayerAckMessage() { + public static final class AdminBanPlayerAckMessage extends + com.google.protobuf.GeneratedMessageLite + implements AdminBanPlayerAckMessageOrBuilder { + // Use AdminBanPlayerAckMessage.newBuilder() to construct. + private AdminBanPlayerAckMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code AdminBanPlayerAckMessage.AdminBanPlayerResult} - */ + private AdminBanPlayerAckMessage(boolean noInit) {} + + private static final AdminBanPlayerAckMessage defaultInstance; + public static AdminBanPlayerAckMessage getDefaultInstance() { + return defaultInstance; + } + + public AdminBanPlayerAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum AdminBanPlayerResult implements com.google.protobuf.Internal.EnumLite { - /** - * banPlayerAccepted = 0; - */ - banPlayerAccepted(0), - /** - * banPlayerPending = 1; - */ - banPlayerPending(1), - /** - * banPlayerNoDB = 2; - */ - banPlayerNoDB(2), - /** - * banPlayerDBError = 3; - */ - banPlayerDBError(3), - /** - * banPlayerInvalid = 4; - */ - banPlayerInvalid(4), + banPlayerAccepted(0, 0), + banPlayerPending(1, 1), + banPlayerNoDB(2, 2), + banPlayerDBError(3, 3), + banPlayerInvalid(4, 4), ; - - /** - * banPlayerAccepted = 0; - */ + public static final int banPlayerAccepted_VALUE = 0; - /** - * banPlayerPending = 1; - */ public static final int banPlayerPending_VALUE = 1; - /** - * banPlayerNoDB = 2; - */ public static final int banPlayerNoDB_VALUE = 2; - /** - * banPlayerDBError = 3; - */ public static final int banPlayerDBError_VALUE = 3; - /** - * banPlayerInvalid = 4; - */ public static final int banPlayerInvalid_VALUE = 4; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static AdminBanPlayerResult valueOf(int value) { - return forNumber(value); - } - - public static AdminBanPlayerResult forNumber(int value) { switch (value) { case 0: return banPlayerAccepted; case 1: return banPlayerPending; @@ -49717,1866 +39215,882 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AdminBanPlayerResult> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public AdminBanPlayerResult findValueByNumber(int number) { - return AdminBanPlayerResult.forNumber(number); + return AdminBanPlayerResult.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return AdminBanPlayerResultVerifier.INSTANCE; - } - - private static final class AdminBanPlayerResultVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new AdminBanPlayerResultVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return AdminBanPlayerResult.forNumber(number) != null; - } - }; - + private final int value; - - private AdminBanPlayerResult(int value) { + + private AdminBanPlayerResult(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:AdminBanPlayerAckMessage.AdminBanPlayerResult) } - + private int bitField0_; + // required uint32 banPlayerId = 1; public static final int BANPLAYERID_FIELD_NUMBER = 1; private int banPlayerId_; - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public int getBanPlayerId() { return banPlayerId_; } - /** - * required uint32 banPlayerId = 1; - */ - private void setBanPlayerId(int value) { - bitField0_ |= 0x00000001; - banPlayerId_ = value; - } - /** - * required uint32 banPlayerId = 1; - */ - private void clearBanPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - banPlayerId_ = 0; - } - + + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; public static final int BANPLAYERRESULT_FIELD_NUMBER = 2; - private int banPlayerResult_; - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult_; public boolean hasBanPlayerResult() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult getBanPlayerResult() { - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult result = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.forNumber(banPlayerResult_); - return result == null ? de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted : result; + return banPlayerResult_; } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - private void setBanPlayerResult(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value) { - if (value == null) { - throw new NullPointerException(); + + private void initFields() { + banPlayerId_ = 0; + banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasBanPlayerId()) { + memoizedIsInitialized = 0; + return false; } - bitField0_ |= 0x00000002; - banPlayerResult_ = value.getNumber(); + if (!hasBanPlayerResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - private void clearBanPlayerResult() { - bitField0_ = (bitField0_ & ~0x00000002); - banPlayerResult_ = 0; - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, banPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, banPlayerResult_); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, banPlayerResult_.getNumber()); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, banPlayerId_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, banPlayerResult_); + .computeEnumSize(2, banPlayerResult_.getNumber()); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code AdminBanPlayerAckMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AdminBanPlayerAckMessage) - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override + + private void maybeForceBuilderInitialization() { + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + banPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage build() { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage result = new de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.banPlayerId_ = banPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.banPlayerResult_ = banPlayerResult_; + result.bitField0_ = to_bitField0_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance()) return this; + if (other.hasBanPlayerId()) { + setBanPlayerId(other.getBanPlayerId()); + } + if (other.hasBanPlayerResult()) { + setBanPlayerResult(other.getBanPlayerResult()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasBanPlayerId()) { + + return false; + } + if (!hasBanPlayerResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + banPlayerId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000002; + banPlayerResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 banPlayerId = 1; + private int banPlayerId_ ; public boolean hasBanPlayerId() { - return instance.hasBanPlayerId(); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint32 banPlayerId = 1; - */ - @java.lang.Override public int getBanPlayerId() { - return instance.getBanPlayerId(); + return banPlayerId_; } - /** - * required uint32 banPlayerId = 1; - */ public Builder setBanPlayerId(int value) { - copyOnWrite(); - instance.setBanPlayerId(value); + bitField0_ |= 0x00000001; + banPlayerId_ = value; + return this; } - /** - * required uint32 banPlayerId = 1; - */ public Builder clearBanPlayerId() { - copyOnWrite(); - instance.clearBanPlayerId(); + bitField0_ = (bitField0_ & ~0x00000001); + banPlayerId_ = 0; + return this; } - - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - @java.lang.Override + + // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; public boolean hasBanPlayerResult() { - return instance.hasBanPlayerResult(); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult getBanPlayerResult() { - return instance.getBanPlayerResult(); + return banPlayerResult_; } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ public Builder setBanPlayerResult(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value) { - copyOnWrite(); - instance.setBanPlayerResult(value); + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + banPlayerResult_ = value; + return this; } - /** - * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - */ public Builder clearBanPlayerResult() { - copyOnWrite(); - instance.clearBanPlayerResult(); + bitField0_ = (bitField0_ & ~0x00000002); + banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; + return this; } - + // @@protoc_insertion_point(builder_scope:AdminBanPlayerAckMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasBanPlayerId()) { - return null; - } - if (!hasBanPlayerResult()) { - return null; - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage other = (de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage) arg1; - banPlayerId_ = visitor.visitInt( - hasBanPlayerId(), banPlayerId_, - other.hasBanPlayerId(), other.banPlayerId_); - banPlayerResult_ = visitor.visitInt(hasBanPlayerResult(), banPlayerResult_, - other.hasBanPlayerResult(), other.banPlayerResult_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - banPlayerId_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - banPlayerResult_ = rawValue; - } - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AdminBanPlayerAckMessage) - private static final de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new AdminBanPlayerAckMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new AdminBanPlayerAckMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:AdminBanPlayerAckMessage) } - - public interface PokerTHMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:PokerTHMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ + + public interface PokerTHMessageOrBuilder + extends com.google.protobuf.MessageLiteOrBuilder { + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; boolean hasMessageType(); - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType(); - - /** - * optional .AnnounceMessage announceMessage = 2; - */ + + // optional .AnnounceMessage announceMessage = 2; boolean hasAnnounceMessage(); - /** - * optional .AnnounceMessage announceMessage = 2; - */ de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage(); - - /** - * optional .InitMessage initMessage = 3; - */ + + // optional .InitMessage initMessage = 3; boolean hasInitMessage(); - /** - * optional .InitMessage initMessage = 3; - */ de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage(); - - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; boolean hasAuthServerChallengeMessage(); - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage(); - - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; boolean hasAuthClientResponseMessage(); - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage(); - - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; boolean hasAuthServerVerificationMessage(); - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage(); - - /** - * optional .InitAckMessage initAckMessage = 7; - */ + + // optional .InitAckMessage initAckMessage = 7; boolean hasInitAckMessage(); - /** - * optional .InitAckMessage initAckMessage = 7; - */ de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage(); - - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ + + // optional .AvatarRequestMessage avatarRequestMessage = 8; boolean hasAvatarRequestMessage(); - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage(); - - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; boolean hasAvatarHeaderMessage(); - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage(); - - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ + + // optional .AvatarDataMessage avatarDataMessage = 10; boolean hasAvatarDataMessage(); - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage(); - - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ + + // optional .AvatarEndMessage avatarEndMessage = 11; boolean hasAvatarEndMessage(); - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage(); - - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; boolean hasUnknownAvatarMessage(); - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage(); - - /** - * optional .PlayerListMessage playerListMessage = 13; - */ + + // optional .PlayerListMessage playerListMessage = 13; boolean hasPlayerListMessage(); - /** - * optional .PlayerListMessage playerListMessage = 13; - */ de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage(); - - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ + + // optional .GameListNewMessage gameListNewMessage = 14; boolean hasGameListNewMessage(); - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage(); - - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; boolean hasGameListUpdateMessage(); - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage(); - - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; boolean hasGameListPlayerJoinedMessage(); - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage(); - - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; boolean hasGameListPlayerLeftMessage(); - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage(); - - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; boolean hasGameListAdminChangedMessage(); - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage(); - - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; boolean hasPlayerInfoRequestMessage(); - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage(); - - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; boolean hasPlayerInfoReplyMessage(); - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage(); - - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; boolean hasSubscriptionRequestMessage(); - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage(); - - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; boolean hasJoinExistingGameMessage(); - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage(); - - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ + + // optional .JoinNewGameMessage joinNewGameMessage = 23; boolean hasJoinNewGameMessage(); - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage(); - - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; boolean hasRejoinExistingGameMessage(); - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage(); - - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ + + // optional .JoinGameAckMessage joinGameAckMessage = 25; boolean hasJoinGameAckMessage(); - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage(); - - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; boolean hasJoinGameFailedMessage(); - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage(); - - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; boolean hasGamePlayerJoinedMessage(); - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage(); - - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; boolean hasGamePlayerLeftMessage(); - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage(); - - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; boolean hasGameAdminChangedMessage(); - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage(); - - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; boolean hasRemovedFromGameMessage(); - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage(); - - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; boolean hasKickPlayerRequestMessage(); - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage(); - - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; boolean hasLeaveGameRequestMessage(); - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage(); - - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; boolean hasInvitePlayerToGameMessage(); - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage(); - - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; boolean hasInviteNotifyMessage(); - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage(); - - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; boolean hasRejectGameInvitationMessage(); - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage(); - - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; boolean hasRejectInvNotifyMessage(); - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage(); - - /** - * optional .StartEventMessage startEventMessage = 37; - */ + + // optional .StartEventMessage startEventMessage = 37; boolean hasStartEventMessage(); - /** - * optional .StartEventMessage startEventMessage = 37; - */ de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage(); - - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ + + // optional .StartEventAckMessage startEventAckMessage = 38; boolean hasStartEventAckMessage(); - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage(); - - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; boolean hasGameStartInitialMessage(); - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage(); - - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; boolean hasGameStartRejoinMessage(); - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage(); - - /** - * optional .HandStartMessage handStartMessage = 41; - */ + + // optional .HandStartMessage handStartMessage = 41; boolean hasHandStartMessage(); - /** - * optional .HandStartMessage handStartMessage = 41; - */ de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage(); - - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ + + // optional .PlayersTurnMessage playersTurnMessage = 42; boolean hasPlayersTurnMessage(); - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage(); - - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ + + // optional .MyActionRequestMessage myActionRequestMessage = 43; boolean hasMyActionRequestMessage(); - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage(); - - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; boolean hasYourActionRejectedMessage(); - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage(); - - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; boolean hasPlayersActionDoneMessage(); - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage(); - - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; boolean hasDealFlopCardsMessage(); - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage(); - - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; boolean hasDealTurnCardMessage(); - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage(); - - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; boolean hasDealRiverCardMessage(); - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage(); - - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; boolean hasAllInShowCardsMessage(); - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage(); - - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; boolean hasEndOfHandShowCardsMessage(); - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage(); - - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; boolean hasEndOfHandHideCardsMessage(); - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage(); - - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; boolean hasShowMyCardsRequestMessage(); - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage(); - - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; boolean hasAfterHandShowCardsMessage(); - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage(); - - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ + + // optional .EndOfGameMessage endOfGameMessage = 54; boolean hasEndOfGameMessage(); - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage(); - - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; boolean hasPlayerIdChangedMessage(); - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage(); - - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; boolean hasAskKickPlayerMessage(); - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage(); - - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; boolean hasAskKickDeniedMessage(); - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage(); - - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; boolean hasStartKickPetitionMessage(); - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage(); - - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; boolean hasVoteKickRequestMessage(); - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage(); - - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; boolean hasVoteKickReplyMessage(); - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage(); - - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; boolean hasKickPetitionUpdateMessage(); - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage(); - - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; boolean hasEndKickPetitionMessage(); - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage(); - - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ + + // optional .StatisticsMessage statisticsMessage = 63; boolean hasStatisticsMessage(); - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage(); - - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ + + // optional .ChatRequestMessage chatRequestMessage = 64; boolean hasChatRequestMessage(); - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage(); - - /** - * optional .ChatMessage chatMessage = 65; - */ + + // optional .ChatMessage chatMessage = 65; boolean hasChatMessage(); - /** - * optional .ChatMessage chatMessage = 65; - */ de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage(); - - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ + + // optional .ChatRejectMessage chatRejectMessage = 66; boolean hasChatRejectMessage(); - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage(); - - /** - * optional .DialogMessage dialogMessage = 67; - */ + + // optional .DialogMessage dialogMessage = 67; boolean hasDialogMessage(); - /** - * optional .DialogMessage dialogMessage = 67; - */ de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage(); - - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; boolean hasTimeoutWarningMessage(); - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage(); - - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; boolean hasResetTimeoutMessage(); - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage(); - - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ + + // optional .ReportAvatarMessage reportAvatarMessage = 70; boolean hasReportAvatarMessage(); - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage(); - - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; boolean hasReportAvatarAckMessage(); - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage(); - - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ + + // optional .ReportGameMessage reportGameMessage = 72; boolean hasReportGameMessage(); - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage(); - - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ + + // optional .ReportGameAckMessage reportGameAckMessage = 73; boolean hasReportGameAckMessage(); - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage(); - - /** - * optional .ErrorMessage errorMessage = 74; - */ + + // optional .ErrorMessage errorMessage = 74; boolean hasErrorMessage(); - /** - * optional .ErrorMessage errorMessage = 74; - */ de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage(); - - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ + + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; boolean hasAdminRemoveGameMessage(); - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage(); - - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ + + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; boolean hasAdminRemoveGameAckMessage(); - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage(); - - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ + + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; boolean hasAdminBanPlayerMessage(); - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage(); - - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ + + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; boolean hasAdminBanPlayerAckMessage(); - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage(); - - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ + + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; boolean hasGameListSpectatorJoinedMessage(); - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage(); - - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ + + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; boolean hasGameListSpectatorLeftMessage(); - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage(); - - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ + + // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; boolean hasGameSpectatorJoinedMessage(); - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage(); - - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ + + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; boolean hasGameSpectatorLeftMessage(); - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage(); } - /** - * Protobuf type {@code PokerTHMessage} - */ - public static final class PokerTHMessage extends - com.google.protobuf.GeneratedMessageLite< - PokerTHMessage, PokerTHMessage.Builder> implements - // @@protoc_insertion_point(message_implements:PokerTHMessage) - PokerTHMessageOrBuilder { - private PokerTHMessage() { - messageType_ = 1; + public static final class PokerTHMessage extends + com.google.protobuf.GeneratedMessageLite + implements PokerTHMessageOrBuilder { + // Use PokerTHMessage.newBuilder() to construct. + private PokerTHMessage(Builder builder) { + super(builder); } - /** - * Protobuf enum {@code PokerTHMessage.PokerTHMessageType} - */ + private PokerTHMessage(boolean noInit) {} + + private static final PokerTHMessage defaultInstance; + public static PokerTHMessage getDefaultInstance() { + return defaultInstance; + } + + public PokerTHMessage getDefaultInstanceForType() { + return defaultInstance; + } + public enum PokerTHMessageType implements com.google.protobuf.Internal.EnumLite { - /** - * Type_AnnounceMessage = 1; - */ - Type_AnnounceMessage(1), - /** - * Type_InitMessage = 2; - */ - Type_InitMessage(2), - /** - * Type_AuthServerChallengeMessage = 3; - */ - Type_AuthServerChallengeMessage(3), - /** - * Type_AuthClientResponseMessage = 4; - */ - Type_AuthClientResponseMessage(4), - /** - * Type_AuthServerVerificationMessage = 5; - */ - Type_AuthServerVerificationMessage(5), - /** - * Type_InitAckMessage = 6; - */ - Type_InitAckMessage(6), - /** - * Type_AvatarRequestMessage = 7; - */ - Type_AvatarRequestMessage(7), - /** - * Type_AvatarHeaderMessage = 8; - */ - Type_AvatarHeaderMessage(8), - /** - * Type_AvatarDataMessage = 9; - */ - Type_AvatarDataMessage(9), - /** - * Type_AvatarEndMessage = 10; - */ - Type_AvatarEndMessage(10), - /** - * Type_UnknownAvatarMessage = 11; - */ - Type_UnknownAvatarMessage(11), - /** - * Type_PlayerListMessage = 12; - */ - Type_PlayerListMessage(12), - /** - * Type_GameListNewMessage = 13; - */ - Type_GameListNewMessage(13), - /** - * Type_GameListUpdateMessage = 14; - */ - Type_GameListUpdateMessage(14), - /** - * Type_GameListPlayerJoinedMessage = 15; - */ - Type_GameListPlayerJoinedMessage(15), - /** - * Type_GameListPlayerLeftMessage = 16; - */ - Type_GameListPlayerLeftMessage(16), - /** - * Type_GameListAdminChangedMessage = 17; - */ - Type_GameListAdminChangedMessage(17), - /** - * Type_PlayerInfoRequestMessage = 18; - */ - Type_PlayerInfoRequestMessage(18), - /** - * Type_PlayerInfoReplyMessage = 19; - */ - Type_PlayerInfoReplyMessage(19), - /** - * Type_SubscriptionRequestMessage = 20; - */ - Type_SubscriptionRequestMessage(20), - /** - * Type_JoinExistingGameMessage = 21; - */ - Type_JoinExistingGameMessage(21), - /** - * Type_JoinNewGameMessage = 22; - */ - Type_JoinNewGameMessage(22), - /** - * Type_RejoinExistingGameMessage = 23; - */ - Type_RejoinExistingGameMessage(23), - /** - * Type_JoinGameAckMessage = 24; - */ - Type_JoinGameAckMessage(24), - /** - * Type_JoinGameFailedMessage = 25; - */ - Type_JoinGameFailedMessage(25), - /** - * Type_GamePlayerJoinedMessage = 26; - */ - Type_GamePlayerJoinedMessage(26), - /** - * Type_GamePlayerLeftMessage = 27; - */ - Type_GamePlayerLeftMessage(27), - /** - * Type_GameAdminChangedMessage = 28; - */ - Type_GameAdminChangedMessage(28), - /** - * Type_RemovedFromGameMessage = 29; - */ - Type_RemovedFromGameMessage(29), - /** - * Type_KickPlayerRequestMessage = 30; - */ - Type_KickPlayerRequestMessage(30), - /** - * Type_LeaveGameRequestMessage = 31; - */ - Type_LeaveGameRequestMessage(31), - /** - * Type_InvitePlayerToGameMessage = 32; - */ - Type_InvitePlayerToGameMessage(32), - /** - * Type_InviteNotifyMessage = 33; - */ - Type_InviteNotifyMessage(33), - /** - * Type_RejectGameInvitationMessage = 34; - */ - Type_RejectGameInvitationMessage(34), - /** - * Type_RejectInvNotifyMessage = 35; - */ - Type_RejectInvNotifyMessage(35), - /** - * Type_StartEventMessage = 36; - */ - Type_StartEventMessage(36), - /** - * Type_StartEventAckMessage = 37; - */ - Type_StartEventAckMessage(37), - /** - * Type_GameStartInitialMessage = 38; - */ - Type_GameStartInitialMessage(38), - /** - * Type_GameStartRejoinMessage = 39; - */ - Type_GameStartRejoinMessage(39), - /** - * Type_HandStartMessage = 40; - */ - Type_HandStartMessage(40), - /** - * Type_PlayersTurnMessage = 41; - */ - Type_PlayersTurnMessage(41), - /** - * Type_MyActionRequestMessage = 42; - */ - Type_MyActionRequestMessage(42), - /** - * Type_YourActionRejectedMessage = 43; - */ - Type_YourActionRejectedMessage(43), - /** - * Type_PlayersActionDoneMessage = 44; - */ - Type_PlayersActionDoneMessage(44), - /** - * Type_DealFlopCardsMessage = 45; - */ - Type_DealFlopCardsMessage(45), - /** - * Type_DealTurnCardMessage = 46; - */ - Type_DealTurnCardMessage(46), - /** - * Type_DealRiverCardMessage = 47; - */ - Type_DealRiverCardMessage(47), - /** - * Type_AllInShowCardsMessage = 48; - */ - Type_AllInShowCardsMessage(48), - /** - * Type_EndOfHandShowCardsMessage = 49; - */ - Type_EndOfHandShowCardsMessage(49), - /** - * Type_EndOfHandHideCardsMessage = 50; - */ - Type_EndOfHandHideCardsMessage(50), - /** - * Type_ShowMyCardsRequestMessage = 51; - */ - Type_ShowMyCardsRequestMessage(51), - /** - * Type_AfterHandShowCardsMessage = 52; - */ - Type_AfterHandShowCardsMessage(52), - /** - * Type_EndOfGameMessage = 53; - */ - Type_EndOfGameMessage(53), - /** - * Type_PlayerIdChangedMessage = 54; - */ - Type_PlayerIdChangedMessage(54), - /** - * Type_AskKickPlayerMessage = 55; - */ - Type_AskKickPlayerMessage(55), - /** - * Type_AskKickDeniedMessage = 56; - */ - Type_AskKickDeniedMessage(56), - /** - * Type_StartKickPetitionMessage = 57; - */ - Type_StartKickPetitionMessage(57), - /** - * Type_VoteKickRequestMessage = 58; - */ - Type_VoteKickRequestMessage(58), - /** - * Type_VoteKickReplyMessage = 59; - */ - Type_VoteKickReplyMessage(59), - /** - * Type_KickPetitionUpdateMessage = 60; - */ - Type_KickPetitionUpdateMessage(60), - /** - * Type_EndKickPetitionMessage = 61; - */ - Type_EndKickPetitionMessage(61), - /** - * Type_StatisticsMessage = 62; - */ - Type_StatisticsMessage(62), - /** - * Type_ChatRequestMessage = 63; - */ - Type_ChatRequestMessage(63), - /** - * Type_ChatMessage = 64; - */ - Type_ChatMessage(64), - /** - * Type_ChatRejectMessage = 65; - */ - Type_ChatRejectMessage(65), - /** - * Type_DialogMessage = 66; - */ - Type_DialogMessage(66), - /** - * Type_TimeoutWarningMessage = 67; - */ - Type_TimeoutWarningMessage(67), - /** - * Type_ResetTimeoutMessage = 68; - */ - Type_ResetTimeoutMessage(68), - /** - * Type_ReportAvatarMessage = 69; - */ - Type_ReportAvatarMessage(69), - /** - * Type_ReportAvatarAckMessage = 70; - */ - Type_ReportAvatarAckMessage(70), - /** - * Type_ReportGameMessage = 71; - */ - Type_ReportGameMessage(71), - /** - * Type_ReportGameAckMessage = 72; - */ - Type_ReportGameAckMessage(72), - /** - * Type_ErrorMessage = 73; - */ - Type_ErrorMessage(73), - /** - * Type_AdminRemoveGameMessage = 74; - */ - Type_AdminRemoveGameMessage(74), - /** - * Type_AdminRemoveGameAckMessage = 75; - */ - Type_AdminRemoveGameAckMessage(75), - /** - * Type_AdminBanPlayerMessage = 76; - */ - Type_AdminBanPlayerMessage(76), - /** - * Type_AdminBanPlayerAckMessage = 77; - */ - Type_AdminBanPlayerAckMessage(77), - /** - * Type_GameListSpectatorJoinedMessage = 78; - */ - Type_GameListSpectatorJoinedMessage(78), - /** - * Type_GameListSpectatorLeftMessage = 79; - */ - Type_GameListSpectatorLeftMessage(79), - /** - * Type_GameSpectatorJoinedMessage = 80; - */ - Type_GameSpectatorJoinedMessage(80), - /** - * Type_GameSpectatorLeftMessage = 81; - */ - Type_GameSpectatorLeftMessage(81), + Type_AnnounceMessage(0, 1), + Type_InitMessage(1, 2), + Type_AuthServerChallengeMessage(2, 3), + Type_AuthClientResponseMessage(3, 4), + Type_AuthServerVerificationMessage(4, 5), + Type_InitAckMessage(5, 6), + Type_AvatarRequestMessage(6, 7), + Type_AvatarHeaderMessage(7, 8), + Type_AvatarDataMessage(8, 9), + Type_AvatarEndMessage(9, 10), + Type_UnknownAvatarMessage(10, 11), + Type_PlayerListMessage(11, 12), + Type_GameListNewMessage(12, 13), + Type_GameListUpdateMessage(13, 14), + Type_GameListPlayerJoinedMessage(14, 15), + Type_GameListPlayerLeftMessage(15, 16), + Type_GameListAdminChangedMessage(16, 17), + Type_PlayerInfoRequestMessage(17, 18), + Type_PlayerInfoReplyMessage(18, 19), + Type_SubscriptionRequestMessage(19, 20), + Type_JoinExistingGameMessage(20, 21), + Type_JoinNewGameMessage(21, 22), + Type_RejoinExistingGameMessage(22, 23), + Type_JoinGameAckMessage(23, 24), + Type_JoinGameFailedMessage(24, 25), + Type_GamePlayerJoinedMessage(25, 26), + Type_GamePlayerLeftMessage(26, 27), + Type_GameAdminChangedMessage(27, 28), + Type_RemovedFromGameMessage(28, 29), + Type_KickPlayerRequestMessage(29, 30), + Type_LeaveGameRequestMessage(30, 31), + Type_InvitePlayerToGameMessage(31, 32), + Type_InviteNotifyMessage(32, 33), + Type_RejectGameInvitationMessage(33, 34), + Type_RejectInvNotifyMessage(34, 35), + Type_StartEventMessage(35, 36), + Type_StartEventAckMessage(36, 37), + Type_GameStartInitialMessage(37, 38), + Type_GameStartRejoinMessage(38, 39), + Type_HandStartMessage(39, 40), + Type_PlayersTurnMessage(40, 41), + Type_MyActionRequestMessage(41, 42), + Type_YourActionRejectedMessage(42, 43), + Type_PlayersActionDoneMessage(43, 44), + Type_DealFlopCardsMessage(44, 45), + Type_DealTurnCardMessage(45, 46), + Type_DealRiverCardMessage(46, 47), + Type_AllInShowCardsMessage(47, 48), + Type_EndOfHandShowCardsMessage(48, 49), + Type_EndOfHandHideCardsMessage(49, 50), + Type_ShowMyCardsRequestMessage(50, 51), + Type_AfterHandShowCardsMessage(51, 52), + Type_EndOfGameMessage(52, 53), + Type_PlayerIdChangedMessage(53, 54), + Type_AskKickPlayerMessage(54, 55), + Type_AskKickDeniedMessage(55, 56), + Type_StartKickPetitionMessage(56, 57), + Type_VoteKickRequestMessage(57, 58), + Type_VoteKickReplyMessage(58, 59), + Type_KickPetitionUpdateMessage(59, 60), + Type_EndKickPetitionMessage(60, 61), + Type_StatisticsMessage(61, 62), + Type_ChatRequestMessage(62, 63), + Type_ChatMessage(63, 64), + Type_ChatRejectMessage(64, 65), + Type_DialogMessage(65, 66), + Type_TimeoutWarningMessage(66, 67), + Type_ResetTimeoutMessage(67, 68), + Type_ReportAvatarMessage(68, 69), + Type_ReportAvatarAckMessage(69, 70), + Type_ReportGameMessage(70, 71), + Type_ReportGameAckMessage(71, 72), + Type_ErrorMessage(72, 73), + Type_AdminRemoveGameMessage(73, 74), + Type_AdminRemoveGameAckMessage(74, 75), + Type_AdminBanPlayerMessage(75, 76), + Type_AdminBanPlayerAckMessage(76, 77), + Type_GameListSpectatorJoinedMessage(77, 78), + Type_GameListSpectatorLeftMessage(78, 79), + Type_GameSpectatorJoinedMessage(79, 80), + Type_GameSpectatorLeftMessage(80, 81), ; - - /** - * Type_AnnounceMessage = 1; - */ + public static final int Type_AnnounceMessage_VALUE = 1; - /** - * Type_InitMessage = 2; - */ public static final int Type_InitMessage_VALUE = 2; - /** - * Type_AuthServerChallengeMessage = 3; - */ public static final int Type_AuthServerChallengeMessage_VALUE = 3; - /** - * Type_AuthClientResponseMessage = 4; - */ public static final int Type_AuthClientResponseMessage_VALUE = 4; - /** - * Type_AuthServerVerificationMessage = 5; - */ public static final int Type_AuthServerVerificationMessage_VALUE = 5; - /** - * Type_InitAckMessage = 6; - */ public static final int Type_InitAckMessage_VALUE = 6; - /** - * Type_AvatarRequestMessage = 7; - */ public static final int Type_AvatarRequestMessage_VALUE = 7; - /** - * Type_AvatarHeaderMessage = 8; - */ public static final int Type_AvatarHeaderMessage_VALUE = 8; - /** - * Type_AvatarDataMessage = 9; - */ public static final int Type_AvatarDataMessage_VALUE = 9; - /** - * Type_AvatarEndMessage = 10; - */ public static final int Type_AvatarEndMessage_VALUE = 10; - /** - * Type_UnknownAvatarMessage = 11; - */ public static final int Type_UnknownAvatarMessage_VALUE = 11; - /** - * Type_PlayerListMessage = 12; - */ public static final int Type_PlayerListMessage_VALUE = 12; - /** - * Type_GameListNewMessage = 13; - */ public static final int Type_GameListNewMessage_VALUE = 13; - /** - * Type_GameListUpdateMessage = 14; - */ public static final int Type_GameListUpdateMessage_VALUE = 14; - /** - * Type_GameListPlayerJoinedMessage = 15; - */ public static final int Type_GameListPlayerJoinedMessage_VALUE = 15; - /** - * Type_GameListPlayerLeftMessage = 16; - */ public static final int Type_GameListPlayerLeftMessage_VALUE = 16; - /** - * Type_GameListAdminChangedMessage = 17; - */ public static final int Type_GameListAdminChangedMessage_VALUE = 17; - /** - * Type_PlayerInfoRequestMessage = 18; - */ public static final int Type_PlayerInfoRequestMessage_VALUE = 18; - /** - * Type_PlayerInfoReplyMessage = 19; - */ public static final int Type_PlayerInfoReplyMessage_VALUE = 19; - /** - * Type_SubscriptionRequestMessage = 20; - */ public static final int Type_SubscriptionRequestMessage_VALUE = 20; - /** - * Type_JoinExistingGameMessage = 21; - */ public static final int Type_JoinExistingGameMessage_VALUE = 21; - /** - * Type_JoinNewGameMessage = 22; - */ public static final int Type_JoinNewGameMessage_VALUE = 22; - /** - * Type_RejoinExistingGameMessage = 23; - */ public static final int Type_RejoinExistingGameMessage_VALUE = 23; - /** - * Type_JoinGameAckMessage = 24; - */ public static final int Type_JoinGameAckMessage_VALUE = 24; - /** - * Type_JoinGameFailedMessage = 25; - */ public static final int Type_JoinGameFailedMessage_VALUE = 25; - /** - * Type_GamePlayerJoinedMessage = 26; - */ public static final int Type_GamePlayerJoinedMessage_VALUE = 26; - /** - * Type_GamePlayerLeftMessage = 27; - */ public static final int Type_GamePlayerLeftMessage_VALUE = 27; - /** - * Type_GameAdminChangedMessage = 28; - */ public static final int Type_GameAdminChangedMessage_VALUE = 28; - /** - * Type_RemovedFromGameMessage = 29; - */ public static final int Type_RemovedFromGameMessage_VALUE = 29; - /** - * Type_KickPlayerRequestMessage = 30; - */ public static final int Type_KickPlayerRequestMessage_VALUE = 30; - /** - * Type_LeaveGameRequestMessage = 31; - */ public static final int Type_LeaveGameRequestMessage_VALUE = 31; - /** - * Type_InvitePlayerToGameMessage = 32; - */ public static final int Type_InvitePlayerToGameMessage_VALUE = 32; - /** - * Type_InviteNotifyMessage = 33; - */ public static final int Type_InviteNotifyMessage_VALUE = 33; - /** - * Type_RejectGameInvitationMessage = 34; - */ public static final int Type_RejectGameInvitationMessage_VALUE = 34; - /** - * Type_RejectInvNotifyMessage = 35; - */ public static final int Type_RejectInvNotifyMessage_VALUE = 35; - /** - * Type_StartEventMessage = 36; - */ public static final int Type_StartEventMessage_VALUE = 36; - /** - * Type_StartEventAckMessage = 37; - */ public static final int Type_StartEventAckMessage_VALUE = 37; - /** - * Type_GameStartInitialMessage = 38; - */ public static final int Type_GameStartInitialMessage_VALUE = 38; - /** - * Type_GameStartRejoinMessage = 39; - */ public static final int Type_GameStartRejoinMessage_VALUE = 39; - /** - * Type_HandStartMessage = 40; - */ public static final int Type_HandStartMessage_VALUE = 40; - /** - * Type_PlayersTurnMessage = 41; - */ public static final int Type_PlayersTurnMessage_VALUE = 41; - /** - * Type_MyActionRequestMessage = 42; - */ public static final int Type_MyActionRequestMessage_VALUE = 42; - /** - * Type_YourActionRejectedMessage = 43; - */ public static final int Type_YourActionRejectedMessage_VALUE = 43; - /** - * Type_PlayersActionDoneMessage = 44; - */ public static final int Type_PlayersActionDoneMessage_VALUE = 44; - /** - * Type_DealFlopCardsMessage = 45; - */ public static final int Type_DealFlopCardsMessage_VALUE = 45; - /** - * Type_DealTurnCardMessage = 46; - */ public static final int Type_DealTurnCardMessage_VALUE = 46; - /** - * Type_DealRiverCardMessage = 47; - */ public static final int Type_DealRiverCardMessage_VALUE = 47; - /** - * Type_AllInShowCardsMessage = 48; - */ public static final int Type_AllInShowCardsMessage_VALUE = 48; - /** - * Type_EndOfHandShowCardsMessage = 49; - */ public static final int Type_EndOfHandShowCardsMessage_VALUE = 49; - /** - * Type_EndOfHandHideCardsMessage = 50; - */ public static final int Type_EndOfHandHideCardsMessage_VALUE = 50; - /** - * Type_ShowMyCardsRequestMessage = 51; - */ public static final int Type_ShowMyCardsRequestMessage_VALUE = 51; - /** - * Type_AfterHandShowCardsMessage = 52; - */ public static final int Type_AfterHandShowCardsMessage_VALUE = 52; - /** - * Type_EndOfGameMessage = 53; - */ public static final int Type_EndOfGameMessage_VALUE = 53; - /** - * Type_PlayerIdChangedMessage = 54; - */ public static final int Type_PlayerIdChangedMessage_VALUE = 54; - /** - * Type_AskKickPlayerMessage = 55; - */ public static final int Type_AskKickPlayerMessage_VALUE = 55; - /** - * Type_AskKickDeniedMessage = 56; - */ public static final int Type_AskKickDeniedMessage_VALUE = 56; - /** - * Type_StartKickPetitionMessage = 57; - */ public static final int Type_StartKickPetitionMessage_VALUE = 57; - /** - * Type_VoteKickRequestMessage = 58; - */ public static final int Type_VoteKickRequestMessage_VALUE = 58; - /** - * Type_VoteKickReplyMessage = 59; - */ public static final int Type_VoteKickReplyMessage_VALUE = 59; - /** - * Type_KickPetitionUpdateMessage = 60; - */ public static final int Type_KickPetitionUpdateMessage_VALUE = 60; - /** - * Type_EndKickPetitionMessage = 61; - */ public static final int Type_EndKickPetitionMessage_VALUE = 61; - /** - * Type_StatisticsMessage = 62; - */ public static final int Type_StatisticsMessage_VALUE = 62; - /** - * Type_ChatRequestMessage = 63; - */ public static final int Type_ChatRequestMessage_VALUE = 63; - /** - * Type_ChatMessage = 64; - */ public static final int Type_ChatMessage_VALUE = 64; - /** - * Type_ChatRejectMessage = 65; - */ public static final int Type_ChatRejectMessage_VALUE = 65; - /** - * Type_DialogMessage = 66; - */ public static final int Type_DialogMessage_VALUE = 66; - /** - * Type_TimeoutWarningMessage = 67; - */ public static final int Type_TimeoutWarningMessage_VALUE = 67; - /** - * Type_ResetTimeoutMessage = 68; - */ public static final int Type_ResetTimeoutMessage_VALUE = 68; - /** - * Type_ReportAvatarMessage = 69; - */ public static final int Type_ReportAvatarMessage_VALUE = 69; - /** - * Type_ReportAvatarAckMessage = 70; - */ public static final int Type_ReportAvatarAckMessage_VALUE = 70; - /** - * Type_ReportGameMessage = 71; - */ public static final int Type_ReportGameMessage_VALUE = 71; - /** - * Type_ReportGameAckMessage = 72; - */ public static final int Type_ReportGameAckMessage_VALUE = 72; - /** - * Type_ErrorMessage = 73; - */ public static final int Type_ErrorMessage_VALUE = 73; - /** - * Type_AdminRemoveGameMessage = 74; - */ public static final int Type_AdminRemoveGameMessage_VALUE = 74; - /** - * Type_AdminRemoveGameAckMessage = 75; - */ public static final int Type_AdminRemoveGameAckMessage_VALUE = 75; - /** - * Type_AdminBanPlayerMessage = 76; - */ public static final int Type_AdminBanPlayerMessage_VALUE = 76; - /** - * Type_AdminBanPlayerAckMessage = 77; - */ public static final int Type_AdminBanPlayerAckMessage_VALUE = 77; - /** - * Type_GameListSpectatorJoinedMessage = 78; - */ public static final int Type_GameListSpectatorJoinedMessage_VALUE = 78; - /** - * Type_GameListSpectatorLeftMessage = 79; - */ public static final int Type_GameListSpectatorLeftMessage_VALUE = 79; - /** - * Type_GameSpectatorJoinedMessage = 80; - */ public static final int Type_GameSpectatorJoinedMessage_VALUE = 80; - /** - * Type_GameSpectatorLeftMessage = 81; - */ public static final int Type_GameSpectatorLeftMessage_VALUE = 81; - - - @java.lang.Override - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated + + + public final int getNumber() { return value; } + public static PokerTHMessageType valueOf(int value) { - return forNumber(value); - } - - public static PokerTHMessageType forNumber(int value) { switch (value) { case 1: return Type_AnnounceMessage; case 2: return Type_InitMessage; @@ -51662,10965 +40176,7649 @@ public final class ProtoBuf { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PokerTHMessageType> internalValueMap = + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { - @java.lang.Override public PokerTHMessageType findValueByNumber(int number) { - return PokerTHMessageType.forNumber(number); + return PokerTHMessageType.valueOf(number); } }; - - public static com.google.protobuf.Internal.EnumVerifier - internalGetVerifier() { - return PokerTHMessageTypeVerifier.INSTANCE; - } - - private static final class PokerTHMessageTypeVerifier implements - com.google.protobuf.Internal.EnumVerifier { - static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new PokerTHMessageTypeVerifier(); - @java.lang.Override - public boolean isInRange(int number) { - return PokerTHMessageType.forNumber(number) != null; - } - }; - + private final int value; - - private PokerTHMessageType(int value) { + + private PokerTHMessageType(int index, int value) { this.value = value; } - + // @@protoc_insertion_point(enum_scope:PokerTHMessage.PokerTHMessageType) } - + private int bitField0_; private int bitField1_; private int bitField2_; + // required .PokerTHMessage.PokerTHMessageType messageType = 1; public static final int MESSAGETYPE_FIELD_NUMBER = 1; - private int messageType_; - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - @java.lang.Override + private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_; public boolean hasMessageType() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { - de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType result = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.forNumber(messageType_); - return result == null ? de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage : result; + return messageType_; } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - private void setMessageType(de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - messageType_ = value.getNumber(); - } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - private void clearMessageType() { - bitField0_ = (bitField0_ & ~0x00000001); - messageType_ = 1; - } - + + // optional .AnnounceMessage announceMessage = 2; public static final int ANNOUNCEMESSAGE_FIELD_NUMBER = 2; private de.pokerth.protocol.ProtoBuf.AnnounceMessage announceMessage_; - /** - * optional .AnnounceMessage announceMessage = 2; - */ - @java.lang.Override public boolean hasAnnounceMessage() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { - return announceMessage_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance() : announceMessage_; + return announceMessage_; } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - private void setAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - if (value == null) { - throw new NullPointerException(); - } - announceMessage_ = value; - bitField0_ |= 0x00000002; - } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - private void setAnnounceMessage( - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder builderForValue) { - announceMessage_ = builderForValue.build(); - bitField0_ |= 0x00000002; - } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (announceMessage_ != null && - announceMessage_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance()) { - announceMessage_ = - de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder(announceMessage_).mergeFrom(value).buildPartial(); - } else { - announceMessage_ = value; - } - bitField0_ |= 0x00000002; - } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - private void clearAnnounceMessage() { announceMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000002); - } - + + // optional .InitMessage initMessage = 3; public static final int INITMESSAGE_FIELD_NUMBER = 3; private de.pokerth.protocol.ProtoBuf.InitMessage initMessage_; - /** - * optional .InitMessage initMessage = 3; - */ - @java.lang.Override public boolean hasInitMessage() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional .InitMessage initMessage = 3; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { - return initMessage_ == null ? de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance() : initMessage_; + return initMessage_; } - /** - * optional .InitMessage initMessage = 3; - */ - private void setInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - if (value == null) { - throw new NullPointerException(); - } - initMessage_ = value; - bitField0_ |= 0x00000004; - } - /** - * optional .InitMessage initMessage = 3; - */ - private void setInitMessage( - de.pokerth.protocol.ProtoBuf.InitMessage.Builder builderForValue) { - initMessage_ = builderForValue.build(); - bitField0_ |= 0x00000004; - } - /** - * optional .InitMessage initMessage = 3; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (initMessage_ != null && - initMessage_ != de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance()) { - initMessage_ = - de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder(initMessage_).mergeFrom(value).buildPartial(); - } else { - initMessage_ = value; - } - bitField0_ |= 0x00000004; - } - /** - * optional .InitMessage initMessage = 3; - */ - private void clearInitMessage() { initMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000004); - } - + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; public static final int AUTHSERVERCHALLENGEMESSAGE_FIELD_NUMBER = 4; private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage authServerChallengeMessage_; - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - @java.lang.Override public boolean hasAuthServerChallengeMessage() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { - return authServerChallengeMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance() : authServerChallengeMessage_; + return authServerChallengeMessage_; } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - private void setAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authServerChallengeMessage_ = value; - bitField0_ |= 0x00000008; - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - private void setAuthServerChallengeMessage( - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder builderForValue) { - authServerChallengeMessage_ = builderForValue.build(); - bitField0_ |= 0x00000008; - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (authServerChallengeMessage_ != null && - authServerChallengeMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance()) { - authServerChallengeMessage_ = - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder(authServerChallengeMessage_).mergeFrom(value).buildPartial(); - } else { - authServerChallengeMessage_ = value; - } - bitField0_ |= 0x00000008; - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - private void clearAuthServerChallengeMessage() { authServerChallengeMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000008); - } - + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; public static final int AUTHCLIENTRESPONSEMESSAGE_FIELD_NUMBER = 5; private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage authClientResponseMessage_; - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - @java.lang.Override public boolean hasAuthClientResponseMessage() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { - return authClientResponseMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance() : authClientResponseMessage_; + return authClientResponseMessage_; } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - private void setAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authClientResponseMessage_ = value; - bitField0_ |= 0x00000010; - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - private void setAuthClientResponseMessage( - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder builderForValue) { - authClientResponseMessage_ = builderForValue.build(); - bitField0_ |= 0x00000010; - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (authClientResponseMessage_ != null && - authClientResponseMessage_ != de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance()) { - authClientResponseMessage_ = - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder(authClientResponseMessage_).mergeFrom(value).buildPartial(); - } else { - authClientResponseMessage_ = value; - } - bitField0_ |= 0x00000010; - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - private void clearAuthClientResponseMessage() { authClientResponseMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000010); - } - + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; public static final int AUTHSERVERVERIFICATIONMESSAGE_FIELD_NUMBER = 6; private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage authServerVerificationMessage_; - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - @java.lang.Override public boolean hasAuthServerVerificationMessage() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { - return authServerVerificationMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance() : authServerVerificationMessage_; + return authServerVerificationMessage_; } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - private void setAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authServerVerificationMessage_ = value; - bitField0_ |= 0x00000020; - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - private void setAuthServerVerificationMessage( - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder builderForValue) { - authServerVerificationMessage_ = builderForValue.build(); - bitField0_ |= 0x00000020; - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (authServerVerificationMessage_ != null && - authServerVerificationMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance()) { - authServerVerificationMessage_ = - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder(authServerVerificationMessage_).mergeFrom(value).buildPartial(); - } else { - authServerVerificationMessage_ = value; - } - bitField0_ |= 0x00000020; - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - private void clearAuthServerVerificationMessage() { authServerVerificationMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000020); - } - + + // optional .InitAckMessage initAckMessage = 7; public static final int INITACKMESSAGE_FIELD_NUMBER = 7; private de.pokerth.protocol.ProtoBuf.InitAckMessage initAckMessage_; - /** - * optional .InitAckMessage initAckMessage = 7; - */ - @java.lang.Override public boolean hasInitAckMessage() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000040) == 0x00000040); } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { - return initAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance() : initAckMessage_; + return initAckMessage_; } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - private void setInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - initAckMessage_ = value; - bitField0_ |= 0x00000040; - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - private void setInitAckMessage( - de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder builderForValue) { - initAckMessage_ = builderForValue.build(); - bitField0_ |= 0x00000040; - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (initAckMessage_ != null && - initAckMessage_ != de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance()) { - initAckMessage_ = - de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder(initAckMessage_).mergeFrom(value).buildPartial(); - } else { - initAckMessage_ = value; - } - bitField0_ |= 0x00000040; - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - private void clearInitAckMessage() { initAckMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000040); - } - + + // optional .AvatarRequestMessage avatarRequestMessage = 8; public static final int AVATARREQUESTMESSAGE_FIELD_NUMBER = 8; private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage avatarRequestMessage_; - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - @java.lang.Override public boolean hasAvatarRequestMessage() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000080) == 0x00000080); } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { - return avatarRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance() : avatarRequestMessage_; + return avatarRequestMessage_; } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - private void setAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarRequestMessage_ = value; - bitField0_ |= 0x00000080; - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - private void setAvatarRequestMessage( - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder builderForValue) { - avatarRequestMessage_ = builderForValue.build(); - bitField0_ |= 0x00000080; - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (avatarRequestMessage_ != null && - avatarRequestMessage_ != de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance()) { - avatarRequestMessage_ = - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder(avatarRequestMessage_).mergeFrom(value).buildPartial(); - } else { - avatarRequestMessage_ = value; - } - bitField0_ |= 0x00000080; - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - private void clearAvatarRequestMessage() { avatarRequestMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000080); - } - + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; public static final int AVATARHEADERMESSAGE_FIELD_NUMBER = 9; private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage avatarHeaderMessage_; - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - @java.lang.Override public boolean hasAvatarHeaderMessage() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000100) == 0x00000100); } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { - return avatarHeaderMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance() : avatarHeaderMessage_; + return avatarHeaderMessage_; } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - private void setAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarHeaderMessage_ = value; - bitField0_ |= 0x00000100; - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - private void setAvatarHeaderMessage( - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder builderForValue) { - avatarHeaderMessage_ = builderForValue.build(); - bitField0_ |= 0x00000100; - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (avatarHeaderMessage_ != null && - avatarHeaderMessage_ != de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance()) { - avatarHeaderMessage_ = - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder(avatarHeaderMessage_).mergeFrom(value).buildPartial(); - } else { - avatarHeaderMessage_ = value; - } - bitField0_ |= 0x00000100; - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - private void clearAvatarHeaderMessage() { avatarHeaderMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000100); - } - + + // optional .AvatarDataMessage avatarDataMessage = 10; public static final int AVATARDATAMESSAGE_FIELD_NUMBER = 10; private de.pokerth.protocol.ProtoBuf.AvatarDataMessage avatarDataMessage_; - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - @java.lang.Override public boolean hasAvatarDataMessage() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000200) == 0x00000200); } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { - return avatarDataMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance() : avatarDataMessage_; + return avatarDataMessage_; } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - private void setAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarDataMessage_ = value; - bitField0_ |= 0x00000200; - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - private void setAvatarDataMessage( - de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder builderForValue) { - avatarDataMessage_ = builderForValue.build(); - bitField0_ |= 0x00000200; - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (avatarDataMessage_ != null && - avatarDataMessage_ != de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance()) { - avatarDataMessage_ = - de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder(avatarDataMessage_).mergeFrom(value).buildPartial(); - } else { - avatarDataMessage_ = value; - } - bitField0_ |= 0x00000200; - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - private void clearAvatarDataMessage() { avatarDataMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000200); - } - + + // optional .AvatarEndMessage avatarEndMessage = 11; public static final int AVATARENDMESSAGE_FIELD_NUMBER = 11; private de.pokerth.protocol.ProtoBuf.AvatarEndMessage avatarEndMessage_; - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - @java.lang.Override public boolean hasAvatarEndMessage() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000400) == 0x00000400); } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { - return avatarEndMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance() : avatarEndMessage_; + return avatarEndMessage_; } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - private void setAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarEndMessage_ = value; - bitField0_ |= 0x00000400; - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - private void setAvatarEndMessage( - de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder builderForValue) { - avatarEndMessage_ = builderForValue.build(); - bitField0_ |= 0x00000400; - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (avatarEndMessage_ != null && - avatarEndMessage_ != de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance()) { - avatarEndMessage_ = - de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder(avatarEndMessage_).mergeFrom(value).buildPartial(); - } else { - avatarEndMessage_ = value; - } - bitField0_ |= 0x00000400; - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - private void clearAvatarEndMessage() { avatarEndMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000400); - } - + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; public static final int UNKNOWNAVATARMESSAGE_FIELD_NUMBER = 12; private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage unknownAvatarMessage_; - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - @java.lang.Override public boolean hasUnknownAvatarMessage() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00000800) == 0x00000800); } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { - return unknownAvatarMessage_ == null ? de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance() : unknownAvatarMessage_; + return unknownAvatarMessage_; } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - private void setUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - unknownAvatarMessage_ = value; - bitField0_ |= 0x00000800; - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - private void setUnknownAvatarMessage( - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder builderForValue) { - unknownAvatarMessage_ = builderForValue.build(); - bitField0_ |= 0x00000800; - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (unknownAvatarMessage_ != null && - unknownAvatarMessage_ != de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance()) { - unknownAvatarMessage_ = - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder(unknownAvatarMessage_).mergeFrom(value).buildPartial(); - } else { - unknownAvatarMessage_ = value; - } - bitField0_ |= 0x00000800; - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - private void clearUnknownAvatarMessage() { unknownAvatarMessage_ = null; - bitField0_ = (bitField0_ & ~0x00000800); - } - + + // optional .PlayerListMessage playerListMessage = 13; public static final int PLAYERLISTMESSAGE_FIELD_NUMBER = 13; private de.pokerth.protocol.ProtoBuf.PlayerListMessage playerListMessage_; - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - @java.lang.Override public boolean hasPlayerListMessage() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00001000) == 0x00001000); } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { - return playerListMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance() : playerListMessage_; + return playerListMessage_; } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - private void setPlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerListMessage_ = value; - bitField0_ |= 0x00001000; - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - private void setPlayerListMessage( - de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder builderForValue) { - playerListMessage_ = builderForValue.build(); - bitField0_ |= 0x00001000; - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playerListMessage_ != null && - playerListMessage_ != de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance()) { - playerListMessage_ = - de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder(playerListMessage_).mergeFrom(value).buildPartial(); - } else { - playerListMessage_ = value; - } - bitField0_ |= 0x00001000; - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - private void clearPlayerListMessage() { playerListMessage_ = null; - bitField0_ = (bitField0_ & ~0x00001000); - } - + + // optional .GameListNewMessage gameListNewMessage = 14; public static final int GAMELISTNEWMESSAGE_FIELD_NUMBER = 14; private de.pokerth.protocol.ProtoBuf.GameListNewMessage gameListNewMessage_; - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - @java.lang.Override public boolean hasGameListNewMessage() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00002000) == 0x00002000); } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { - return gameListNewMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance() : gameListNewMessage_; + return gameListNewMessage_; } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - private void setGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListNewMessage_ = value; - bitField0_ |= 0x00002000; - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - private void setGameListNewMessage( - de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder builderForValue) { - gameListNewMessage_ = builderForValue.build(); - bitField0_ |= 0x00002000; - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListNewMessage_ != null && - gameListNewMessage_ != de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance()) { - gameListNewMessage_ = - de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder(gameListNewMessage_).mergeFrom(value).buildPartial(); - } else { - gameListNewMessage_ = value; - } - bitField0_ |= 0x00002000; - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - private void clearGameListNewMessage() { gameListNewMessage_ = null; - bitField0_ = (bitField0_ & ~0x00002000); - } - + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; public static final int GAMELISTUPDATEMESSAGE_FIELD_NUMBER = 15; private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage gameListUpdateMessage_; - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - @java.lang.Override public boolean hasGameListUpdateMessage() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00004000) == 0x00004000); } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { - return gameListUpdateMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance() : gameListUpdateMessage_; + return gameListUpdateMessage_; } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - private void setGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListUpdateMessage_ = value; - bitField0_ |= 0x00004000; - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - private void setGameListUpdateMessage( - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder builderForValue) { - gameListUpdateMessage_ = builderForValue.build(); - bitField0_ |= 0x00004000; - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListUpdateMessage_ != null && - gameListUpdateMessage_ != de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance()) { - gameListUpdateMessage_ = - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder(gameListUpdateMessage_).mergeFrom(value).buildPartial(); - } else { - gameListUpdateMessage_ = value; - } - bitField0_ |= 0x00004000; - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - private void clearGameListUpdateMessage() { gameListUpdateMessage_ = null; - bitField0_ = (bitField0_ & ~0x00004000); - } - + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; public static final int GAMELISTPLAYERJOINEDMESSAGE_FIELD_NUMBER = 16; private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage gameListPlayerJoinedMessage_; - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - @java.lang.Override public boolean hasGameListPlayerJoinedMessage() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00008000) == 0x00008000); } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { - return gameListPlayerJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance() : gameListPlayerJoinedMessage_; + return gameListPlayerJoinedMessage_; } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - private void setGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListPlayerJoinedMessage_ = value; - bitField0_ |= 0x00008000; - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - private void setGameListPlayerJoinedMessage( - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder builderForValue) { - gameListPlayerJoinedMessage_ = builderForValue.build(); - bitField0_ |= 0x00008000; - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListPlayerJoinedMessage_ != null && - gameListPlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance()) { - gameListPlayerJoinedMessage_ = - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder(gameListPlayerJoinedMessage_).mergeFrom(value).buildPartial(); - } else { - gameListPlayerJoinedMessage_ = value; - } - bitField0_ |= 0x00008000; - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - private void clearGameListPlayerJoinedMessage() { gameListPlayerJoinedMessage_ = null; - bitField0_ = (bitField0_ & ~0x00008000); - } - + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; public static final int GAMELISTPLAYERLEFTMESSAGE_FIELD_NUMBER = 17; private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage gameListPlayerLeftMessage_; - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - @java.lang.Override public boolean hasGameListPlayerLeftMessage() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00010000) == 0x00010000); } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { - return gameListPlayerLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance() : gameListPlayerLeftMessage_; + return gameListPlayerLeftMessage_; } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - private void setGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListPlayerLeftMessage_ = value; - bitField0_ |= 0x00010000; - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - private void setGameListPlayerLeftMessage( - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder builderForValue) { - gameListPlayerLeftMessage_ = builderForValue.build(); - bitField0_ |= 0x00010000; - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListPlayerLeftMessage_ != null && - gameListPlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance()) { - gameListPlayerLeftMessage_ = - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder(gameListPlayerLeftMessage_).mergeFrom(value).buildPartial(); - } else { - gameListPlayerLeftMessage_ = value; - } - bitField0_ |= 0x00010000; - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - private void clearGameListPlayerLeftMessage() { gameListPlayerLeftMessage_ = null; - bitField0_ = (bitField0_ & ~0x00010000); - } - + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; public static final int GAMELISTADMINCHANGEDMESSAGE_FIELD_NUMBER = 18; private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage gameListAdminChangedMessage_; - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - @java.lang.Override public boolean hasGameListAdminChangedMessage() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00020000) == 0x00020000); } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { - return gameListAdminChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance() : gameListAdminChangedMessage_; + return gameListAdminChangedMessage_; } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - private void setGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListAdminChangedMessage_ = value; - bitField0_ |= 0x00020000; - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - private void setGameListAdminChangedMessage( - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder builderForValue) { - gameListAdminChangedMessage_ = builderForValue.build(); - bitField0_ |= 0x00020000; - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListAdminChangedMessage_ != null && - gameListAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance()) { - gameListAdminChangedMessage_ = - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder(gameListAdminChangedMessage_).mergeFrom(value).buildPartial(); - } else { - gameListAdminChangedMessage_ = value; - } - bitField0_ |= 0x00020000; - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - private void clearGameListAdminChangedMessage() { gameListAdminChangedMessage_ = null; - bitField0_ = (bitField0_ & ~0x00020000); - } - + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; public static final int PLAYERINFOREQUESTMESSAGE_FIELD_NUMBER = 19; private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage playerInfoRequestMessage_; - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - @java.lang.Override public boolean hasPlayerInfoRequestMessage() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00040000) == 0x00040000); } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { - return playerInfoRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance() : playerInfoRequestMessage_; + return playerInfoRequestMessage_; } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - private void setPlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoRequestMessage_ = value; - bitField0_ |= 0x00040000; - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - private void setPlayerInfoRequestMessage( - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder builderForValue) { - playerInfoRequestMessage_ = builderForValue.build(); - bitField0_ |= 0x00040000; - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playerInfoRequestMessage_ != null && - playerInfoRequestMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance()) { - playerInfoRequestMessage_ = - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder(playerInfoRequestMessage_).mergeFrom(value).buildPartial(); - } else { - playerInfoRequestMessage_ = value; - } - bitField0_ |= 0x00040000; - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - private void clearPlayerInfoRequestMessage() { playerInfoRequestMessage_ = null; - bitField0_ = (bitField0_ & ~0x00040000); - } - + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; public static final int PLAYERINFOREPLYMESSAGE_FIELD_NUMBER = 20; private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage playerInfoReplyMessage_; - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - @java.lang.Override public boolean hasPlayerInfoReplyMessage() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00080000) == 0x00080000); } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { - return playerInfoReplyMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance() : playerInfoReplyMessage_; + return playerInfoReplyMessage_; } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - private void setPlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoReplyMessage_ = value; - bitField0_ |= 0x00080000; - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - private void setPlayerInfoReplyMessage( - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder builderForValue) { - playerInfoReplyMessage_ = builderForValue.build(); - bitField0_ |= 0x00080000; - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playerInfoReplyMessage_ != null && - playerInfoReplyMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance()) { - playerInfoReplyMessage_ = - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder(playerInfoReplyMessage_).mergeFrom(value).buildPartial(); - } else { - playerInfoReplyMessage_ = value; - } - bitField0_ |= 0x00080000; - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - private void clearPlayerInfoReplyMessage() { playerInfoReplyMessage_ = null; - bitField0_ = (bitField0_ & ~0x00080000); - } - + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; public static final int SUBSCRIPTIONREQUESTMESSAGE_FIELD_NUMBER = 21; private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage subscriptionRequestMessage_; - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - @java.lang.Override public boolean hasSubscriptionRequestMessage() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00100000) == 0x00100000); } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { - return subscriptionRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance() : subscriptionRequestMessage_; + return subscriptionRequestMessage_; } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - private void setSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - subscriptionRequestMessage_ = value; - bitField0_ |= 0x00100000; - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - private void setSubscriptionRequestMessage( - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder builderForValue) { - subscriptionRequestMessage_ = builderForValue.build(); - bitField0_ |= 0x00100000; - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (subscriptionRequestMessage_ != null && - subscriptionRequestMessage_ != de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance()) { - subscriptionRequestMessage_ = - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder(subscriptionRequestMessage_).mergeFrom(value).buildPartial(); - } else { - subscriptionRequestMessage_ = value; - } - bitField0_ |= 0x00100000; - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - private void clearSubscriptionRequestMessage() { subscriptionRequestMessage_ = null; - bitField0_ = (bitField0_ & ~0x00100000); - } - + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; public static final int JOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 22; private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage joinExistingGameMessage_; - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - @java.lang.Override public boolean hasJoinExistingGameMessage() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00200000) == 0x00200000); } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { - return joinExistingGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance() : joinExistingGameMessage_; + return joinExistingGameMessage_; } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - private void setJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinExistingGameMessage_ = value; - bitField0_ |= 0x00200000; - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - private void setJoinExistingGameMessage( - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder builderForValue) { - joinExistingGameMessage_ = builderForValue.build(); - bitField0_ |= 0x00200000; - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (joinExistingGameMessage_ != null && - joinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance()) { - joinExistingGameMessage_ = - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder(joinExistingGameMessage_).mergeFrom(value).buildPartial(); - } else { - joinExistingGameMessage_ = value; - } - bitField0_ |= 0x00200000; - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - private void clearJoinExistingGameMessage() { joinExistingGameMessage_ = null; - bitField0_ = (bitField0_ & ~0x00200000); - } - + + // optional .JoinNewGameMessage joinNewGameMessage = 23; public static final int JOINNEWGAMEMESSAGE_FIELD_NUMBER = 23; private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage joinNewGameMessage_; - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - @java.lang.Override public boolean hasJoinNewGameMessage() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00400000) == 0x00400000); } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { - return joinNewGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance() : joinNewGameMessage_; + return joinNewGameMessage_; } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - private void setJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinNewGameMessage_ = value; - bitField0_ |= 0x00400000; - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - private void setJoinNewGameMessage( - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder builderForValue) { - joinNewGameMessage_ = builderForValue.build(); - bitField0_ |= 0x00400000; - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (joinNewGameMessage_ != null && - joinNewGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance()) { - joinNewGameMessage_ = - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder(joinNewGameMessage_).mergeFrom(value).buildPartial(); - } else { - joinNewGameMessage_ = value; - } - bitField0_ |= 0x00400000; - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - private void clearJoinNewGameMessage() { joinNewGameMessage_ = null; - bitField0_ = (bitField0_ & ~0x00400000); - } - + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; public static final int REJOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 24; private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage rejoinExistingGameMessage_; - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - @java.lang.Override public boolean hasRejoinExistingGameMessage() { - return ((bitField0_ & 0x00800000) != 0); + return ((bitField0_ & 0x00800000) == 0x00800000); } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { - return rejoinExistingGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance() : rejoinExistingGameMessage_; + return rejoinExistingGameMessage_; } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - private void setRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejoinExistingGameMessage_ = value; - bitField0_ |= 0x00800000; - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - private void setRejoinExistingGameMessage( - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder builderForValue) { - rejoinExistingGameMessage_ = builderForValue.build(); - bitField0_ |= 0x00800000; - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (rejoinExistingGameMessage_ != null && - rejoinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance()) { - rejoinExistingGameMessage_ = - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder(rejoinExistingGameMessage_).mergeFrom(value).buildPartial(); - } else { - rejoinExistingGameMessage_ = value; - } - bitField0_ |= 0x00800000; - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - private void clearRejoinExistingGameMessage() { rejoinExistingGameMessage_ = null; - bitField0_ = (bitField0_ & ~0x00800000); - } - + + // optional .JoinGameAckMessage joinGameAckMessage = 25; public static final int JOINGAMEACKMESSAGE_FIELD_NUMBER = 25; private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage joinGameAckMessage_; - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - @java.lang.Override public boolean hasJoinGameAckMessage() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x01000000) == 0x01000000); } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { - return joinGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance() : joinGameAckMessage_; + return joinGameAckMessage_; } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - private void setJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinGameAckMessage_ = value; - bitField0_ |= 0x01000000; - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - private void setJoinGameAckMessage( - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder builderForValue) { - joinGameAckMessage_ = builderForValue.build(); - bitField0_ |= 0x01000000; - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (joinGameAckMessage_ != null && - joinGameAckMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance()) { - joinGameAckMessage_ = - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder(joinGameAckMessage_).mergeFrom(value).buildPartial(); - } else { - joinGameAckMessage_ = value; - } - bitField0_ |= 0x01000000; - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - private void clearJoinGameAckMessage() { joinGameAckMessage_ = null; - bitField0_ = (bitField0_ & ~0x01000000); - } - + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; public static final int JOINGAMEFAILEDMESSAGE_FIELD_NUMBER = 26; private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage joinGameFailedMessage_; - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - @java.lang.Override public boolean hasJoinGameFailedMessage() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x02000000) == 0x02000000); } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { - return joinGameFailedMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance() : joinGameFailedMessage_; + return joinGameFailedMessage_; } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - private void setJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinGameFailedMessage_ = value; - bitField0_ |= 0x02000000; - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - private void setJoinGameFailedMessage( - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder builderForValue) { - joinGameFailedMessage_ = builderForValue.build(); - bitField0_ |= 0x02000000; - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (joinGameFailedMessage_ != null && - joinGameFailedMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance()) { - joinGameFailedMessage_ = - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder(joinGameFailedMessage_).mergeFrom(value).buildPartial(); - } else { - joinGameFailedMessage_ = value; - } - bitField0_ |= 0x02000000; - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - private void clearJoinGameFailedMessage() { joinGameFailedMessage_ = null; - bitField0_ = (bitField0_ & ~0x02000000); - } - + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; public static final int GAMEPLAYERJOINEDMESSAGE_FIELD_NUMBER = 27; private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage gamePlayerJoinedMessage_; - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - @java.lang.Override public boolean hasGamePlayerJoinedMessage() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x04000000) == 0x04000000); } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { - return gamePlayerJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance() : gamePlayerJoinedMessage_; + return gamePlayerJoinedMessage_; } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - private void setGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gamePlayerJoinedMessage_ = value; - bitField0_ |= 0x04000000; - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - private void setGamePlayerJoinedMessage( - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder builderForValue) { - gamePlayerJoinedMessage_ = builderForValue.build(); - bitField0_ |= 0x04000000; - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gamePlayerJoinedMessage_ != null && - gamePlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance()) { - gamePlayerJoinedMessage_ = - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder(gamePlayerJoinedMessage_).mergeFrom(value).buildPartial(); - } else { - gamePlayerJoinedMessage_ = value; - } - bitField0_ |= 0x04000000; - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - private void clearGamePlayerJoinedMessage() { gamePlayerJoinedMessage_ = null; - bitField0_ = (bitField0_ & ~0x04000000); - } - + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; public static final int GAMEPLAYERLEFTMESSAGE_FIELD_NUMBER = 28; private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage gamePlayerLeftMessage_; - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - @java.lang.Override public boolean hasGamePlayerLeftMessage() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x08000000) == 0x08000000); } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { - return gamePlayerLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance() : gamePlayerLeftMessage_; + return gamePlayerLeftMessage_; } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - private void setGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gamePlayerLeftMessage_ = value; - bitField0_ |= 0x08000000; - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - private void setGamePlayerLeftMessage( - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder builderForValue) { - gamePlayerLeftMessage_ = builderForValue.build(); - bitField0_ |= 0x08000000; - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gamePlayerLeftMessage_ != null && - gamePlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance()) { - gamePlayerLeftMessage_ = - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder(gamePlayerLeftMessage_).mergeFrom(value).buildPartial(); - } else { - gamePlayerLeftMessage_ = value; - } - bitField0_ |= 0x08000000; - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - private void clearGamePlayerLeftMessage() { gamePlayerLeftMessage_ = null; - bitField0_ = (bitField0_ & ~0x08000000); - } - + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; public static final int GAMEADMINCHANGEDMESSAGE_FIELD_NUMBER = 29; private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage gameAdminChangedMessage_; - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - @java.lang.Override public boolean hasGameAdminChangedMessage() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x10000000) == 0x10000000); } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { - return gameAdminChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance() : gameAdminChangedMessage_; + return gameAdminChangedMessage_; } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - private void setGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameAdminChangedMessage_ = value; - bitField0_ |= 0x10000000; - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - private void setGameAdminChangedMessage( - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder builderForValue) { - gameAdminChangedMessage_ = builderForValue.build(); - bitField0_ |= 0x10000000; - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameAdminChangedMessage_ != null && - gameAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance()) { - gameAdminChangedMessage_ = - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder(gameAdminChangedMessage_).mergeFrom(value).buildPartial(); - } else { - gameAdminChangedMessage_ = value; - } - bitField0_ |= 0x10000000; - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - private void clearGameAdminChangedMessage() { gameAdminChangedMessage_ = null; - bitField0_ = (bitField0_ & ~0x10000000); - } - + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; public static final int REMOVEDFROMGAMEMESSAGE_FIELD_NUMBER = 30; private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage removedFromGameMessage_; - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - @java.lang.Override public boolean hasRemovedFromGameMessage() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x20000000) == 0x20000000); } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { - return removedFromGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance() : removedFromGameMessage_; + return removedFromGameMessage_; } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - private void setRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - removedFromGameMessage_ = value; - bitField0_ |= 0x20000000; - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - private void setRemovedFromGameMessage( - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder builderForValue) { - removedFromGameMessage_ = builderForValue.build(); - bitField0_ |= 0x20000000; - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (removedFromGameMessage_ != null && - removedFromGameMessage_ != de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance()) { - removedFromGameMessage_ = - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder(removedFromGameMessage_).mergeFrom(value).buildPartial(); - } else { - removedFromGameMessage_ = value; - } - bitField0_ |= 0x20000000; - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - private void clearRemovedFromGameMessage() { removedFromGameMessage_ = null; - bitField0_ = (bitField0_ & ~0x20000000); - } - + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; public static final int KICKPLAYERREQUESTMESSAGE_FIELD_NUMBER = 31; private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage kickPlayerRequestMessage_; - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - @java.lang.Override public boolean hasKickPlayerRequestMessage() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x40000000) == 0x40000000); } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { - return kickPlayerRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance() : kickPlayerRequestMessage_; + return kickPlayerRequestMessage_; } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - private void setKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - kickPlayerRequestMessage_ = value; - bitField0_ |= 0x40000000; - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - private void setKickPlayerRequestMessage( - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder builderForValue) { - kickPlayerRequestMessage_ = builderForValue.build(); - bitField0_ |= 0x40000000; - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (kickPlayerRequestMessage_ != null && - kickPlayerRequestMessage_ != de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance()) { - kickPlayerRequestMessage_ = - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder(kickPlayerRequestMessage_).mergeFrom(value).buildPartial(); - } else { - kickPlayerRequestMessage_ = value; - } - bitField0_ |= 0x40000000; - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - private void clearKickPlayerRequestMessage() { kickPlayerRequestMessage_ = null; - bitField0_ = (bitField0_ & ~0x40000000); - } - + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; public static final int LEAVEGAMEREQUESTMESSAGE_FIELD_NUMBER = 32; private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage leaveGameRequestMessage_; - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - @java.lang.Override public boolean hasLeaveGameRequestMessage() { - return ((bitField0_ & 0x80000000) != 0); + return ((bitField0_ & 0x80000000) == 0x80000000); } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { - return leaveGameRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance() : leaveGameRequestMessage_; + return leaveGameRequestMessage_; } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - private void setLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - leaveGameRequestMessage_ = value; - bitField0_ |= 0x80000000; - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - private void setLeaveGameRequestMessage( - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder builderForValue) { - leaveGameRequestMessage_ = builderForValue.build(); - bitField0_ |= 0x80000000; - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (leaveGameRequestMessage_ != null && - leaveGameRequestMessage_ != de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance()) { - leaveGameRequestMessage_ = - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder(leaveGameRequestMessage_).mergeFrom(value).buildPartial(); - } else { - leaveGameRequestMessage_ = value; - } - bitField0_ |= 0x80000000; - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - private void clearLeaveGameRequestMessage() { leaveGameRequestMessage_ = null; - bitField0_ = (bitField0_ & ~0x80000000); - } - + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; public static final int INVITEPLAYERTOGAMEMESSAGE_FIELD_NUMBER = 33; private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage invitePlayerToGameMessage_; - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - @java.lang.Override public boolean hasInvitePlayerToGameMessage() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000001) == 0x00000001); } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { - return invitePlayerToGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance() : invitePlayerToGameMessage_; + return invitePlayerToGameMessage_; } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - private void setInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - invitePlayerToGameMessage_ = value; - bitField1_ |= 0x00000001; - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - private void setInvitePlayerToGameMessage( - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder builderForValue) { - invitePlayerToGameMessage_ = builderForValue.build(); - bitField1_ |= 0x00000001; - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (invitePlayerToGameMessage_ != null && - invitePlayerToGameMessage_ != de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance()) { - invitePlayerToGameMessage_ = - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder(invitePlayerToGameMessage_).mergeFrom(value).buildPartial(); - } else { - invitePlayerToGameMessage_ = value; - } - bitField1_ |= 0x00000001; - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - private void clearInvitePlayerToGameMessage() { invitePlayerToGameMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000001); - } - + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; public static final int INVITENOTIFYMESSAGE_FIELD_NUMBER = 34; private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage inviteNotifyMessage_; - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - @java.lang.Override public boolean hasInviteNotifyMessage() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000002) == 0x00000002); } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { - return inviteNotifyMessage_ == null ? de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance() : inviteNotifyMessage_; + return inviteNotifyMessage_; } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - private void setInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - inviteNotifyMessage_ = value; - bitField1_ |= 0x00000002; - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - private void setInviteNotifyMessage( - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder builderForValue) { - inviteNotifyMessage_ = builderForValue.build(); - bitField1_ |= 0x00000002; - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (inviteNotifyMessage_ != null && - inviteNotifyMessage_ != de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance()) { - inviteNotifyMessage_ = - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder(inviteNotifyMessage_).mergeFrom(value).buildPartial(); - } else { - inviteNotifyMessage_ = value; - } - bitField1_ |= 0x00000002; - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - private void clearInviteNotifyMessage() { inviteNotifyMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000002); - } - + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; public static final int REJECTGAMEINVITATIONMESSAGE_FIELD_NUMBER = 35; private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage rejectGameInvitationMessage_; - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - @java.lang.Override public boolean hasRejectGameInvitationMessage() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000004) == 0x00000004); } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { - return rejectGameInvitationMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance() : rejectGameInvitationMessage_; + return rejectGameInvitationMessage_; } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - private void setRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejectGameInvitationMessage_ = value; - bitField1_ |= 0x00000004; - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - private void setRejectGameInvitationMessage( - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder builderForValue) { - rejectGameInvitationMessage_ = builderForValue.build(); - bitField1_ |= 0x00000004; - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (rejectGameInvitationMessage_ != null && - rejectGameInvitationMessage_ != de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance()) { - rejectGameInvitationMessage_ = - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder(rejectGameInvitationMessage_).mergeFrom(value).buildPartial(); - } else { - rejectGameInvitationMessage_ = value; - } - bitField1_ |= 0x00000004; - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - private void clearRejectGameInvitationMessage() { rejectGameInvitationMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000004); - } - + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; public static final int REJECTINVNOTIFYMESSAGE_FIELD_NUMBER = 36; private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage rejectInvNotifyMessage_; - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - @java.lang.Override public boolean hasRejectInvNotifyMessage() { - return ((bitField1_ & 0x00000008) != 0); + return ((bitField1_ & 0x00000008) == 0x00000008); } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { - return rejectInvNotifyMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance() : rejectInvNotifyMessage_; + return rejectInvNotifyMessage_; } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - private void setRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejectInvNotifyMessage_ = value; - bitField1_ |= 0x00000008; - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - private void setRejectInvNotifyMessage( - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder builderForValue) { - rejectInvNotifyMessage_ = builderForValue.build(); - bitField1_ |= 0x00000008; - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (rejectInvNotifyMessage_ != null && - rejectInvNotifyMessage_ != de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance()) { - rejectInvNotifyMessage_ = - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder(rejectInvNotifyMessage_).mergeFrom(value).buildPartial(); - } else { - rejectInvNotifyMessage_ = value; - } - bitField1_ |= 0x00000008; - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - private void clearRejectInvNotifyMessage() { rejectInvNotifyMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000008); - } - + + // optional .StartEventMessage startEventMessage = 37; public static final int STARTEVENTMESSAGE_FIELD_NUMBER = 37; private de.pokerth.protocol.ProtoBuf.StartEventMessage startEventMessage_; - /** - * optional .StartEventMessage startEventMessage = 37; - */ - @java.lang.Override public boolean hasStartEventMessage() { - return ((bitField1_ & 0x00000010) != 0); + return ((bitField1_ & 0x00000010) == 0x00000010); } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { - return startEventMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance() : startEventMessage_; + return startEventMessage_; } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - private void setStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startEventMessage_ = value; - bitField1_ |= 0x00000010; - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - private void setStartEventMessage( - de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder builderForValue) { - startEventMessage_ = builderForValue.build(); - bitField1_ |= 0x00000010; - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (startEventMessage_ != null && - startEventMessage_ != de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance()) { - startEventMessage_ = - de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder(startEventMessage_).mergeFrom(value).buildPartial(); - } else { - startEventMessage_ = value; - } - bitField1_ |= 0x00000010; - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - private void clearStartEventMessage() { startEventMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000010); - } - + + // optional .StartEventAckMessage startEventAckMessage = 38; public static final int STARTEVENTACKMESSAGE_FIELD_NUMBER = 38; private de.pokerth.protocol.ProtoBuf.StartEventAckMessage startEventAckMessage_; - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - @java.lang.Override public boolean hasStartEventAckMessage() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000020) == 0x00000020); } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { - return startEventAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance() : startEventAckMessage_; + return startEventAckMessage_; } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - private void setStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startEventAckMessage_ = value; - bitField1_ |= 0x00000020; - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - private void setStartEventAckMessage( - de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder builderForValue) { - startEventAckMessage_ = builderForValue.build(); - bitField1_ |= 0x00000020; - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (startEventAckMessage_ != null && - startEventAckMessage_ != de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance()) { - startEventAckMessage_ = - de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder(startEventAckMessage_).mergeFrom(value).buildPartial(); - } else { - startEventAckMessage_ = value; - } - bitField1_ |= 0x00000020; - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - private void clearStartEventAckMessage() { startEventAckMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000020); - } - + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; public static final int GAMESTARTINITIALMESSAGE_FIELD_NUMBER = 39; private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage gameStartInitialMessage_; - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - @java.lang.Override public boolean hasGameStartInitialMessage() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000040) == 0x00000040); } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { - return gameStartInitialMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance() : gameStartInitialMessage_; + return gameStartInitialMessage_; } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - private void setGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameStartInitialMessage_ = value; - bitField1_ |= 0x00000040; - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - private void setGameStartInitialMessage( - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder builderForValue) { - gameStartInitialMessage_ = builderForValue.build(); - bitField1_ |= 0x00000040; - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameStartInitialMessage_ != null && - gameStartInitialMessage_ != de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance()) { - gameStartInitialMessage_ = - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder(gameStartInitialMessage_).mergeFrom(value).buildPartial(); - } else { - gameStartInitialMessage_ = value; - } - bitField1_ |= 0x00000040; - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - private void clearGameStartInitialMessage() { gameStartInitialMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000040); - } - + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; public static final int GAMESTARTREJOINMESSAGE_FIELD_NUMBER = 40; private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage gameStartRejoinMessage_; - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - @java.lang.Override public boolean hasGameStartRejoinMessage() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000080) == 0x00000080); } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { - return gameStartRejoinMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance() : gameStartRejoinMessage_; + return gameStartRejoinMessage_; } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - private void setGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameStartRejoinMessage_ = value; - bitField1_ |= 0x00000080; - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - private void setGameStartRejoinMessage( - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder builderForValue) { - gameStartRejoinMessage_ = builderForValue.build(); - bitField1_ |= 0x00000080; - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameStartRejoinMessage_ != null && - gameStartRejoinMessage_ != de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance()) { - gameStartRejoinMessage_ = - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder(gameStartRejoinMessage_).mergeFrom(value).buildPartial(); - } else { - gameStartRejoinMessage_ = value; - } - bitField1_ |= 0x00000080; - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - private void clearGameStartRejoinMessage() { gameStartRejoinMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000080); - } - + + // optional .HandStartMessage handStartMessage = 41; public static final int HANDSTARTMESSAGE_FIELD_NUMBER = 41; private de.pokerth.protocol.ProtoBuf.HandStartMessage handStartMessage_; - /** - * optional .HandStartMessage handStartMessage = 41; - */ - @java.lang.Override public boolean hasHandStartMessage() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000100) == 0x00000100); } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { - return handStartMessage_ == null ? de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance() : handStartMessage_; + return handStartMessage_; } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - private void setHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - if (value == null) { - throw new NullPointerException(); - } - handStartMessage_ = value; - bitField1_ |= 0x00000100; - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - private void setHandStartMessage( - de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder builderForValue) { - handStartMessage_ = builderForValue.build(); - bitField1_ |= 0x00000100; - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (handStartMessage_ != null && - handStartMessage_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance()) { - handStartMessage_ = - de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder(handStartMessage_).mergeFrom(value).buildPartial(); - } else { - handStartMessage_ = value; - } - bitField1_ |= 0x00000100; - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - private void clearHandStartMessage() { handStartMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000100); - } - + + // optional .PlayersTurnMessage playersTurnMessage = 42; public static final int PLAYERSTURNMESSAGE_FIELD_NUMBER = 42; private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage playersTurnMessage_; - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - @java.lang.Override public boolean hasPlayersTurnMessage() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000200) == 0x00000200); } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { - return playersTurnMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance() : playersTurnMessage_; + return playersTurnMessage_; } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - private void setPlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playersTurnMessage_ = value; - bitField1_ |= 0x00000200; - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - private void setPlayersTurnMessage( - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder builderForValue) { - playersTurnMessage_ = builderForValue.build(); - bitField1_ |= 0x00000200; - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playersTurnMessage_ != null && - playersTurnMessage_ != de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance()) { - playersTurnMessage_ = - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder(playersTurnMessage_).mergeFrom(value).buildPartial(); - } else { - playersTurnMessage_ = value; - } - bitField1_ |= 0x00000200; - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - private void clearPlayersTurnMessage() { playersTurnMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000200); - } - + + // optional .MyActionRequestMessage myActionRequestMessage = 43; public static final int MYACTIONREQUESTMESSAGE_FIELD_NUMBER = 43; private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage myActionRequestMessage_; - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - @java.lang.Override public boolean hasMyActionRequestMessage() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000400) == 0x00000400); } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { - return myActionRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance() : myActionRequestMessage_; + return myActionRequestMessage_; } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - private void setMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - myActionRequestMessage_ = value; - bitField1_ |= 0x00000400; - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - private void setMyActionRequestMessage( - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder builderForValue) { - myActionRequestMessage_ = builderForValue.build(); - bitField1_ |= 0x00000400; - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (myActionRequestMessage_ != null && - myActionRequestMessage_ != de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance()) { - myActionRequestMessage_ = - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder(myActionRequestMessage_).mergeFrom(value).buildPartial(); - } else { - myActionRequestMessage_ = value; - } - bitField1_ |= 0x00000400; - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - private void clearMyActionRequestMessage() { myActionRequestMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000400); - } - + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; public static final int YOURACTIONREJECTEDMESSAGE_FIELD_NUMBER = 44; private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage yourActionRejectedMessage_; - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - @java.lang.Override public boolean hasYourActionRejectedMessage() { - return ((bitField1_ & 0x00000800) != 0); + return ((bitField1_ & 0x00000800) == 0x00000800); } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { - return yourActionRejectedMessage_ == null ? de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance() : yourActionRejectedMessage_; + return yourActionRejectedMessage_; } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - private void setYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - yourActionRejectedMessage_ = value; - bitField1_ |= 0x00000800; - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - private void setYourActionRejectedMessage( - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder builderForValue) { - yourActionRejectedMessage_ = builderForValue.build(); - bitField1_ |= 0x00000800; - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (yourActionRejectedMessage_ != null && - yourActionRejectedMessage_ != de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance()) { - yourActionRejectedMessage_ = - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder(yourActionRejectedMessage_).mergeFrom(value).buildPartial(); - } else { - yourActionRejectedMessage_ = value; - } - bitField1_ |= 0x00000800; - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - private void clearYourActionRejectedMessage() { yourActionRejectedMessage_ = null; - bitField1_ = (bitField1_ & ~0x00000800); - } - + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; public static final int PLAYERSACTIONDONEMESSAGE_FIELD_NUMBER = 45; private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage playersActionDoneMessage_; - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - @java.lang.Override public boolean hasPlayersActionDoneMessage() { - return ((bitField1_ & 0x00001000) != 0); + return ((bitField1_ & 0x00001000) == 0x00001000); } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { - return playersActionDoneMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance() : playersActionDoneMessage_; + return playersActionDoneMessage_; } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - private void setPlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playersActionDoneMessage_ = value; - bitField1_ |= 0x00001000; - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - private void setPlayersActionDoneMessage( - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder builderForValue) { - playersActionDoneMessage_ = builderForValue.build(); - bitField1_ |= 0x00001000; - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playersActionDoneMessage_ != null && - playersActionDoneMessage_ != de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance()) { - playersActionDoneMessage_ = - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder(playersActionDoneMessage_).mergeFrom(value).buildPartial(); - } else { - playersActionDoneMessage_ = value; - } - bitField1_ |= 0x00001000; - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - private void clearPlayersActionDoneMessage() { playersActionDoneMessage_ = null; - bitField1_ = (bitField1_ & ~0x00001000); - } - + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; public static final int DEALFLOPCARDSMESSAGE_FIELD_NUMBER = 46; private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage dealFlopCardsMessage_; - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - @java.lang.Override public boolean hasDealFlopCardsMessage() { - return ((bitField1_ & 0x00002000) != 0); + return ((bitField1_ & 0x00002000) == 0x00002000); } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { - return dealFlopCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance() : dealFlopCardsMessage_; + return dealFlopCardsMessage_; } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - private void setDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealFlopCardsMessage_ = value; - bitField1_ |= 0x00002000; - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - private void setDealFlopCardsMessage( - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder builderForValue) { - dealFlopCardsMessage_ = builderForValue.build(); - bitField1_ |= 0x00002000; - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (dealFlopCardsMessage_ != null && - dealFlopCardsMessage_ != de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance()) { - dealFlopCardsMessage_ = - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder(dealFlopCardsMessage_).mergeFrom(value).buildPartial(); - } else { - dealFlopCardsMessage_ = value; - } - bitField1_ |= 0x00002000; - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - private void clearDealFlopCardsMessage() { dealFlopCardsMessage_ = null; - bitField1_ = (bitField1_ & ~0x00002000); - } - + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; public static final int DEALTURNCARDMESSAGE_FIELD_NUMBER = 47; private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage dealTurnCardMessage_; - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - @java.lang.Override public boolean hasDealTurnCardMessage() { - return ((bitField1_ & 0x00004000) != 0); + return ((bitField1_ & 0x00004000) == 0x00004000); } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { - return dealTurnCardMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance() : dealTurnCardMessage_; + return dealTurnCardMessage_; } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - private void setDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealTurnCardMessage_ = value; - bitField1_ |= 0x00004000; - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - private void setDealTurnCardMessage( - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder builderForValue) { - dealTurnCardMessage_ = builderForValue.build(); - bitField1_ |= 0x00004000; - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (dealTurnCardMessage_ != null && - dealTurnCardMessage_ != de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance()) { - dealTurnCardMessage_ = - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder(dealTurnCardMessage_).mergeFrom(value).buildPartial(); - } else { - dealTurnCardMessage_ = value; - } - bitField1_ |= 0x00004000; - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - private void clearDealTurnCardMessage() { dealTurnCardMessage_ = null; - bitField1_ = (bitField1_ & ~0x00004000); - } - + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; public static final int DEALRIVERCARDMESSAGE_FIELD_NUMBER = 48; private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage dealRiverCardMessage_; - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - @java.lang.Override public boolean hasDealRiverCardMessage() { - return ((bitField1_ & 0x00008000) != 0); + return ((bitField1_ & 0x00008000) == 0x00008000); } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { - return dealRiverCardMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance() : dealRiverCardMessage_; + return dealRiverCardMessage_; } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - private void setDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealRiverCardMessage_ = value; - bitField1_ |= 0x00008000; - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - private void setDealRiverCardMessage( - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder builderForValue) { - dealRiverCardMessage_ = builderForValue.build(); - bitField1_ |= 0x00008000; - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (dealRiverCardMessage_ != null && - dealRiverCardMessage_ != de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance()) { - dealRiverCardMessage_ = - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder(dealRiverCardMessage_).mergeFrom(value).buildPartial(); - } else { - dealRiverCardMessage_ = value; - } - bitField1_ |= 0x00008000; - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - private void clearDealRiverCardMessage() { dealRiverCardMessage_ = null; - bitField1_ = (bitField1_ & ~0x00008000); - } - + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; public static final int ALLINSHOWCARDSMESSAGE_FIELD_NUMBER = 49; private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage allInShowCardsMessage_; - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - @java.lang.Override public boolean hasAllInShowCardsMessage() { - return ((bitField1_ & 0x00010000) != 0); + return ((bitField1_ & 0x00010000) == 0x00010000); } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { - return allInShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance() : allInShowCardsMessage_; + return allInShowCardsMessage_; } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - private void setAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - allInShowCardsMessage_ = value; - bitField1_ |= 0x00010000; - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - private void setAllInShowCardsMessage( - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder builderForValue) { - allInShowCardsMessage_ = builderForValue.build(); - bitField1_ |= 0x00010000; - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (allInShowCardsMessage_ != null && - allInShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance()) { - allInShowCardsMessage_ = - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder(allInShowCardsMessage_).mergeFrom(value).buildPartial(); - } else { - allInShowCardsMessage_ = value; - } - bitField1_ |= 0x00010000; - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - private void clearAllInShowCardsMessage() { allInShowCardsMessage_ = null; - bitField1_ = (bitField1_ & ~0x00010000); - } - + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; public static final int ENDOFHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 50; private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage endOfHandShowCardsMessage_; - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - @java.lang.Override public boolean hasEndOfHandShowCardsMessage() { - return ((bitField1_ & 0x00020000) != 0); + return ((bitField1_ & 0x00020000) == 0x00020000); } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { - return endOfHandShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance() : endOfHandShowCardsMessage_; + return endOfHandShowCardsMessage_; } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - private void setEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfHandShowCardsMessage_ = value; - bitField1_ |= 0x00020000; - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - private void setEndOfHandShowCardsMessage( - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder builderForValue) { - endOfHandShowCardsMessage_ = builderForValue.build(); - bitField1_ |= 0x00020000; - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (endOfHandShowCardsMessage_ != null && - endOfHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance()) { - endOfHandShowCardsMessage_ = - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder(endOfHandShowCardsMessage_).mergeFrom(value).buildPartial(); - } else { - endOfHandShowCardsMessage_ = value; - } - bitField1_ |= 0x00020000; - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - private void clearEndOfHandShowCardsMessage() { endOfHandShowCardsMessage_ = null; - bitField1_ = (bitField1_ & ~0x00020000); - } - + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; public static final int ENDOFHANDHIDECARDSMESSAGE_FIELD_NUMBER = 51; private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage endOfHandHideCardsMessage_; - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - @java.lang.Override public boolean hasEndOfHandHideCardsMessage() { - return ((bitField1_ & 0x00040000) != 0); + return ((bitField1_ & 0x00040000) == 0x00040000); } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { - return endOfHandHideCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance() : endOfHandHideCardsMessage_; + return endOfHandHideCardsMessage_; } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - private void setEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfHandHideCardsMessage_ = value; - bitField1_ |= 0x00040000; - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - private void setEndOfHandHideCardsMessage( - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder builderForValue) { - endOfHandHideCardsMessage_ = builderForValue.build(); - bitField1_ |= 0x00040000; - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (endOfHandHideCardsMessage_ != null && - endOfHandHideCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance()) { - endOfHandHideCardsMessage_ = - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder(endOfHandHideCardsMessage_).mergeFrom(value).buildPartial(); - } else { - endOfHandHideCardsMessage_ = value; - } - bitField1_ |= 0x00040000; - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - private void clearEndOfHandHideCardsMessage() { endOfHandHideCardsMessage_ = null; - bitField1_ = (bitField1_ & ~0x00040000); - } - + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; public static final int SHOWMYCARDSREQUESTMESSAGE_FIELD_NUMBER = 52; private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage showMyCardsRequestMessage_; - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - @java.lang.Override public boolean hasShowMyCardsRequestMessage() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00080000) == 0x00080000); } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { - return showMyCardsRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance() : showMyCardsRequestMessage_; + return showMyCardsRequestMessage_; } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - private void setShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - showMyCardsRequestMessage_ = value; - bitField1_ |= 0x00080000; - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - private void setShowMyCardsRequestMessage( - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder builderForValue) { - showMyCardsRequestMessage_ = builderForValue.build(); - bitField1_ |= 0x00080000; - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (showMyCardsRequestMessage_ != null && - showMyCardsRequestMessage_ != de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance()) { - showMyCardsRequestMessage_ = - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder(showMyCardsRequestMessage_).mergeFrom(value).buildPartial(); - } else { - showMyCardsRequestMessage_ = value; - } - bitField1_ |= 0x00080000; - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - private void clearShowMyCardsRequestMessage() { showMyCardsRequestMessage_ = null; - bitField1_ = (bitField1_ & ~0x00080000); - } - + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; public static final int AFTERHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 53; private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage afterHandShowCardsMessage_; - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - @java.lang.Override public boolean hasAfterHandShowCardsMessage() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00100000) == 0x00100000); } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { - return afterHandShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance() : afterHandShowCardsMessage_; + return afterHandShowCardsMessage_; } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - private void setAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - afterHandShowCardsMessage_ = value; - bitField1_ |= 0x00100000; - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - private void setAfterHandShowCardsMessage( - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder builderForValue) { - afterHandShowCardsMessage_ = builderForValue.build(); - bitField1_ |= 0x00100000; - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (afterHandShowCardsMessage_ != null && - afterHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance()) { - afterHandShowCardsMessage_ = - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder(afterHandShowCardsMessage_).mergeFrom(value).buildPartial(); - } else { - afterHandShowCardsMessage_ = value; - } - bitField1_ |= 0x00100000; - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - private void clearAfterHandShowCardsMessage() { afterHandShowCardsMessage_ = null; - bitField1_ = (bitField1_ & ~0x00100000); - } - + + // optional .EndOfGameMessage endOfGameMessage = 54; public static final int ENDOFGAMEMESSAGE_FIELD_NUMBER = 54; private de.pokerth.protocol.ProtoBuf.EndOfGameMessage endOfGameMessage_; - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - @java.lang.Override public boolean hasEndOfGameMessage() { - return ((bitField1_ & 0x00200000) != 0); + return ((bitField1_ & 0x00200000) == 0x00200000); } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { - return endOfGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance() : endOfGameMessage_; + return endOfGameMessage_; } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - private void setEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfGameMessage_ = value; - bitField1_ |= 0x00200000; - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - private void setEndOfGameMessage( - de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder builderForValue) { - endOfGameMessage_ = builderForValue.build(); - bitField1_ |= 0x00200000; - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (endOfGameMessage_ != null && - endOfGameMessage_ != de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance()) { - endOfGameMessage_ = - de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder(endOfGameMessage_).mergeFrom(value).buildPartial(); - } else { - endOfGameMessage_ = value; - } - bitField1_ |= 0x00200000; - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - private void clearEndOfGameMessage() { endOfGameMessage_ = null; - bitField1_ = (bitField1_ & ~0x00200000); - } - + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; public static final int PLAYERIDCHANGEDMESSAGE_FIELD_NUMBER = 55; private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage playerIdChangedMessage_; - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - @java.lang.Override public boolean hasPlayerIdChangedMessage() { - return ((bitField1_ & 0x00400000) != 0); + return ((bitField1_ & 0x00400000) == 0x00400000); } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { - return playerIdChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance() : playerIdChangedMessage_; + return playerIdChangedMessage_; } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - private void setPlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerIdChangedMessage_ = value; - bitField1_ |= 0x00400000; - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - private void setPlayerIdChangedMessage( - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder builderForValue) { - playerIdChangedMessage_ = builderForValue.build(); - bitField1_ |= 0x00400000; - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergePlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (playerIdChangedMessage_ != null && - playerIdChangedMessage_ != de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance()) { - playerIdChangedMessage_ = - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder(playerIdChangedMessage_).mergeFrom(value).buildPartial(); - } else { - playerIdChangedMessage_ = value; - } - bitField1_ |= 0x00400000; - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - private void clearPlayerIdChangedMessage() { playerIdChangedMessage_ = null; - bitField1_ = (bitField1_ & ~0x00400000); - } - + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; public static final int ASKKICKPLAYERMESSAGE_FIELD_NUMBER = 56; private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage askKickPlayerMessage_; - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - @java.lang.Override public boolean hasAskKickPlayerMessage() { - return ((bitField1_ & 0x00800000) != 0); + return ((bitField1_ & 0x00800000) == 0x00800000); } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { - return askKickPlayerMessage_ == null ? de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance() : askKickPlayerMessage_; + return askKickPlayerMessage_; } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - private void setAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - askKickPlayerMessage_ = value; - bitField1_ |= 0x00800000; - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - private void setAskKickPlayerMessage( - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder builderForValue) { - askKickPlayerMessage_ = builderForValue.build(); - bitField1_ |= 0x00800000; - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (askKickPlayerMessage_ != null && - askKickPlayerMessage_ != de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance()) { - askKickPlayerMessage_ = - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder(askKickPlayerMessage_).mergeFrom(value).buildPartial(); - } else { - askKickPlayerMessage_ = value; - } - bitField1_ |= 0x00800000; - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - private void clearAskKickPlayerMessage() { askKickPlayerMessage_ = null; - bitField1_ = (bitField1_ & ~0x00800000); - } - + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; public static final int ASKKICKDENIEDMESSAGE_FIELD_NUMBER = 57; private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage askKickDeniedMessage_; - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - @java.lang.Override public boolean hasAskKickDeniedMessage() { - return ((bitField1_ & 0x01000000) != 0); + return ((bitField1_ & 0x01000000) == 0x01000000); } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { - return askKickDeniedMessage_ == null ? de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance() : askKickDeniedMessage_; + return askKickDeniedMessage_; } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - private void setAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - askKickDeniedMessage_ = value; - bitField1_ |= 0x01000000; - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - private void setAskKickDeniedMessage( - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder builderForValue) { - askKickDeniedMessage_ = builderForValue.build(); - bitField1_ |= 0x01000000; - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (askKickDeniedMessage_ != null && - askKickDeniedMessage_ != de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance()) { - askKickDeniedMessage_ = - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder(askKickDeniedMessage_).mergeFrom(value).buildPartial(); - } else { - askKickDeniedMessage_ = value; - } - bitField1_ |= 0x01000000; - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - private void clearAskKickDeniedMessage() { askKickDeniedMessage_ = null; - bitField1_ = (bitField1_ & ~0x01000000); - } - + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; public static final int STARTKICKPETITIONMESSAGE_FIELD_NUMBER = 58; private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage startKickPetitionMessage_; - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - @java.lang.Override public boolean hasStartKickPetitionMessage() { - return ((bitField1_ & 0x02000000) != 0); + return ((bitField1_ & 0x02000000) == 0x02000000); } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { - return startKickPetitionMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance() : startKickPetitionMessage_; + return startKickPetitionMessage_; } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - private void setStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startKickPetitionMessage_ = value; - bitField1_ |= 0x02000000; - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - private void setStartKickPetitionMessage( - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder builderForValue) { - startKickPetitionMessage_ = builderForValue.build(); - bitField1_ |= 0x02000000; - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (startKickPetitionMessage_ != null && - startKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance()) { - startKickPetitionMessage_ = - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder(startKickPetitionMessage_).mergeFrom(value).buildPartial(); - } else { - startKickPetitionMessage_ = value; - } - bitField1_ |= 0x02000000; - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - private void clearStartKickPetitionMessage() { startKickPetitionMessage_ = null; - bitField1_ = (bitField1_ & ~0x02000000); - } - + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; public static final int VOTEKICKREQUESTMESSAGE_FIELD_NUMBER = 59; private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage voteKickRequestMessage_; - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - @java.lang.Override public boolean hasVoteKickRequestMessage() { - return ((bitField1_ & 0x04000000) != 0); + return ((bitField1_ & 0x04000000) == 0x04000000); } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { - return voteKickRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance() : voteKickRequestMessage_; + return voteKickRequestMessage_; } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - private void setVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - voteKickRequestMessage_ = value; - bitField1_ |= 0x04000000; - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - private void setVoteKickRequestMessage( - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder builderForValue) { - voteKickRequestMessage_ = builderForValue.build(); - bitField1_ |= 0x04000000; - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (voteKickRequestMessage_ != null && - voteKickRequestMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance()) { - voteKickRequestMessage_ = - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder(voteKickRequestMessage_).mergeFrom(value).buildPartial(); - } else { - voteKickRequestMessage_ = value; - } - bitField1_ |= 0x04000000; - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - private void clearVoteKickRequestMessage() { voteKickRequestMessage_ = null; - bitField1_ = (bitField1_ & ~0x04000000); - } - + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; public static final int VOTEKICKREPLYMESSAGE_FIELD_NUMBER = 60; private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage voteKickReplyMessage_; - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - @java.lang.Override public boolean hasVoteKickReplyMessage() { - return ((bitField1_ & 0x08000000) != 0); + return ((bitField1_ & 0x08000000) == 0x08000000); } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { - return voteKickReplyMessage_ == null ? de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance() : voteKickReplyMessage_; + return voteKickReplyMessage_; } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - private void setVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - voteKickReplyMessage_ = value; - bitField1_ |= 0x08000000; - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - private void setVoteKickReplyMessage( - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder builderForValue) { - voteKickReplyMessage_ = builderForValue.build(); - bitField1_ |= 0x08000000; - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (voteKickReplyMessage_ != null && - voteKickReplyMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance()) { - voteKickReplyMessage_ = - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder(voteKickReplyMessage_).mergeFrom(value).buildPartial(); - } else { - voteKickReplyMessage_ = value; - } - bitField1_ |= 0x08000000; - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - private void clearVoteKickReplyMessage() { voteKickReplyMessage_ = null; - bitField1_ = (bitField1_ & ~0x08000000); - } - + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; public static final int KICKPETITIONUPDATEMESSAGE_FIELD_NUMBER = 61; private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage kickPetitionUpdateMessage_; - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - @java.lang.Override public boolean hasKickPetitionUpdateMessage() { - return ((bitField1_ & 0x10000000) != 0); + return ((bitField1_ & 0x10000000) == 0x10000000); } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { - return kickPetitionUpdateMessage_ == null ? de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance() : kickPetitionUpdateMessage_; + return kickPetitionUpdateMessage_; } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - private void setKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - kickPetitionUpdateMessage_ = value; - bitField1_ |= 0x10000000; - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - private void setKickPetitionUpdateMessage( - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder builderForValue) { - kickPetitionUpdateMessage_ = builderForValue.build(); - bitField1_ |= 0x10000000; - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (kickPetitionUpdateMessage_ != null && - kickPetitionUpdateMessage_ != de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance()) { - kickPetitionUpdateMessage_ = - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder(kickPetitionUpdateMessage_).mergeFrom(value).buildPartial(); - } else { - kickPetitionUpdateMessage_ = value; - } - bitField1_ |= 0x10000000; - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - private void clearKickPetitionUpdateMessage() { kickPetitionUpdateMessage_ = null; - bitField1_ = (bitField1_ & ~0x10000000); - } - + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; public static final int ENDKICKPETITIONMESSAGE_FIELD_NUMBER = 62; private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage endKickPetitionMessage_; - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - @java.lang.Override public boolean hasEndKickPetitionMessage() { - return ((bitField1_ & 0x20000000) != 0); + return ((bitField1_ & 0x20000000) == 0x20000000); } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { - return endKickPetitionMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance() : endKickPetitionMessage_; + return endKickPetitionMessage_; } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - private void setEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endKickPetitionMessage_ = value; - bitField1_ |= 0x20000000; - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - private void setEndKickPetitionMessage( - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder builderForValue) { - endKickPetitionMessage_ = builderForValue.build(); - bitField1_ |= 0x20000000; - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (endKickPetitionMessage_ != null && - endKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance()) { - endKickPetitionMessage_ = - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder(endKickPetitionMessage_).mergeFrom(value).buildPartial(); - } else { - endKickPetitionMessage_ = value; - } - bitField1_ |= 0x20000000; - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - private void clearEndKickPetitionMessage() { endKickPetitionMessage_ = null; - bitField1_ = (bitField1_ & ~0x20000000); - } - + + // optional .StatisticsMessage statisticsMessage = 63; public static final int STATISTICSMESSAGE_FIELD_NUMBER = 63; private de.pokerth.protocol.ProtoBuf.StatisticsMessage statisticsMessage_; - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - @java.lang.Override public boolean hasStatisticsMessage() { - return ((bitField1_ & 0x40000000) != 0); + return ((bitField1_ & 0x40000000) == 0x40000000); } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { - return statisticsMessage_ == null ? de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance() : statisticsMessage_; + return statisticsMessage_; } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - private void setStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - statisticsMessage_ = value; - bitField1_ |= 0x40000000; - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - private void setStatisticsMessage( - de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder builderForValue) { - statisticsMessage_ = builderForValue.build(); - bitField1_ |= 0x40000000; - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (statisticsMessage_ != null && - statisticsMessage_ != de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance()) { - statisticsMessage_ = - de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder(statisticsMessage_).mergeFrom(value).buildPartial(); - } else { - statisticsMessage_ = value; - } - bitField1_ |= 0x40000000; - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - private void clearStatisticsMessage() { statisticsMessage_ = null; - bitField1_ = (bitField1_ & ~0x40000000); - } - + + // optional .ChatRequestMessage chatRequestMessage = 64; public static final int CHATREQUESTMESSAGE_FIELD_NUMBER = 64; private de.pokerth.protocol.ProtoBuf.ChatRequestMessage chatRequestMessage_; - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - @java.lang.Override public boolean hasChatRequestMessage() { - return ((bitField1_ & 0x80000000) != 0); + return ((bitField1_ & 0x80000000) == 0x80000000); } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { - return chatRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance() : chatRequestMessage_; + return chatRequestMessage_; } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - private void setChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatRequestMessage_ = value; - bitField1_ |= 0x80000000; - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - private void setChatRequestMessage( - de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder builderForValue) { - chatRequestMessage_ = builderForValue.build(); - bitField1_ |= 0x80000000; - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (chatRequestMessage_ != null && - chatRequestMessage_ != de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance()) { - chatRequestMessage_ = - de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder(chatRequestMessage_).mergeFrom(value).buildPartial(); - } else { - chatRequestMessage_ = value; - } - bitField1_ |= 0x80000000; - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - private void clearChatRequestMessage() { chatRequestMessage_ = null; - bitField1_ = (bitField1_ & ~0x80000000); - } - + + // optional .ChatMessage chatMessage = 65; public static final int CHATMESSAGE_FIELD_NUMBER = 65; private de.pokerth.protocol.ProtoBuf.ChatMessage chatMessage_; - /** - * optional .ChatMessage chatMessage = 65; - */ - @java.lang.Override public boolean hasChatMessage() { - return ((bitField2_ & 0x00000001) != 0); + return ((bitField2_ & 0x00000001) == 0x00000001); } - /** - * optional .ChatMessage chatMessage = 65; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { - return chatMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance() : chatMessage_; + return chatMessage_; } - /** - * optional .ChatMessage chatMessage = 65; - */ - private void setChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatMessage_ = value; - bitField2_ |= 0x00000001; - } - /** - * optional .ChatMessage chatMessage = 65; - */ - private void setChatMessage( - de.pokerth.protocol.ProtoBuf.ChatMessage.Builder builderForValue) { - chatMessage_ = builderForValue.build(); - bitField2_ |= 0x00000001; - } - /** - * optional .ChatMessage chatMessage = 65; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (chatMessage_ != null && - chatMessage_ != de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance()) { - chatMessage_ = - de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder(chatMessage_).mergeFrom(value).buildPartial(); - } else { - chatMessage_ = value; - } - bitField2_ |= 0x00000001; - } - /** - * optional .ChatMessage chatMessage = 65; - */ - private void clearChatMessage() { chatMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000001); - } - + + // optional .ChatRejectMessage chatRejectMessage = 66; public static final int CHATREJECTMESSAGE_FIELD_NUMBER = 66; private de.pokerth.protocol.ProtoBuf.ChatRejectMessage chatRejectMessage_; - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - @java.lang.Override public boolean hasChatRejectMessage() { - return ((bitField2_ & 0x00000002) != 0); + return ((bitField2_ & 0x00000002) == 0x00000002); } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { - return chatRejectMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance() : chatRejectMessage_; + return chatRejectMessage_; } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - private void setChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatRejectMessage_ = value; - bitField2_ |= 0x00000002; - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - private void setChatRejectMessage( - de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder builderForValue) { - chatRejectMessage_ = builderForValue.build(); - bitField2_ |= 0x00000002; - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (chatRejectMessage_ != null && - chatRejectMessage_ != de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance()) { - chatRejectMessage_ = - de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder(chatRejectMessage_).mergeFrom(value).buildPartial(); - } else { - chatRejectMessage_ = value; - } - bitField2_ |= 0x00000002; - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - private void clearChatRejectMessage() { chatRejectMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000002); - } - + + // optional .DialogMessage dialogMessage = 67; public static final int DIALOGMESSAGE_FIELD_NUMBER = 67; private de.pokerth.protocol.ProtoBuf.DialogMessage dialogMessage_; - /** - * optional .DialogMessage dialogMessage = 67; - */ - @java.lang.Override public boolean hasDialogMessage() { - return ((bitField2_ & 0x00000004) != 0); + return ((bitField2_ & 0x00000004) == 0x00000004); } - /** - * optional .DialogMessage dialogMessage = 67; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { - return dialogMessage_ == null ? de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance() : dialogMessage_; + return dialogMessage_; } - /** - * optional .DialogMessage dialogMessage = 67; - */ - private void setDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dialogMessage_ = value; - bitField2_ |= 0x00000004; - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - private void setDialogMessage( - de.pokerth.protocol.ProtoBuf.DialogMessage.Builder builderForValue) { - dialogMessage_ = builderForValue.build(); - bitField2_ |= 0x00000004; - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (dialogMessage_ != null && - dialogMessage_ != de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance()) { - dialogMessage_ = - de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder(dialogMessage_).mergeFrom(value).buildPartial(); - } else { - dialogMessage_ = value; - } - bitField2_ |= 0x00000004; - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - private void clearDialogMessage() { dialogMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000004); - } - + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; public static final int TIMEOUTWARNINGMESSAGE_FIELD_NUMBER = 68; private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage timeoutWarningMessage_; - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - @java.lang.Override public boolean hasTimeoutWarningMessage() { - return ((bitField2_ & 0x00000008) != 0); + return ((bitField2_ & 0x00000008) == 0x00000008); } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { - return timeoutWarningMessage_ == null ? de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance() : timeoutWarningMessage_; + return timeoutWarningMessage_; } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - private void setTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - if (value == null) { - throw new NullPointerException(); - } - timeoutWarningMessage_ = value; - bitField2_ |= 0x00000008; - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - private void setTimeoutWarningMessage( - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder builderForValue) { - timeoutWarningMessage_ = builderForValue.build(); - bitField2_ |= 0x00000008; - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (timeoutWarningMessage_ != null && - timeoutWarningMessage_ != de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance()) { - timeoutWarningMessage_ = - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder(timeoutWarningMessage_).mergeFrom(value).buildPartial(); - } else { - timeoutWarningMessage_ = value; - } - bitField2_ |= 0x00000008; - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - private void clearTimeoutWarningMessage() { timeoutWarningMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000008); - } - + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; public static final int RESETTIMEOUTMESSAGE_FIELD_NUMBER = 69; private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage resetTimeoutMessage_; - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - @java.lang.Override public boolean hasResetTimeoutMessage() { - return ((bitField2_ & 0x00000010) != 0); + return ((bitField2_ & 0x00000010) == 0x00000010); } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { - return resetTimeoutMessage_ == null ? de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance() : resetTimeoutMessage_; + return resetTimeoutMessage_; } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - private void setResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - if (value == null) { - throw new NullPointerException(); - } - resetTimeoutMessage_ = value; - bitField2_ |= 0x00000010; - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - private void setResetTimeoutMessage( - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder builderForValue) { - resetTimeoutMessage_ = builderForValue.build(); - bitField2_ |= 0x00000010; - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (resetTimeoutMessage_ != null && - resetTimeoutMessage_ != de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance()) { - resetTimeoutMessage_ = - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder(resetTimeoutMessage_).mergeFrom(value).buildPartial(); - } else { - resetTimeoutMessage_ = value; - } - bitField2_ |= 0x00000010; - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - private void clearResetTimeoutMessage() { resetTimeoutMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000010); - } - + + // optional .ReportAvatarMessage reportAvatarMessage = 70; public static final int REPORTAVATARMESSAGE_FIELD_NUMBER = 70; private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage reportAvatarMessage_; - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - @java.lang.Override public boolean hasReportAvatarMessage() { - return ((bitField2_ & 0x00000020) != 0); + return ((bitField2_ & 0x00000020) == 0x00000020); } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { - return reportAvatarMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance() : reportAvatarMessage_; + return reportAvatarMessage_; } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - private void setReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportAvatarMessage_ = value; - bitField2_ |= 0x00000020; - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - private void setReportAvatarMessage( - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder builderForValue) { - reportAvatarMessage_ = builderForValue.build(); - bitField2_ |= 0x00000020; - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (reportAvatarMessage_ != null && - reportAvatarMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance()) { - reportAvatarMessage_ = - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder(reportAvatarMessage_).mergeFrom(value).buildPartial(); - } else { - reportAvatarMessage_ = value; - } - bitField2_ |= 0x00000020; - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - private void clearReportAvatarMessage() { reportAvatarMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000020); - } - + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; public static final int REPORTAVATARACKMESSAGE_FIELD_NUMBER = 71; private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage reportAvatarAckMessage_; - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - @java.lang.Override public boolean hasReportAvatarAckMessage() { - return ((bitField2_ & 0x00000040) != 0); + return ((bitField2_ & 0x00000040) == 0x00000040); } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { - return reportAvatarAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance() : reportAvatarAckMessage_; + return reportAvatarAckMessage_; } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - private void setReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportAvatarAckMessage_ = value; - bitField2_ |= 0x00000040; - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - private void setReportAvatarAckMessage( - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder builderForValue) { - reportAvatarAckMessage_ = builderForValue.build(); - bitField2_ |= 0x00000040; - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (reportAvatarAckMessage_ != null && - reportAvatarAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance()) { - reportAvatarAckMessage_ = - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder(reportAvatarAckMessage_).mergeFrom(value).buildPartial(); - } else { - reportAvatarAckMessage_ = value; - } - bitField2_ |= 0x00000040; - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - private void clearReportAvatarAckMessage() { reportAvatarAckMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000040); - } - + + // optional .ReportGameMessage reportGameMessage = 72; public static final int REPORTGAMEMESSAGE_FIELD_NUMBER = 72; private de.pokerth.protocol.ProtoBuf.ReportGameMessage reportGameMessage_; - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - @java.lang.Override public boolean hasReportGameMessage() { - return ((bitField2_ & 0x00000080) != 0); + return ((bitField2_ & 0x00000080) == 0x00000080); } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { - return reportGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance() : reportGameMessage_; + return reportGameMessage_; } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - private void setReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportGameMessage_ = value; - bitField2_ |= 0x00000080; - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - private void setReportGameMessage( - de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder builderForValue) { - reportGameMessage_ = builderForValue.build(); - bitField2_ |= 0x00000080; - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (reportGameMessage_ != null && - reportGameMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance()) { - reportGameMessage_ = - de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder(reportGameMessage_).mergeFrom(value).buildPartial(); - } else { - reportGameMessage_ = value; - } - bitField2_ |= 0x00000080; - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - private void clearReportGameMessage() { reportGameMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000080); - } - + + // optional .ReportGameAckMessage reportGameAckMessage = 73; public static final int REPORTGAMEACKMESSAGE_FIELD_NUMBER = 73; private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage reportGameAckMessage_; - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - @java.lang.Override public boolean hasReportGameAckMessage() { - return ((bitField2_ & 0x00000100) != 0); + return ((bitField2_ & 0x00000100) == 0x00000100); } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { - return reportGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance() : reportGameAckMessage_; + return reportGameAckMessage_; } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - private void setReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportGameAckMessage_ = value; - bitField2_ |= 0x00000100; - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - private void setReportGameAckMessage( - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder builderForValue) { - reportGameAckMessage_ = builderForValue.build(); - bitField2_ |= 0x00000100; - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (reportGameAckMessage_ != null && - reportGameAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance()) { - reportGameAckMessage_ = - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder(reportGameAckMessage_).mergeFrom(value).buildPartial(); - } else { - reportGameAckMessage_ = value; - } - bitField2_ |= 0x00000100; - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - private void clearReportGameAckMessage() { reportGameAckMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000100); - } - + + // optional .ErrorMessage errorMessage = 74; public static final int ERRORMESSAGE_FIELD_NUMBER = 74; private de.pokerth.protocol.ProtoBuf.ErrorMessage errorMessage_; - /** - * optional .ErrorMessage errorMessage = 74; - */ - @java.lang.Override public boolean hasErrorMessage() { - return ((bitField2_ & 0x00000200) != 0); + return ((bitField2_ & 0x00000200) == 0x00000200); } - /** - * optional .ErrorMessage errorMessage = 74; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { - return errorMessage_ == null ? de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance() : errorMessage_; + return errorMessage_; } - /** - * optional .ErrorMessage errorMessage = 74; - */ - private void setErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - if (value == null) { - throw new NullPointerException(); - } - errorMessage_ = value; - bitField2_ |= 0x00000200; - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - private void setErrorMessage( - de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder builderForValue) { - errorMessage_ = builderForValue.build(); - bitField2_ |= 0x00000200; - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (errorMessage_ != null && - errorMessage_ != de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance()) { - errorMessage_ = - de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder(errorMessage_).mergeFrom(value).buildPartial(); - } else { - errorMessage_ = value; - } - bitField2_ |= 0x00000200; - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - private void clearErrorMessage() { errorMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000200); - } - + + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; public static final int ADMINREMOVEGAMEMESSAGE_FIELD_NUMBER = 75; private de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage adminRemoveGameMessage_; - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - @java.lang.Override public boolean hasAdminRemoveGameMessage() { - return ((bitField2_ & 0x00000400) != 0); + return ((bitField2_ & 0x00000400) == 0x00000400); } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage() { - return adminRemoveGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance() : adminRemoveGameMessage_; + return adminRemoveGameMessage_; } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - private void setAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminRemoveGameMessage_ = value; - bitField2_ |= 0x00000400; - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - private void setAdminRemoveGameMessage( - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.Builder builderForValue) { - adminRemoveGameMessage_ = builderForValue.build(); - bitField2_ |= 0x00000400; - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (adminRemoveGameMessage_ != null && - adminRemoveGameMessage_ != de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance()) { - adminRemoveGameMessage_ = - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.newBuilder(adminRemoveGameMessage_).mergeFrom(value).buildPartial(); - } else { - adminRemoveGameMessage_ = value; - } - bitField2_ |= 0x00000400; - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - private void clearAdminRemoveGameMessage() { adminRemoveGameMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000400); - } - + + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; public static final int ADMINREMOVEGAMEACKMESSAGE_FIELD_NUMBER = 76; private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage adminRemoveGameAckMessage_; - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - @java.lang.Override public boolean hasAdminRemoveGameAckMessage() { - return ((bitField2_ & 0x00000800) != 0); + return ((bitField2_ & 0x00000800) == 0x00000800); } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage() { - return adminRemoveGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance() : adminRemoveGameAckMessage_; + return adminRemoveGameAckMessage_; } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - private void setAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminRemoveGameAckMessage_ = value; - bitField2_ |= 0x00000800; - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - private void setAdminRemoveGameAckMessage( - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.Builder builderForValue) { - adminRemoveGameAckMessage_ = builderForValue.build(); - bitField2_ |= 0x00000800; - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (adminRemoveGameAckMessage_ != null && - adminRemoveGameAckMessage_ != de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance()) { - adminRemoveGameAckMessage_ = - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.newBuilder(adminRemoveGameAckMessage_).mergeFrom(value).buildPartial(); - } else { - adminRemoveGameAckMessage_ = value; - } - bitField2_ |= 0x00000800; - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - private void clearAdminRemoveGameAckMessage() { adminRemoveGameAckMessage_ = null; - bitField2_ = (bitField2_ & ~0x00000800); - } - + + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; public static final int ADMINBANPLAYERMESSAGE_FIELD_NUMBER = 77; private de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage adminBanPlayerMessage_; - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - @java.lang.Override public boolean hasAdminBanPlayerMessage() { - return ((bitField2_ & 0x00001000) != 0); + return ((bitField2_ & 0x00001000) == 0x00001000); } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage() { - return adminBanPlayerMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance() : adminBanPlayerMessage_; + return adminBanPlayerMessage_; } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - private void setAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminBanPlayerMessage_ = value; - bitField2_ |= 0x00001000; - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - private void setAdminBanPlayerMessage( - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.Builder builderForValue) { - adminBanPlayerMessage_ = builderForValue.build(); - bitField2_ |= 0x00001000; - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (adminBanPlayerMessage_ != null && - adminBanPlayerMessage_ != de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance()) { - adminBanPlayerMessage_ = - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.newBuilder(adminBanPlayerMessage_).mergeFrom(value).buildPartial(); - } else { - adminBanPlayerMessage_ = value; - } - bitField2_ |= 0x00001000; - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - private void clearAdminBanPlayerMessage() { adminBanPlayerMessage_ = null; - bitField2_ = (bitField2_ & ~0x00001000); - } - + + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; public static final int ADMINBANPLAYERACKMESSAGE_FIELD_NUMBER = 78; private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage adminBanPlayerAckMessage_; - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - @java.lang.Override public boolean hasAdminBanPlayerAckMessage() { - return ((bitField2_ & 0x00002000) != 0); + return ((bitField2_ & 0x00002000) == 0x00002000); } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage() { - return adminBanPlayerAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance() : adminBanPlayerAckMessage_; + return adminBanPlayerAckMessage_; } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - private void setAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminBanPlayerAckMessage_ = value; - bitField2_ |= 0x00002000; - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - private void setAdminBanPlayerAckMessage( - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.Builder builderForValue) { - adminBanPlayerAckMessage_ = builderForValue.build(); - bitField2_ |= 0x00002000; - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (adminBanPlayerAckMessage_ != null && - adminBanPlayerAckMessage_ != de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance()) { - adminBanPlayerAckMessage_ = - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.newBuilder(adminBanPlayerAckMessage_).mergeFrom(value).buildPartial(); - } else { - adminBanPlayerAckMessage_ = value; - } - bitField2_ |= 0x00002000; - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - private void clearAdminBanPlayerAckMessage() { adminBanPlayerAckMessage_ = null; - bitField2_ = (bitField2_ & ~0x00002000); - } - + + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; public static final int GAMELISTSPECTATORJOINEDMESSAGE_FIELD_NUMBER = 79; private de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage_; - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - @java.lang.Override public boolean hasGameListSpectatorJoinedMessage() { - return ((bitField2_ & 0x00004000) != 0); + return ((bitField2_ & 0x00004000) == 0x00004000); } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage() { - return gameListSpectatorJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance() : gameListSpectatorJoinedMessage_; + return gameListSpectatorJoinedMessage_; } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - private void setGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListSpectatorJoinedMessage_ = value; - bitField2_ |= 0x00004000; - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - private void setGameListSpectatorJoinedMessage( - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.Builder builderForValue) { - gameListSpectatorJoinedMessage_ = builderForValue.build(); - bitField2_ |= 0x00004000; - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListSpectatorJoinedMessage_ != null && - gameListSpectatorJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance()) { - gameListSpectatorJoinedMessage_ = - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.newBuilder(gameListSpectatorJoinedMessage_).mergeFrom(value).buildPartial(); - } else { - gameListSpectatorJoinedMessage_ = value; - } - bitField2_ |= 0x00004000; - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - private void clearGameListSpectatorJoinedMessage() { gameListSpectatorJoinedMessage_ = null; - bitField2_ = (bitField2_ & ~0x00004000); - } - + + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; public static final int GAMELISTSPECTATORLEFTMESSAGE_FIELD_NUMBER = 80; private de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage gameListSpectatorLeftMessage_; - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - @java.lang.Override public boolean hasGameListSpectatorLeftMessage() { - return ((bitField2_ & 0x00008000) != 0); + return ((bitField2_ & 0x00008000) == 0x00008000); } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage() { - return gameListSpectatorLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance() : gameListSpectatorLeftMessage_; + return gameListSpectatorLeftMessage_; } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - private void setGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListSpectatorLeftMessage_ = value; - bitField2_ |= 0x00008000; - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - private void setGameListSpectatorLeftMessage( - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.Builder builderForValue) { - gameListSpectatorLeftMessage_ = builderForValue.build(); - bitField2_ |= 0x00008000; - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameListSpectatorLeftMessage_ != null && - gameListSpectatorLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance()) { - gameListSpectatorLeftMessage_ = - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.newBuilder(gameListSpectatorLeftMessage_).mergeFrom(value).buildPartial(); - } else { - gameListSpectatorLeftMessage_ = value; - } - bitField2_ |= 0x00008000; - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - private void clearGameListSpectatorLeftMessage() { gameListSpectatorLeftMessage_ = null; - bitField2_ = (bitField2_ & ~0x00008000); - } - + + // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; public static final int GAMESPECTATORJOINEDMESSAGE_FIELD_NUMBER = 81; private de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage gameSpectatorJoinedMessage_; - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - @java.lang.Override public boolean hasGameSpectatorJoinedMessage() { - return ((bitField2_ & 0x00010000) != 0); + return ((bitField2_ & 0x00010000) == 0x00010000); } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage() { - return gameSpectatorJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance() : gameSpectatorJoinedMessage_; + return gameSpectatorJoinedMessage_; } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - private void setGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameSpectatorJoinedMessage_ = value; - bitField2_ |= 0x00010000; - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - private void setGameSpectatorJoinedMessage( - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.Builder builderForValue) { - gameSpectatorJoinedMessage_ = builderForValue.build(); - bitField2_ |= 0x00010000; - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - if (gameSpectatorJoinedMessage_ != null && - gameSpectatorJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance()) { - gameSpectatorJoinedMessage_ = - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.newBuilder(gameSpectatorJoinedMessage_).mergeFrom(value).buildPartial(); - } else { - gameSpectatorJoinedMessage_ = value; - } - bitField2_ |= 0x00010000; - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - private void clearGameSpectatorJoinedMessage() { gameSpectatorJoinedMessage_ = null; - bitField2_ = (bitField2_ & ~0x00010000); - } - + + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; public static final int GAMESPECTATORLEFTMESSAGE_FIELD_NUMBER = 82; private de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage gameSpectatorLeftMessage_; - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - @java.lang.Override public boolean hasGameSpectatorLeftMessage() { - return ((bitField2_ & 0x00020000) != 0); + return ((bitField2_ & 0x00020000) == 0x00020000); } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage() { - return gameSpectatorLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance() : gameSpectatorLeftMessage_; + return gameSpectatorLeftMessage_; } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - private void setGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameSpectatorLeftMessage_ = value; - bitField2_ |= 0x00020000; - } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - private void setGameSpectatorLeftMessage( - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.Builder builderForValue) { - gameSpectatorLeftMessage_ = builderForValue.build(); - bitField2_ |= 0x00020000; + + private void initFields() { + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); + adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); + adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); + adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); + gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); + gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); + gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); + gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - @java.lang.SuppressWarnings({"ReferenceEquality"}) - private void mergeGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMessageType()) { + memoizedIsInitialized = 0; + return false; } - if (gameSpectatorLeftMessage_ != null && - gameSpectatorLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance()) { - gameSpectatorLeftMessage_ = - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder(gameSpectatorLeftMessage_).mergeFrom(value).buildPartial(); - } else { - gameSpectatorLeftMessage_ = value; + if (hasAnnounceMessage()) { + if (!getAnnounceMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } } - bitField2_ |= 0x00020000; + if (hasInitMessage()) { + if (!getInitMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthServerChallengeMessage()) { + if (!getAuthServerChallengeMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthClientResponseMessage()) { + if (!getAuthClientResponseMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthServerVerificationMessage()) { + if (!getAuthServerVerificationMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInitAckMessage()) { + if (!getInitAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarRequestMessage()) { + if (!getAvatarRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarHeaderMessage()) { + if (!getAvatarHeaderMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarDataMessage()) { + if (!getAvatarDataMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarEndMessage()) { + if (!getAvatarEndMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUnknownAvatarMessage()) { + if (!getUnknownAvatarMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerListMessage()) { + if (!getPlayerListMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListNewMessage()) { + if (!getGameListNewMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListUpdateMessage()) { + if (!getGameListUpdateMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListPlayerJoinedMessage()) { + if (!getGameListPlayerJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListPlayerLeftMessage()) { + if (!getGameListPlayerLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListAdminChangedMessage()) { + if (!getGameListAdminChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerInfoReplyMessage()) { + if (!getPlayerInfoReplyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSubscriptionRequestMessage()) { + if (!getSubscriptionRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinExistingGameMessage()) { + if (!getJoinExistingGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinNewGameMessage()) { + if (!getJoinNewGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejoinExistingGameMessage()) { + if (!getRejoinExistingGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinGameAckMessage()) { + if (!getJoinGameAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinGameFailedMessage()) { + if (!getJoinGameFailedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGamePlayerJoinedMessage()) { + if (!getGamePlayerJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGamePlayerLeftMessage()) { + if (!getGamePlayerLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameAdminChangedMessage()) { + if (!getGameAdminChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRemovedFromGameMessage()) { + if (!getRemovedFromGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasKickPlayerRequestMessage()) { + if (!getKickPlayerRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasLeaveGameRequestMessage()) { + if (!getLeaveGameRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInvitePlayerToGameMessage()) { + if (!getInvitePlayerToGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInviteNotifyMessage()) { + if (!getInviteNotifyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejectGameInvitationMessage()) { + if (!getRejectGameInvitationMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejectInvNotifyMessage()) { + if (!getRejectInvNotifyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartEventMessage()) { + if (!getStartEventMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartEventAckMessage()) { + if (!getStartEventAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameStartInitialMessage()) { + if (!getGameStartInitialMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameStartRejoinMessage()) { + if (!getGameStartRejoinMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasHandStartMessage()) { + if (!getHandStartMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayersTurnMessage()) { + if (!getPlayersTurnMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasMyActionRequestMessage()) { + if (!getMyActionRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasYourActionRejectedMessage()) { + if (!getYourActionRejectedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayersActionDoneMessage()) { + if (!getPlayersActionDoneMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealFlopCardsMessage()) { + if (!getDealFlopCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealTurnCardMessage()) { + if (!getDealTurnCardMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealRiverCardMessage()) { + if (!getDealRiverCardMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAllInShowCardsMessage()) { + if (!getAllInShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfHandShowCardsMessage()) { + if (!getEndOfHandShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfHandHideCardsMessage()) { + if (!getEndOfHandHideCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAfterHandShowCardsMessage()) { + if (!getAfterHandShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfGameMessage()) { + if (!getEndOfGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerIdChangedMessage()) { + if (!getPlayerIdChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAskKickPlayerMessage()) { + if (!getAskKickPlayerMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAskKickDeniedMessage()) { + if (!getAskKickDeniedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartKickPetitionMessage()) { + if (!getStartKickPetitionMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasVoteKickRequestMessage()) { + if (!getVoteKickRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasVoteKickReplyMessage()) { + if (!getVoteKickReplyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasKickPetitionUpdateMessage()) { + if (!getKickPetitionUpdateMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndKickPetitionMessage()) { + if (!getEndKickPetitionMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStatisticsMessage()) { + if (!getStatisticsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatRequestMessage()) { + if (!getChatRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatMessage()) { + if (!getChatMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatRejectMessage()) { + if (!getChatRejectMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDialogMessage()) { + if (!getDialogMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasTimeoutWarningMessage()) { + if (!getTimeoutWarningMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportAvatarMessage()) { + if (!getReportAvatarMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportAvatarAckMessage()) { + if (!getReportAvatarAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportGameMessage()) { + if (!getReportGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportGameAckMessage()) { + if (!getReportGameAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasErrorMessage()) { + if (!getErrorMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAdminRemoveGameMessage()) { + if (!getAdminRemoveGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAdminRemoveGameAckMessage()) { + if (!getAdminRemoveGameAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAdminBanPlayerMessage()) { + if (!getAdminBanPlayerMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAdminBanPlayerAckMessage()) { + if (!getAdminBanPlayerAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListSpectatorJoinedMessage()) { + if (!getGameListSpectatorJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListSpectatorLeftMessage()) { + if (!getGameListSpectatorLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameSpectatorJoinedMessage()) { + if (!getGameSpectatorJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameSpectatorLeftMessage()) { + if (!getGameSpectatorLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - private void clearGameSpectatorLeftMessage() { gameSpectatorLeftMessage_ = null; - bitField2_ = (bitField2_ & ~0x00020000); - } - - @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, messageType_); + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, messageType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getAnnounceMessage()); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, announceMessage_); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getInitMessage()); + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, initMessage_); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getAuthServerChallengeMessage()); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, authServerChallengeMessage_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(5, getAuthClientResponseMessage()); + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, authClientResponseMessage_); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(6, getAuthServerVerificationMessage()); + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, authServerVerificationMessage_); } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(7, getInitAckMessage()); + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(7, initAckMessage_); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(8, getAvatarRequestMessage()); + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(8, avatarRequestMessage_); } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(9, getAvatarHeaderMessage()); + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeMessage(9, avatarHeaderMessage_); } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(10, getAvatarDataMessage()); + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeMessage(10, avatarDataMessage_); } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(11, getAvatarEndMessage()); + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeMessage(11, avatarEndMessage_); } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(12, getUnknownAvatarMessage()); + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeMessage(12, unknownAvatarMessage_); } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(13, getPlayerListMessage()); + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeMessage(13, playerListMessage_); } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(14, getGameListNewMessage()); + if (((bitField0_ & 0x00002000) == 0x00002000)) { + output.writeMessage(14, gameListNewMessage_); } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(15, getGameListUpdateMessage()); + if (((bitField0_ & 0x00004000) == 0x00004000)) { + output.writeMessage(15, gameListUpdateMessage_); } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(16, getGameListPlayerJoinedMessage()); + if (((bitField0_ & 0x00008000) == 0x00008000)) { + output.writeMessage(16, gameListPlayerJoinedMessage_); } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(17, getGameListPlayerLeftMessage()); + if (((bitField0_ & 0x00010000) == 0x00010000)) { + output.writeMessage(17, gameListPlayerLeftMessage_); } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(18, getGameListAdminChangedMessage()); + if (((bitField0_ & 0x00020000) == 0x00020000)) { + output.writeMessage(18, gameListAdminChangedMessage_); } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(19, getPlayerInfoRequestMessage()); + if (((bitField0_ & 0x00040000) == 0x00040000)) { + output.writeMessage(19, playerInfoRequestMessage_); } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeMessage(20, getPlayerInfoReplyMessage()); + if (((bitField0_ & 0x00080000) == 0x00080000)) { + output.writeMessage(20, playerInfoReplyMessage_); } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeMessage(21, getSubscriptionRequestMessage()); + if (((bitField0_ & 0x00100000) == 0x00100000)) { + output.writeMessage(21, subscriptionRequestMessage_); } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeMessage(22, getJoinExistingGameMessage()); + if (((bitField0_ & 0x00200000) == 0x00200000)) { + output.writeMessage(22, joinExistingGameMessage_); } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(23, getJoinNewGameMessage()); + if (((bitField0_ & 0x00400000) == 0x00400000)) { + output.writeMessage(23, joinNewGameMessage_); } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(24, getRejoinExistingGameMessage()); + if (((bitField0_ & 0x00800000) == 0x00800000)) { + output.writeMessage(24, rejoinExistingGameMessage_); } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeMessage(25, getJoinGameAckMessage()); + if (((bitField0_ & 0x01000000) == 0x01000000)) { + output.writeMessage(25, joinGameAckMessage_); } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeMessage(26, getJoinGameFailedMessage()); + if (((bitField0_ & 0x02000000) == 0x02000000)) { + output.writeMessage(26, joinGameFailedMessage_); } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeMessage(27, getGamePlayerJoinedMessage()); + if (((bitField0_ & 0x04000000) == 0x04000000)) { + output.writeMessage(27, gamePlayerJoinedMessage_); } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeMessage(28, getGamePlayerLeftMessage()); + if (((bitField0_ & 0x08000000) == 0x08000000)) { + output.writeMessage(28, gamePlayerLeftMessage_); } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeMessage(29, getGameAdminChangedMessage()); + if (((bitField0_ & 0x10000000) == 0x10000000)) { + output.writeMessage(29, gameAdminChangedMessage_); } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeMessage(30, getRemovedFromGameMessage()); + if (((bitField0_ & 0x20000000) == 0x20000000)) { + output.writeMessage(30, removedFromGameMessage_); } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeMessage(31, getKickPlayerRequestMessage()); + if (((bitField0_ & 0x40000000) == 0x40000000)) { + output.writeMessage(31, kickPlayerRequestMessage_); } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeMessage(32, getLeaveGameRequestMessage()); + if (((bitField0_ & 0x80000000) == 0x80000000)) { + output.writeMessage(32, leaveGameRequestMessage_); } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeMessage(33, getInvitePlayerToGameMessage()); + if (((bitField1_ & 0x00000001) == 0x00000001)) { + output.writeMessage(33, invitePlayerToGameMessage_); } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(34, getInviteNotifyMessage()); + if (((bitField1_ & 0x00000002) == 0x00000002)) { + output.writeMessage(34, inviteNotifyMessage_); } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeMessage(35, getRejectGameInvitationMessage()); + if (((bitField1_ & 0x00000004) == 0x00000004)) { + output.writeMessage(35, rejectGameInvitationMessage_); } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeMessage(36, getRejectInvNotifyMessage()); + if (((bitField1_ & 0x00000008) == 0x00000008)) { + output.writeMessage(36, rejectInvNotifyMessage_); } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeMessage(37, getStartEventMessage()); + if (((bitField1_ & 0x00000010) == 0x00000010)) { + output.writeMessage(37, startEventMessage_); } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeMessage(38, getStartEventAckMessage()); + if (((bitField1_ & 0x00000020) == 0x00000020)) { + output.writeMessage(38, startEventAckMessage_); } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeMessage(39, getGameStartInitialMessage()); + if (((bitField1_ & 0x00000040) == 0x00000040)) { + output.writeMessage(39, gameStartInitialMessage_); } - if (((bitField1_ & 0x00000080) != 0)) { - output.writeMessage(40, getGameStartRejoinMessage()); + if (((bitField1_ & 0x00000080) == 0x00000080)) { + output.writeMessage(40, gameStartRejoinMessage_); } - if (((bitField1_ & 0x00000100) != 0)) { - output.writeMessage(41, getHandStartMessage()); + if (((bitField1_ & 0x00000100) == 0x00000100)) { + output.writeMessage(41, handStartMessage_); } - if (((bitField1_ & 0x00000200) != 0)) { - output.writeMessage(42, getPlayersTurnMessage()); + if (((bitField1_ & 0x00000200) == 0x00000200)) { + output.writeMessage(42, playersTurnMessage_); } - if (((bitField1_ & 0x00000400) != 0)) { - output.writeMessage(43, getMyActionRequestMessage()); + if (((bitField1_ & 0x00000400) == 0x00000400)) { + output.writeMessage(43, myActionRequestMessage_); } - if (((bitField1_ & 0x00000800) != 0)) { - output.writeMessage(44, getYourActionRejectedMessage()); + if (((bitField1_ & 0x00000800) == 0x00000800)) { + output.writeMessage(44, yourActionRejectedMessage_); } - if (((bitField1_ & 0x00001000) != 0)) { - output.writeMessage(45, getPlayersActionDoneMessage()); + if (((bitField1_ & 0x00001000) == 0x00001000)) { + output.writeMessage(45, playersActionDoneMessage_); } - if (((bitField1_ & 0x00002000) != 0)) { - output.writeMessage(46, getDealFlopCardsMessage()); + if (((bitField1_ & 0x00002000) == 0x00002000)) { + output.writeMessage(46, dealFlopCardsMessage_); } - if (((bitField1_ & 0x00004000) != 0)) { - output.writeMessage(47, getDealTurnCardMessage()); + if (((bitField1_ & 0x00004000) == 0x00004000)) { + output.writeMessage(47, dealTurnCardMessage_); } - if (((bitField1_ & 0x00008000) != 0)) { - output.writeMessage(48, getDealRiverCardMessage()); + if (((bitField1_ & 0x00008000) == 0x00008000)) { + output.writeMessage(48, dealRiverCardMessage_); } - if (((bitField1_ & 0x00010000) != 0)) { - output.writeMessage(49, getAllInShowCardsMessage()); + if (((bitField1_ & 0x00010000) == 0x00010000)) { + output.writeMessage(49, allInShowCardsMessage_); } - if (((bitField1_ & 0x00020000) != 0)) { - output.writeMessage(50, getEndOfHandShowCardsMessage()); + if (((bitField1_ & 0x00020000) == 0x00020000)) { + output.writeMessage(50, endOfHandShowCardsMessage_); } - if (((bitField1_ & 0x00040000) != 0)) { - output.writeMessage(51, getEndOfHandHideCardsMessage()); + if (((bitField1_ & 0x00040000) == 0x00040000)) { + output.writeMessage(51, endOfHandHideCardsMessage_); } - if (((bitField1_ & 0x00080000) != 0)) { - output.writeMessage(52, getShowMyCardsRequestMessage()); + if (((bitField1_ & 0x00080000) == 0x00080000)) { + output.writeMessage(52, showMyCardsRequestMessage_); } - if (((bitField1_ & 0x00100000) != 0)) { - output.writeMessage(53, getAfterHandShowCardsMessage()); + if (((bitField1_ & 0x00100000) == 0x00100000)) { + output.writeMessage(53, afterHandShowCardsMessage_); } - if (((bitField1_ & 0x00200000) != 0)) { - output.writeMessage(54, getEndOfGameMessage()); + if (((bitField1_ & 0x00200000) == 0x00200000)) { + output.writeMessage(54, endOfGameMessage_); } - if (((bitField1_ & 0x00400000) != 0)) { - output.writeMessage(55, getPlayerIdChangedMessage()); + if (((bitField1_ & 0x00400000) == 0x00400000)) { + output.writeMessage(55, playerIdChangedMessage_); } - if (((bitField1_ & 0x00800000) != 0)) { - output.writeMessage(56, getAskKickPlayerMessage()); + if (((bitField1_ & 0x00800000) == 0x00800000)) { + output.writeMessage(56, askKickPlayerMessage_); } - if (((bitField1_ & 0x01000000) != 0)) { - output.writeMessage(57, getAskKickDeniedMessage()); + if (((bitField1_ & 0x01000000) == 0x01000000)) { + output.writeMessage(57, askKickDeniedMessage_); } - if (((bitField1_ & 0x02000000) != 0)) { - output.writeMessage(58, getStartKickPetitionMessage()); + if (((bitField1_ & 0x02000000) == 0x02000000)) { + output.writeMessage(58, startKickPetitionMessage_); } - if (((bitField1_ & 0x04000000) != 0)) { - output.writeMessage(59, getVoteKickRequestMessage()); + if (((bitField1_ & 0x04000000) == 0x04000000)) { + output.writeMessage(59, voteKickRequestMessage_); } - if (((bitField1_ & 0x08000000) != 0)) { - output.writeMessage(60, getVoteKickReplyMessage()); + if (((bitField1_ & 0x08000000) == 0x08000000)) { + output.writeMessage(60, voteKickReplyMessage_); } - if (((bitField1_ & 0x10000000) != 0)) { - output.writeMessage(61, getKickPetitionUpdateMessage()); + if (((bitField1_ & 0x10000000) == 0x10000000)) { + output.writeMessage(61, kickPetitionUpdateMessage_); } - if (((bitField1_ & 0x20000000) != 0)) { - output.writeMessage(62, getEndKickPetitionMessage()); + if (((bitField1_ & 0x20000000) == 0x20000000)) { + output.writeMessage(62, endKickPetitionMessage_); } - if (((bitField1_ & 0x40000000) != 0)) { - output.writeMessage(63, getStatisticsMessage()); + if (((bitField1_ & 0x40000000) == 0x40000000)) { + output.writeMessage(63, statisticsMessage_); } - if (((bitField1_ & 0x80000000) != 0)) { - output.writeMessage(64, getChatRequestMessage()); + if (((bitField1_ & 0x80000000) == 0x80000000)) { + output.writeMessage(64, chatRequestMessage_); } - if (((bitField2_ & 0x00000001) != 0)) { - output.writeMessage(65, getChatMessage()); + if (((bitField2_ & 0x00000001) == 0x00000001)) { + output.writeMessage(65, chatMessage_); } - if (((bitField2_ & 0x00000002) != 0)) { - output.writeMessage(66, getChatRejectMessage()); + if (((bitField2_ & 0x00000002) == 0x00000002)) { + output.writeMessage(66, chatRejectMessage_); } - if (((bitField2_ & 0x00000004) != 0)) { - output.writeMessage(67, getDialogMessage()); + if (((bitField2_ & 0x00000004) == 0x00000004)) { + output.writeMessage(67, dialogMessage_); } - if (((bitField2_ & 0x00000008) != 0)) { - output.writeMessage(68, getTimeoutWarningMessage()); + if (((bitField2_ & 0x00000008) == 0x00000008)) { + output.writeMessage(68, timeoutWarningMessage_); } - if (((bitField2_ & 0x00000010) != 0)) { - output.writeMessage(69, getResetTimeoutMessage()); + if (((bitField2_ & 0x00000010) == 0x00000010)) { + output.writeMessage(69, resetTimeoutMessage_); } - if (((bitField2_ & 0x00000020) != 0)) { - output.writeMessage(70, getReportAvatarMessage()); + if (((bitField2_ & 0x00000020) == 0x00000020)) { + output.writeMessage(70, reportAvatarMessage_); } - if (((bitField2_ & 0x00000040) != 0)) { - output.writeMessage(71, getReportAvatarAckMessage()); + if (((bitField2_ & 0x00000040) == 0x00000040)) { + output.writeMessage(71, reportAvatarAckMessage_); } - if (((bitField2_ & 0x00000080) != 0)) { - output.writeMessage(72, getReportGameMessage()); + if (((bitField2_ & 0x00000080) == 0x00000080)) { + output.writeMessage(72, reportGameMessage_); } - if (((bitField2_ & 0x00000100) != 0)) { - output.writeMessage(73, getReportGameAckMessage()); + if (((bitField2_ & 0x00000100) == 0x00000100)) { + output.writeMessage(73, reportGameAckMessage_); } - if (((bitField2_ & 0x00000200) != 0)) { - output.writeMessage(74, getErrorMessage()); + if (((bitField2_ & 0x00000200) == 0x00000200)) { + output.writeMessage(74, errorMessage_); } - if (((bitField2_ & 0x00000400) != 0)) { - output.writeMessage(75, getAdminRemoveGameMessage()); + if (((bitField2_ & 0x00000400) == 0x00000400)) { + output.writeMessage(75, adminRemoveGameMessage_); } - if (((bitField2_ & 0x00000800) != 0)) { - output.writeMessage(76, getAdminRemoveGameAckMessage()); + if (((bitField2_ & 0x00000800) == 0x00000800)) { + output.writeMessage(76, adminRemoveGameAckMessage_); } - if (((bitField2_ & 0x00001000) != 0)) { - output.writeMessage(77, getAdminBanPlayerMessage()); + if (((bitField2_ & 0x00001000) == 0x00001000)) { + output.writeMessage(77, adminBanPlayerMessage_); } - if (((bitField2_ & 0x00002000) != 0)) { - output.writeMessage(78, getAdminBanPlayerAckMessage()); + if (((bitField2_ & 0x00002000) == 0x00002000)) { + output.writeMessage(78, adminBanPlayerAckMessage_); } - if (((bitField2_ & 0x00004000) != 0)) { - output.writeMessage(79, getGameListSpectatorJoinedMessage()); + if (((bitField2_ & 0x00004000) == 0x00004000)) { + output.writeMessage(79, gameListSpectatorJoinedMessage_); } - if (((bitField2_ & 0x00008000) != 0)) { - output.writeMessage(80, getGameListSpectatorLeftMessage()); + if (((bitField2_ & 0x00008000) == 0x00008000)) { + output.writeMessage(80, gameListSpectatorLeftMessage_); } - if (((bitField2_ & 0x00010000) != 0)) { - output.writeMessage(81, getGameSpectatorJoinedMessage()); + if (((bitField2_ & 0x00010000) == 0x00010000)) { + output.writeMessage(81, gameSpectatorJoinedMessage_); } - if (((bitField2_ & 0x00020000) != 0)) { - output.writeMessage(82, getGameSpectatorLeftMessage()); + if (((bitField2_ & 0x00020000) == 0x00020000)) { + output.writeMessage(82, gameSpectatorLeftMessage_); } - unknownFields.writeTo(output); } - - @java.lang.Override + + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, messageType_); + .computeEnumSize(1, messageType_.getNumber()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnnounceMessage()); + .computeMessageSize(2, announceMessage_); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInitMessage()); + .computeMessageSize(3, initMessage_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAuthServerChallengeMessage()); + .computeMessageSize(4, authServerChallengeMessage_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthClientResponseMessage()); + .computeMessageSize(5, authClientResponseMessage_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAuthServerVerificationMessage()); + .computeMessageSize(6, authServerVerificationMessage_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getInitAckMessage()); + .computeMessageSize(7, initAckMessage_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAvatarRequestMessage()); + .computeMessageSize(8, avatarRequestMessage_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAvatarHeaderMessage()); + .computeMessageSize(9, avatarHeaderMessage_); } - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getAvatarDataMessage()); + .computeMessageSize(10, avatarDataMessage_); } - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getAvatarEndMessage()); + .computeMessageSize(11, avatarEndMessage_); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getUnknownAvatarMessage()); + .computeMessageSize(12, unknownAvatarMessage_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getPlayerListMessage()); + .computeMessageSize(13, playerListMessage_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getGameListNewMessage()); + .computeMessageSize(14, gameListNewMessage_); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getGameListUpdateMessage()); + .computeMessageSize(15, gameListUpdateMessage_); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getGameListPlayerJoinedMessage()); + .computeMessageSize(16, gameListPlayerJoinedMessage_); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getGameListPlayerLeftMessage()); + .computeMessageSize(17, gameListPlayerLeftMessage_); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getGameListAdminChangedMessage()); + .computeMessageSize(18, gameListAdminChangedMessage_); } - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getPlayerInfoRequestMessage()); + .computeMessageSize(19, playerInfoRequestMessage_); } - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getPlayerInfoReplyMessage()); + .computeMessageSize(20, playerInfoReplyMessage_); } - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getSubscriptionRequestMessage()); + .computeMessageSize(21, subscriptionRequestMessage_); } - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getJoinExistingGameMessage()); + .computeMessageSize(22, joinExistingGameMessage_); } - if (((bitField0_ & 0x00400000) != 0)) { + if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getJoinNewGameMessage()); + .computeMessageSize(23, joinNewGameMessage_); } - if (((bitField0_ & 0x00800000) != 0)) { + if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getRejoinExistingGameMessage()); + .computeMessageSize(24, rejoinExistingGameMessage_); } - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getJoinGameAckMessage()); + .computeMessageSize(25, joinGameAckMessage_); } - if (((bitField0_ & 0x02000000) != 0)) { + if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getJoinGameFailedMessage()); + .computeMessageSize(26, joinGameFailedMessage_); } - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getGamePlayerJoinedMessage()); + .computeMessageSize(27, gamePlayerJoinedMessage_); } - if (((bitField0_ & 0x08000000) != 0)) { + if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getGamePlayerLeftMessage()); + .computeMessageSize(28, gamePlayerLeftMessage_); } - if (((bitField0_ & 0x10000000) != 0)) { + if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getGameAdminChangedMessage()); + .computeMessageSize(29, gameAdminChangedMessage_); } - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getRemovedFromGameMessage()); + .computeMessageSize(30, removedFromGameMessage_); } - if (((bitField0_ & 0x40000000) != 0)) { + if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getKickPlayerRequestMessage()); + .computeMessageSize(31, kickPlayerRequestMessage_); } - if (((bitField0_ & 0x80000000) != 0)) { + if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getLeaveGameRequestMessage()); + .computeMessageSize(32, leaveGameRequestMessage_); } - if (((bitField1_ & 0x00000001) != 0)) { + if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getInvitePlayerToGameMessage()); + .computeMessageSize(33, invitePlayerToGameMessage_); } - if (((bitField1_ & 0x00000002) != 0)) { + if (((bitField1_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, getInviteNotifyMessage()); + .computeMessageSize(34, inviteNotifyMessage_); } - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField1_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getRejectGameInvitationMessage()); + .computeMessageSize(35, rejectGameInvitationMessage_); } - if (((bitField1_ & 0x00000008) != 0)) { + if (((bitField1_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, getRejectInvNotifyMessage()); + .computeMessageSize(36, rejectInvNotifyMessage_); } - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getStartEventMessage()); + .computeMessageSize(37, startEventMessage_); } - if (((bitField1_ & 0x00000020) != 0)) { + if (((bitField1_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getStartEventAckMessage()); + .computeMessageSize(38, startEventAckMessage_); } - if (((bitField1_ & 0x00000040) != 0)) { + if (((bitField1_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getGameStartInitialMessage()); + .computeMessageSize(39, gameStartInitialMessage_); } - if (((bitField1_ & 0x00000080) != 0)) { + if (((bitField1_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, getGameStartRejoinMessage()); + .computeMessageSize(40, gameStartRejoinMessage_); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, getHandStartMessage()); + .computeMessageSize(41, handStartMessage_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, getPlayersTurnMessage()); + .computeMessageSize(42, playersTurnMessage_); } - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, getMyActionRequestMessage()); + .computeMessageSize(43, myActionRequestMessage_); } - if (((bitField1_ & 0x00000800) != 0)) { + if (((bitField1_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, getYourActionRejectedMessage()); + .computeMessageSize(44, yourActionRejectedMessage_); } - if (((bitField1_ & 0x00001000) != 0)) { + if (((bitField1_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getPlayersActionDoneMessage()); + .computeMessageSize(45, playersActionDoneMessage_); } - if (((bitField1_ & 0x00002000) != 0)) { + if (((bitField1_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, getDealFlopCardsMessage()); + .computeMessageSize(46, dealFlopCardsMessage_); } - if (((bitField1_ & 0x00004000) != 0)) { + if (((bitField1_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getDealTurnCardMessage()); + .computeMessageSize(47, dealTurnCardMessage_); } - if (((bitField1_ & 0x00008000) != 0)) { + if (((bitField1_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getDealRiverCardMessage()); + .computeMessageSize(48, dealRiverCardMessage_); } - if (((bitField1_ & 0x00010000) != 0)) { + if (((bitField1_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(49, getAllInShowCardsMessage()); + .computeMessageSize(49, allInShowCardsMessage_); } - if (((bitField1_ & 0x00020000) != 0)) { + if (((bitField1_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, getEndOfHandShowCardsMessage()); + .computeMessageSize(50, endOfHandShowCardsMessage_); } - if (((bitField1_ & 0x00040000) != 0)) { + if (((bitField1_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, getEndOfHandHideCardsMessage()); + .computeMessageSize(51, endOfHandHideCardsMessage_); } - if (((bitField1_ & 0x00080000) != 0)) { + if (((bitField1_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, getShowMyCardsRequestMessage()); + .computeMessageSize(52, showMyCardsRequestMessage_); } - if (((bitField1_ & 0x00100000) != 0)) { + if (((bitField1_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getAfterHandShowCardsMessage()); + .computeMessageSize(53, afterHandShowCardsMessage_); } - if (((bitField1_ & 0x00200000) != 0)) { + if (((bitField1_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, getEndOfGameMessage()); + .computeMessageSize(54, endOfGameMessage_); } - if (((bitField1_ & 0x00400000) != 0)) { + if (((bitField1_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, getPlayerIdChangedMessage()); + .computeMessageSize(55, playerIdChangedMessage_); } - if (((bitField1_ & 0x00800000) != 0)) { + if (((bitField1_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(56, getAskKickPlayerMessage()); + .computeMessageSize(56, askKickPlayerMessage_); } - if (((bitField1_ & 0x01000000) != 0)) { + if (((bitField1_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(57, getAskKickDeniedMessage()); + .computeMessageSize(57, askKickDeniedMessage_); } - if (((bitField1_ & 0x02000000) != 0)) { + if (((bitField1_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(58, getStartKickPetitionMessage()); + .computeMessageSize(58, startKickPetitionMessage_); } - if (((bitField1_ & 0x04000000) != 0)) { + if (((bitField1_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(59, getVoteKickRequestMessage()); + .computeMessageSize(59, voteKickRequestMessage_); } - if (((bitField1_ & 0x08000000) != 0)) { + if (((bitField1_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(60, getVoteKickReplyMessage()); + .computeMessageSize(60, voteKickReplyMessage_); } - if (((bitField1_ & 0x10000000) != 0)) { + if (((bitField1_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, getKickPetitionUpdateMessage()); + .computeMessageSize(61, kickPetitionUpdateMessage_); } - if (((bitField1_ & 0x20000000) != 0)) { + if (((bitField1_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(62, getEndKickPetitionMessage()); + .computeMessageSize(62, endKickPetitionMessage_); } - if (((bitField1_ & 0x40000000) != 0)) { + if (((bitField1_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, getStatisticsMessage()); + .computeMessageSize(63, statisticsMessage_); } - if (((bitField1_ & 0x80000000) != 0)) { + if (((bitField1_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, getChatRequestMessage()); + .computeMessageSize(64, chatRequestMessage_); } - if (((bitField2_ & 0x00000001) != 0)) { + if (((bitField2_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(65, getChatMessage()); + .computeMessageSize(65, chatMessage_); } - if (((bitField2_ & 0x00000002) != 0)) { + if (((bitField2_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(66, getChatRejectMessage()); + .computeMessageSize(66, chatRejectMessage_); } - if (((bitField2_ & 0x00000004) != 0)) { + if (((bitField2_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getDialogMessage()); + .computeMessageSize(67, dialogMessage_); } - if (((bitField2_ & 0x00000008) != 0)) { + if (((bitField2_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(68, getTimeoutWarningMessage()); + .computeMessageSize(68, timeoutWarningMessage_); } - if (((bitField2_ & 0x00000010) != 0)) { + if (((bitField2_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(69, getResetTimeoutMessage()); + .computeMessageSize(69, resetTimeoutMessage_); } - if (((bitField2_ & 0x00000020) != 0)) { + if (((bitField2_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(70, getReportAvatarMessage()); + .computeMessageSize(70, reportAvatarMessage_); } - if (((bitField2_ & 0x00000040) != 0)) { + if (((bitField2_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(71, getReportAvatarAckMessage()); + .computeMessageSize(71, reportAvatarAckMessage_); } - if (((bitField2_ & 0x00000080) != 0)) { + if (((bitField2_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(72, getReportGameMessage()); + .computeMessageSize(72, reportGameMessage_); } - if (((bitField2_ & 0x00000100) != 0)) { + if (((bitField2_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(73, getReportGameAckMessage()); + .computeMessageSize(73, reportGameAckMessage_); } - if (((bitField2_ & 0x00000200) != 0)) { + if (((bitField2_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(74, getErrorMessage()); + .computeMessageSize(74, errorMessage_); } - if (((bitField2_ & 0x00000400) != 0)) { + if (((bitField2_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(75, getAdminRemoveGameMessage()); + .computeMessageSize(75, adminRemoveGameMessage_); } - if (((bitField2_ & 0x00000800) != 0)) { + if (((bitField2_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(76, getAdminRemoveGameAckMessage()); + .computeMessageSize(76, adminRemoveGameAckMessage_); } - if (((bitField2_ & 0x00001000) != 0)) { + if (((bitField2_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(77, getAdminBanPlayerMessage()); + .computeMessageSize(77, adminBanPlayerMessage_); } - if (((bitField2_ & 0x00002000) != 0)) { + if (((bitField2_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(78, getAdminBanPlayerAckMessage()); + .computeMessageSize(78, adminBanPlayerAckMessage_); } - if (((bitField2_ & 0x00004000) != 0)) { + if (((bitField2_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(79, getGameListSpectatorJoinedMessage()); + .computeMessageSize(79, gameListSpectatorJoinedMessage_); } - if (((bitField2_ & 0x00008000) != 0)) { + if (((bitField2_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(80, getGameListSpectatorLeftMessage()); + .computeMessageSize(80, gameListSpectatorLeftMessage_); } - if (((bitField2_ & 0x00010000) != 0)) { + if (((bitField2_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(81, getGameSpectatorJoinedMessage()); + .computeMessageSize(81, gameSpectatorJoinedMessage_); } - if (((bitField2_ & 0x00020000) != 0)) { + if (((bitField2_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(82, getGameSpectatorLeftMessage()); + .computeMessageSize(82, gameSpectatorLeftMessage_); } - size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - - public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); + return newBuilder().mergeFrom(data).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); + return newBuilder().mergeFrom(input).buildParsed(); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return (Builder) DEFAULT_INSTANCE.createBuilder(); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PokerTHMessage prototype) { - return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); + return newBuilder().mergeFrom(prototype); } - - /** - * Protobuf type {@code PokerTHMessage} - */ + public Builder toBuilder() { return newBuilder(this); } + public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PokerTHMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:PokerTHMessage) - de.pokerth.protocol.ProtoBuf.PokerTHMessageOrBuilder { + de.pokerth.protocol.ProtoBuf.PokerTHMessage, Builder> + implements de.pokerth.protocol.ProtoBuf.PokerTHMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PokerTHMessage.newBuilder() private Builder() { - super(DEFAULT_INSTANCE); + maybeForceBuilderInitialization(); } - - - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - @java.lang.Override - public boolean hasMessageType() { - return instance.hasMessageType(); + + private void maybeForceBuilderInitialization() { } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { - return instance.getMessageType(); + private static Builder create() { + return new Builder(); } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - public Builder setMessageType(de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value) { - copyOnWrite(); - instance.setMessageType(value); + + public Builder clear() { + super.clear(); + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + bitField0_ = (bitField0_ & ~0x00000001); + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000004); + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000008); + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000010); + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000020); + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000040); + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000080); + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000100); + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000200); + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000400); + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000800); + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00001000); + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00002000); + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00004000); + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00008000); + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00010000); + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00020000); + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00040000); + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00080000); + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00100000); + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00200000); + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00400000); + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00800000); + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x01000000); + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x02000000); + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x04000000); + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x08000000); + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x10000000); + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x20000000); + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x40000000); + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x80000000); + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000001); + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000002); + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000004); + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000008); + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000010); + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000020); + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000040); + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000080); + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000100); + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000200); + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000400); + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00000800); + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00001000); + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00002000); + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00004000); + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00008000); + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00010000); + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00020000); + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00040000); + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00080000); + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00100000); + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00200000); + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00400000); + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x00800000); + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x01000000); + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x02000000); + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x04000000); + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x08000000); + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x10000000); + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x20000000); + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x40000000); + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + bitField1_ = (bitField1_ & ~0x80000000); + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000001); + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000002); + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000004); + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000008); + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000010); + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000020); + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000040); + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000080); + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000100); + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000200); + adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000400); + adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00000800); + adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00001000); + adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00002000); + gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00004000); + gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00008000); + gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00010000); + gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); + bitField2_ = (bitField2_ & ~0x00020000); return this; } - /** - * required .PokerTHMessage.PokerTHMessageType messageType = 1; - */ - public Builder clearMessageType() { - copyOnWrite(); - instance.clearMessageType(); - return this; + + public Builder clone() { + return create().mergeFrom(buildPartial()); } - - /** - * optional .AnnounceMessage announceMessage = 2; - */ - @java.lang.Override - public boolean hasAnnounceMessage() { - return instance.hasAnnounceMessage(); + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDefaultInstance(); } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { - return instance.getAnnounceMessage(); - } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - public Builder setAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - copyOnWrite(); - instance.setAnnounceMessage(value); - return this; + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage build() { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * optional .AnnounceMessage announceMessage = 2; - */ + return result; + } + + private de.pokerth.protocol.ProtoBuf.PokerTHMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = new de.pokerth.protocol.ProtoBuf.PokerTHMessage(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int from_bitField2_ = bitField2_; + int to_bitField0_ = 0; + int to_bitField1_ = 0; + int to_bitField2_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.messageType_ = messageType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.announceMessage_ = announceMessage_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.initMessage_ = initMessage_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.authServerChallengeMessage_ = authServerChallengeMessage_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.authClientResponseMessage_ = authClientResponseMessage_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.authServerVerificationMessage_ = authServerVerificationMessage_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.initAckMessage_ = initAckMessage_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.avatarRequestMessage_ = avatarRequestMessage_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.avatarHeaderMessage_ = avatarHeaderMessage_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.avatarDataMessage_ = avatarDataMessage_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.avatarEndMessage_ = avatarEndMessage_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + result.unknownAvatarMessage_ = unknownAvatarMessage_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + result.playerListMessage_ = playerListMessage_; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00002000; + } + result.gameListNewMessage_ = gameListNewMessage_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00004000; + } + result.gameListUpdateMessage_ = gameListUpdateMessage_; + if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + to_bitField0_ |= 0x00008000; + } + result.gameListPlayerJoinedMessage_ = gameListPlayerJoinedMessage_; + if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + to_bitField0_ |= 0x00010000; + } + result.gameListPlayerLeftMessage_ = gameListPlayerLeftMessage_; + if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + to_bitField0_ |= 0x00020000; + } + result.gameListAdminChangedMessage_ = gameListAdminChangedMessage_; + if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + to_bitField0_ |= 0x00040000; + } + result.playerInfoRequestMessage_ = playerInfoRequestMessage_; + if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + to_bitField0_ |= 0x00080000; + } + result.playerInfoReplyMessage_ = playerInfoReplyMessage_; + if (((from_bitField0_ & 0x00100000) == 0x00100000)) { + to_bitField0_ |= 0x00100000; + } + result.subscriptionRequestMessage_ = subscriptionRequestMessage_; + if (((from_bitField0_ & 0x00200000) == 0x00200000)) { + to_bitField0_ |= 0x00200000; + } + result.joinExistingGameMessage_ = joinExistingGameMessage_; + if (((from_bitField0_ & 0x00400000) == 0x00400000)) { + to_bitField0_ |= 0x00400000; + } + result.joinNewGameMessage_ = joinNewGameMessage_; + if (((from_bitField0_ & 0x00800000) == 0x00800000)) { + to_bitField0_ |= 0x00800000; + } + result.rejoinExistingGameMessage_ = rejoinExistingGameMessage_; + if (((from_bitField0_ & 0x01000000) == 0x01000000)) { + to_bitField0_ |= 0x01000000; + } + result.joinGameAckMessage_ = joinGameAckMessage_; + if (((from_bitField0_ & 0x02000000) == 0x02000000)) { + to_bitField0_ |= 0x02000000; + } + result.joinGameFailedMessage_ = joinGameFailedMessage_; + if (((from_bitField0_ & 0x04000000) == 0x04000000)) { + to_bitField0_ |= 0x04000000; + } + result.gamePlayerJoinedMessage_ = gamePlayerJoinedMessage_; + if (((from_bitField0_ & 0x08000000) == 0x08000000)) { + to_bitField0_ |= 0x08000000; + } + result.gamePlayerLeftMessage_ = gamePlayerLeftMessage_; + if (((from_bitField0_ & 0x10000000) == 0x10000000)) { + to_bitField0_ |= 0x10000000; + } + result.gameAdminChangedMessage_ = gameAdminChangedMessage_; + if (((from_bitField0_ & 0x20000000) == 0x20000000)) { + to_bitField0_ |= 0x20000000; + } + result.removedFromGameMessage_ = removedFromGameMessage_; + if (((from_bitField0_ & 0x40000000) == 0x40000000)) { + to_bitField0_ |= 0x40000000; + } + result.kickPlayerRequestMessage_ = kickPlayerRequestMessage_; + if (((from_bitField0_ & 0x80000000) == 0x80000000)) { + to_bitField0_ |= 0x80000000; + } + result.leaveGameRequestMessage_ = leaveGameRequestMessage_; + if (((from_bitField1_ & 0x00000001) == 0x00000001)) { + to_bitField1_ |= 0x00000001; + } + result.invitePlayerToGameMessage_ = invitePlayerToGameMessage_; + if (((from_bitField1_ & 0x00000002) == 0x00000002)) { + to_bitField1_ |= 0x00000002; + } + result.inviteNotifyMessage_ = inviteNotifyMessage_; + if (((from_bitField1_ & 0x00000004) == 0x00000004)) { + to_bitField1_ |= 0x00000004; + } + result.rejectGameInvitationMessage_ = rejectGameInvitationMessage_; + if (((from_bitField1_ & 0x00000008) == 0x00000008)) { + to_bitField1_ |= 0x00000008; + } + result.rejectInvNotifyMessage_ = rejectInvNotifyMessage_; + if (((from_bitField1_ & 0x00000010) == 0x00000010)) { + to_bitField1_ |= 0x00000010; + } + result.startEventMessage_ = startEventMessage_; + if (((from_bitField1_ & 0x00000020) == 0x00000020)) { + to_bitField1_ |= 0x00000020; + } + result.startEventAckMessage_ = startEventAckMessage_; + if (((from_bitField1_ & 0x00000040) == 0x00000040)) { + to_bitField1_ |= 0x00000040; + } + result.gameStartInitialMessage_ = gameStartInitialMessage_; + if (((from_bitField1_ & 0x00000080) == 0x00000080)) { + to_bitField1_ |= 0x00000080; + } + result.gameStartRejoinMessage_ = gameStartRejoinMessage_; + if (((from_bitField1_ & 0x00000100) == 0x00000100)) { + to_bitField1_ |= 0x00000100; + } + result.handStartMessage_ = handStartMessage_; + if (((from_bitField1_ & 0x00000200) == 0x00000200)) { + to_bitField1_ |= 0x00000200; + } + result.playersTurnMessage_ = playersTurnMessage_; + if (((from_bitField1_ & 0x00000400) == 0x00000400)) { + to_bitField1_ |= 0x00000400; + } + result.myActionRequestMessage_ = myActionRequestMessage_; + if (((from_bitField1_ & 0x00000800) == 0x00000800)) { + to_bitField1_ |= 0x00000800; + } + result.yourActionRejectedMessage_ = yourActionRejectedMessage_; + if (((from_bitField1_ & 0x00001000) == 0x00001000)) { + to_bitField1_ |= 0x00001000; + } + result.playersActionDoneMessage_ = playersActionDoneMessage_; + if (((from_bitField1_ & 0x00002000) == 0x00002000)) { + to_bitField1_ |= 0x00002000; + } + result.dealFlopCardsMessage_ = dealFlopCardsMessage_; + if (((from_bitField1_ & 0x00004000) == 0x00004000)) { + to_bitField1_ |= 0x00004000; + } + result.dealTurnCardMessage_ = dealTurnCardMessage_; + if (((from_bitField1_ & 0x00008000) == 0x00008000)) { + to_bitField1_ |= 0x00008000; + } + result.dealRiverCardMessage_ = dealRiverCardMessage_; + if (((from_bitField1_ & 0x00010000) == 0x00010000)) { + to_bitField1_ |= 0x00010000; + } + result.allInShowCardsMessage_ = allInShowCardsMessage_; + if (((from_bitField1_ & 0x00020000) == 0x00020000)) { + to_bitField1_ |= 0x00020000; + } + result.endOfHandShowCardsMessage_ = endOfHandShowCardsMessage_; + if (((from_bitField1_ & 0x00040000) == 0x00040000)) { + to_bitField1_ |= 0x00040000; + } + result.endOfHandHideCardsMessage_ = endOfHandHideCardsMessage_; + if (((from_bitField1_ & 0x00080000) == 0x00080000)) { + to_bitField1_ |= 0x00080000; + } + result.showMyCardsRequestMessage_ = showMyCardsRequestMessage_; + if (((from_bitField1_ & 0x00100000) == 0x00100000)) { + to_bitField1_ |= 0x00100000; + } + result.afterHandShowCardsMessage_ = afterHandShowCardsMessage_; + if (((from_bitField1_ & 0x00200000) == 0x00200000)) { + to_bitField1_ |= 0x00200000; + } + result.endOfGameMessage_ = endOfGameMessage_; + if (((from_bitField1_ & 0x00400000) == 0x00400000)) { + to_bitField1_ |= 0x00400000; + } + result.playerIdChangedMessage_ = playerIdChangedMessage_; + if (((from_bitField1_ & 0x00800000) == 0x00800000)) { + to_bitField1_ |= 0x00800000; + } + result.askKickPlayerMessage_ = askKickPlayerMessage_; + if (((from_bitField1_ & 0x01000000) == 0x01000000)) { + to_bitField1_ |= 0x01000000; + } + result.askKickDeniedMessage_ = askKickDeniedMessage_; + if (((from_bitField1_ & 0x02000000) == 0x02000000)) { + to_bitField1_ |= 0x02000000; + } + result.startKickPetitionMessage_ = startKickPetitionMessage_; + if (((from_bitField1_ & 0x04000000) == 0x04000000)) { + to_bitField1_ |= 0x04000000; + } + result.voteKickRequestMessage_ = voteKickRequestMessage_; + if (((from_bitField1_ & 0x08000000) == 0x08000000)) { + to_bitField1_ |= 0x08000000; + } + result.voteKickReplyMessage_ = voteKickReplyMessage_; + if (((from_bitField1_ & 0x10000000) == 0x10000000)) { + to_bitField1_ |= 0x10000000; + } + result.kickPetitionUpdateMessage_ = kickPetitionUpdateMessage_; + if (((from_bitField1_ & 0x20000000) == 0x20000000)) { + to_bitField1_ |= 0x20000000; + } + result.endKickPetitionMessage_ = endKickPetitionMessage_; + if (((from_bitField1_ & 0x40000000) == 0x40000000)) { + to_bitField1_ |= 0x40000000; + } + result.statisticsMessage_ = statisticsMessage_; + if (((from_bitField1_ & 0x80000000) == 0x80000000)) { + to_bitField1_ |= 0x80000000; + } + result.chatRequestMessage_ = chatRequestMessage_; + if (((from_bitField2_ & 0x00000001) == 0x00000001)) { + to_bitField2_ |= 0x00000001; + } + result.chatMessage_ = chatMessage_; + if (((from_bitField2_ & 0x00000002) == 0x00000002)) { + to_bitField2_ |= 0x00000002; + } + result.chatRejectMessage_ = chatRejectMessage_; + if (((from_bitField2_ & 0x00000004) == 0x00000004)) { + to_bitField2_ |= 0x00000004; + } + result.dialogMessage_ = dialogMessage_; + if (((from_bitField2_ & 0x00000008) == 0x00000008)) { + to_bitField2_ |= 0x00000008; + } + result.timeoutWarningMessage_ = timeoutWarningMessage_; + if (((from_bitField2_ & 0x00000010) == 0x00000010)) { + to_bitField2_ |= 0x00000010; + } + result.resetTimeoutMessage_ = resetTimeoutMessage_; + if (((from_bitField2_ & 0x00000020) == 0x00000020)) { + to_bitField2_ |= 0x00000020; + } + result.reportAvatarMessage_ = reportAvatarMessage_; + if (((from_bitField2_ & 0x00000040) == 0x00000040)) { + to_bitField2_ |= 0x00000040; + } + result.reportAvatarAckMessage_ = reportAvatarAckMessage_; + if (((from_bitField2_ & 0x00000080) == 0x00000080)) { + to_bitField2_ |= 0x00000080; + } + result.reportGameMessage_ = reportGameMessage_; + if (((from_bitField2_ & 0x00000100) == 0x00000100)) { + to_bitField2_ |= 0x00000100; + } + result.reportGameAckMessage_ = reportGameAckMessage_; + if (((from_bitField2_ & 0x00000200) == 0x00000200)) { + to_bitField2_ |= 0x00000200; + } + result.errorMessage_ = errorMessage_; + if (((from_bitField2_ & 0x00000400) == 0x00000400)) { + to_bitField2_ |= 0x00000400; + } + result.adminRemoveGameMessage_ = adminRemoveGameMessage_; + if (((from_bitField2_ & 0x00000800) == 0x00000800)) { + to_bitField2_ |= 0x00000800; + } + result.adminRemoveGameAckMessage_ = adminRemoveGameAckMessage_; + if (((from_bitField2_ & 0x00001000) == 0x00001000)) { + to_bitField2_ |= 0x00001000; + } + result.adminBanPlayerMessage_ = adminBanPlayerMessage_; + if (((from_bitField2_ & 0x00002000) == 0x00002000)) { + to_bitField2_ |= 0x00002000; + } + result.adminBanPlayerAckMessage_ = adminBanPlayerAckMessage_; + if (((from_bitField2_ & 0x00004000) == 0x00004000)) { + to_bitField2_ |= 0x00004000; + } + result.gameListSpectatorJoinedMessage_ = gameListSpectatorJoinedMessage_; + if (((from_bitField2_ & 0x00008000) == 0x00008000)) { + to_bitField2_ |= 0x00008000; + } + result.gameListSpectatorLeftMessage_ = gameListSpectatorLeftMessage_; + if (((from_bitField2_ & 0x00010000) == 0x00010000)) { + to_bitField2_ |= 0x00010000; + } + result.gameSpectatorJoinedMessage_ = gameSpectatorJoinedMessage_; + if (((from_bitField2_ & 0x00020000) == 0x00020000)) { + to_bitField2_ |= 0x00020000; + } + result.gameSpectatorLeftMessage_ = gameSpectatorLeftMessage_; + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + result.bitField2_ = to_bitField2_; + return result; + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PokerTHMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDefaultInstance()) return this; + if (other.hasMessageType()) { + setMessageType(other.getMessageType()); + } + if (other.hasAnnounceMessage()) { + mergeAnnounceMessage(other.getAnnounceMessage()); + } + if (other.hasInitMessage()) { + mergeInitMessage(other.getInitMessage()); + } + if (other.hasAuthServerChallengeMessage()) { + mergeAuthServerChallengeMessage(other.getAuthServerChallengeMessage()); + } + if (other.hasAuthClientResponseMessage()) { + mergeAuthClientResponseMessage(other.getAuthClientResponseMessage()); + } + if (other.hasAuthServerVerificationMessage()) { + mergeAuthServerVerificationMessage(other.getAuthServerVerificationMessage()); + } + if (other.hasInitAckMessage()) { + mergeInitAckMessage(other.getInitAckMessage()); + } + if (other.hasAvatarRequestMessage()) { + mergeAvatarRequestMessage(other.getAvatarRequestMessage()); + } + if (other.hasAvatarHeaderMessage()) { + mergeAvatarHeaderMessage(other.getAvatarHeaderMessage()); + } + if (other.hasAvatarDataMessage()) { + mergeAvatarDataMessage(other.getAvatarDataMessage()); + } + if (other.hasAvatarEndMessage()) { + mergeAvatarEndMessage(other.getAvatarEndMessage()); + } + if (other.hasUnknownAvatarMessage()) { + mergeUnknownAvatarMessage(other.getUnknownAvatarMessage()); + } + if (other.hasPlayerListMessage()) { + mergePlayerListMessage(other.getPlayerListMessage()); + } + if (other.hasGameListNewMessage()) { + mergeGameListNewMessage(other.getGameListNewMessage()); + } + if (other.hasGameListUpdateMessage()) { + mergeGameListUpdateMessage(other.getGameListUpdateMessage()); + } + if (other.hasGameListPlayerJoinedMessage()) { + mergeGameListPlayerJoinedMessage(other.getGameListPlayerJoinedMessage()); + } + if (other.hasGameListPlayerLeftMessage()) { + mergeGameListPlayerLeftMessage(other.getGameListPlayerLeftMessage()); + } + if (other.hasGameListAdminChangedMessage()) { + mergeGameListAdminChangedMessage(other.getGameListAdminChangedMessage()); + } + if (other.hasPlayerInfoRequestMessage()) { + mergePlayerInfoRequestMessage(other.getPlayerInfoRequestMessage()); + } + if (other.hasPlayerInfoReplyMessage()) { + mergePlayerInfoReplyMessage(other.getPlayerInfoReplyMessage()); + } + if (other.hasSubscriptionRequestMessage()) { + mergeSubscriptionRequestMessage(other.getSubscriptionRequestMessage()); + } + if (other.hasJoinExistingGameMessage()) { + mergeJoinExistingGameMessage(other.getJoinExistingGameMessage()); + } + if (other.hasJoinNewGameMessage()) { + mergeJoinNewGameMessage(other.getJoinNewGameMessage()); + } + if (other.hasRejoinExistingGameMessage()) { + mergeRejoinExistingGameMessage(other.getRejoinExistingGameMessage()); + } + if (other.hasJoinGameAckMessage()) { + mergeJoinGameAckMessage(other.getJoinGameAckMessage()); + } + if (other.hasJoinGameFailedMessage()) { + mergeJoinGameFailedMessage(other.getJoinGameFailedMessage()); + } + if (other.hasGamePlayerJoinedMessage()) { + mergeGamePlayerJoinedMessage(other.getGamePlayerJoinedMessage()); + } + if (other.hasGamePlayerLeftMessage()) { + mergeGamePlayerLeftMessage(other.getGamePlayerLeftMessage()); + } + if (other.hasGameAdminChangedMessage()) { + mergeGameAdminChangedMessage(other.getGameAdminChangedMessage()); + } + if (other.hasRemovedFromGameMessage()) { + mergeRemovedFromGameMessage(other.getRemovedFromGameMessage()); + } + if (other.hasKickPlayerRequestMessage()) { + mergeKickPlayerRequestMessage(other.getKickPlayerRequestMessage()); + } + if (other.hasLeaveGameRequestMessage()) { + mergeLeaveGameRequestMessage(other.getLeaveGameRequestMessage()); + } + if (other.hasInvitePlayerToGameMessage()) { + mergeInvitePlayerToGameMessage(other.getInvitePlayerToGameMessage()); + } + if (other.hasInviteNotifyMessage()) { + mergeInviteNotifyMessage(other.getInviteNotifyMessage()); + } + if (other.hasRejectGameInvitationMessage()) { + mergeRejectGameInvitationMessage(other.getRejectGameInvitationMessage()); + } + if (other.hasRejectInvNotifyMessage()) { + mergeRejectInvNotifyMessage(other.getRejectInvNotifyMessage()); + } + if (other.hasStartEventMessage()) { + mergeStartEventMessage(other.getStartEventMessage()); + } + if (other.hasStartEventAckMessage()) { + mergeStartEventAckMessage(other.getStartEventAckMessage()); + } + if (other.hasGameStartInitialMessage()) { + mergeGameStartInitialMessage(other.getGameStartInitialMessage()); + } + if (other.hasGameStartRejoinMessage()) { + mergeGameStartRejoinMessage(other.getGameStartRejoinMessage()); + } + if (other.hasHandStartMessage()) { + mergeHandStartMessage(other.getHandStartMessage()); + } + if (other.hasPlayersTurnMessage()) { + mergePlayersTurnMessage(other.getPlayersTurnMessage()); + } + if (other.hasMyActionRequestMessage()) { + mergeMyActionRequestMessage(other.getMyActionRequestMessage()); + } + if (other.hasYourActionRejectedMessage()) { + mergeYourActionRejectedMessage(other.getYourActionRejectedMessage()); + } + if (other.hasPlayersActionDoneMessage()) { + mergePlayersActionDoneMessage(other.getPlayersActionDoneMessage()); + } + if (other.hasDealFlopCardsMessage()) { + mergeDealFlopCardsMessage(other.getDealFlopCardsMessage()); + } + if (other.hasDealTurnCardMessage()) { + mergeDealTurnCardMessage(other.getDealTurnCardMessage()); + } + if (other.hasDealRiverCardMessage()) { + mergeDealRiverCardMessage(other.getDealRiverCardMessage()); + } + if (other.hasAllInShowCardsMessage()) { + mergeAllInShowCardsMessage(other.getAllInShowCardsMessage()); + } + if (other.hasEndOfHandShowCardsMessage()) { + mergeEndOfHandShowCardsMessage(other.getEndOfHandShowCardsMessage()); + } + if (other.hasEndOfHandHideCardsMessage()) { + mergeEndOfHandHideCardsMessage(other.getEndOfHandHideCardsMessage()); + } + if (other.hasShowMyCardsRequestMessage()) { + mergeShowMyCardsRequestMessage(other.getShowMyCardsRequestMessage()); + } + if (other.hasAfterHandShowCardsMessage()) { + mergeAfterHandShowCardsMessage(other.getAfterHandShowCardsMessage()); + } + if (other.hasEndOfGameMessage()) { + mergeEndOfGameMessage(other.getEndOfGameMessage()); + } + if (other.hasPlayerIdChangedMessage()) { + mergePlayerIdChangedMessage(other.getPlayerIdChangedMessage()); + } + if (other.hasAskKickPlayerMessage()) { + mergeAskKickPlayerMessage(other.getAskKickPlayerMessage()); + } + if (other.hasAskKickDeniedMessage()) { + mergeAskKickDeniedMessage(other.getAskKickDeniedMessage()); + } + if (other.hasStartKickPetitionMessage()) { + mergeStartKickPetitionMessage(other.getStartKickPetitionMessage()); + } + if (other.hasVoteKickRequestMessage()) { + mergeVoteKickRequestMessage(other.getVoteKickRequestMessage()); + } + if (other.hasVoteKickReplyMessage()) { + mergeVoteKickReplyMessage(other.getVoteKickReplyMessage()); + } + if (other.hasKickPetitionUpdateMessage()) { + mergeKickPetitionUpdateMessage(other.getKickPetitionUpdateMessage()); + } + if (other.hasEndKickPetitionMessage()) { + mergeEndKickPetitionMessage(other.getEndKickPetitionMessage()); + } + if (other.hasStatisticsMessage()) { + mergeStatisticsMessage(other.getStatisticsMessage()); + } + if (other.hasChatRequestMessage()) { + mergeChatRequestMessage(other.getChatRequestMessage()); + } + if (other.hasChatMessage()) { + mergeChatMessage(other.getChatMessage()); + } + if (other.hasChatRejectMessage()) { + mergeChatRejectMessage(other.getChatRejectMessage()); + } + if (other.hasDialogMessage()) { + mergeDialogMessage(other.getDialogMessage()); + } + if (other.hasTimeoutWarningMessage()) { + mergeTimeoutWarningMessage(other.getTimeoutWarningMessage()); + } + if (other.hasResetTimeoutMessage()) { + mergeResetTimeoutMessage(other.getResetTimeoutMessage()); + } + if (other.hasReportAvatarMessage()) { + mergeReportAvatarMessage(other.getReportAvatarMessage()); + } + if (other.hasReportAvatarAckMessage()) { + mergeReportAvatarAckMessage(other.getReportAvatarAckMessage()); + } + if (other.hasReportGameMessage()) { + mergeReportGameMessage(other.getReportGameMessage()); + } + if (other.hasReportGameAckMessage()) { + mergeReportGameAckMessage(other.getReportGameAckMessage()); + } + if (other.hasErrorMessage()) { + mergeErrorMessage(other.getErrorMessage()); + } + if (other.hasAdminRemoveGameMessage()) { + mergeAdminRemoveGameMessage(other.getAdminRemoveGameMessage()); + } + if (other.hasAdminRemoveGameAckMessage()) { + mergeAdminRemoveGameAckMessage(other.getAdminRemoveGameAckMessage()); + } + if (other.hasAdminBanPlayerMessage()) { + mergeAdminBanPlayerMessage(other.getAdminBanPlayerMessage()); + } + if (other.hasAdminBanPlayerAckMessage()) { + mergeAdminBanPlayerAckMessage(other.getAdminBanPlayerAckMessage()); + } + if (other.hasGameListSpectatorJoinedMessage()) { + mergeGameListSpectatorJoinedMessage(other.getGameListSpectatorJoinedMessage()); + } + if (other.hasGameListSpectatorLeftMessage()) { + mergeGameListSpectatorLeftMessage(other.getGameListSpectatorLeftMessage()); + } + if (other.hasGameSpectatorJoinedMessage()) { + mergeGameSpectatorJoinedMessage(other.getGameSpectatorJoinedMessage()); + } + if (other.hasGameSpectatorLeftMessage()) { + mergeGameSpectatorLeftMessage(other.getGameSpectatorLeftMessage()); + } + return this; + } + + public final boolean isInitialized() { + if (!hasMessageType()) { + + return false; + } + if (hasAnnounceMessage()) { + if (!getAnnounceMessage().isInitialized()) { + + return false; + } + } + if (hasInitMessage()) { + if (!getInitMessage().isInitialized()) { + + return false; + } + } + if (hasAuthServerChallengeMessage()) { + if (!getAuthServerChallengeMessage().isInitialized()) { + + return false; + } + } + if (hasAuthClientResponseMessage()) { + if (!getAuthClientResponseMessage().isInitialized()) { + + return false; + } + } + if (hasAuthServerVerificationMessage()) { + if (!getAuthServerVerificationMessage().isInitialized()) { + + return false; + } + } + if (hasInitAckMessage()) { + if (!getInitAckMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarRequestMessage()) { + if (!getAvatarRequestMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarHeaderMessage()) { + if (!getAvatarHeaderMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarDataMessage()) { + if (!getAvatarDataMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarEndMessage()) { + if (!getAvatarEndMessage().isInitialized()) { + + return false; + } + } + if (hasUnknownAvatarMessage()) { + if (!getUnknownAvatarMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerListMessage()) { + if (!getPlayerListMessage().isInitialized()) { + + return false; + } + } + if (hasGameListNewMessage()) { + if (!getGameListNewMessage().isInitialized()) { + + return false; + } + } + if (hasGameListUpdateMessage()) { + if (!getGameListUpdateMessage().isInitialized()) { + + return false; + } + } + if (hasGameListPlayerJoinedMessage()) { + if (!getGameListPlayerJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGameListPlayerLeftMessage()) { + if (!getGameListPlayerLeftMessage().isInitialized()) { + + return false; + } + } + if (hasGameListAdminChangedMessage()) { + if (!getGameListAdminChangedMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerInfoReplyMessage()) { + if (!getPlayerInfoReplyMessage().isInitialized()) { + + return false; + } + } + if (hasSubscriptionRequestMessage()) { + if (!getSubscriptionRequestMessage().isInitialized()) { + + return false; + } + } + if (hasJoinExistingGameMessage()) { + if (!getJoinExistingGameMessage().isInitialized()) { + + return false; + } + } + if (hasJoinNewGameMessage()) { + if (!getJoinNewGameMessage().isInitialized()) { + + return false; + } + } + if (hasRejoinExistingGameMessage()) { + if (!getRejoinExistingGameMessage().isInitialized()) { + + return false; + } + } + if (hasJoinGameAckMessage()) { + if (!getJoinGameAckMessage().isInitialized()) { + + return false; + } + } + if (hasJoinGameFailedMessage()) { + if (!getJoinGameFailedMessage().isInitialized()) { + + return false; + } + } + if (hasGamePlayerJoinedMessage()) { + if (!getGamePlayerJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGamePlayerLeftMessage()) { + if (!getGamePlayerLeftMessage().isInitialized()) { + + return false; + } + } + if (hasGameAdminChangedMessage()) { + if (!getGameAdminChangedMessage().isInitialized()) { + + return false; + } + } + if (hasRemovedFromGameMessage()) { + if (!getRemovedFromGameMessage().isInitialized()) { + + return false; + } + } + if (hasKickPlayerRequestMessage()) { + if (!getKickPlayerRequestMessage().isInitialized()) { + + return false; + } + } + if (hasLeaveGameRequestMessage()) { + if (!getLeaveGameRequestMessage().isInitialized()) { + + return false; + } + } + if (hasInvitePlayerToGameMessage()) { + if (!getInvitePlayerToGameMessage().isInitialized()) { + + return false; + } + } + if (hasInviteNotifyMessage()) { + if (!getInviteNotifyMessage().isInitialized()) { + + return false; + } + } + if (hasRejectGameInvitationMessage()) { + if (!getRejectGameInvitationMessage().isInitialized()) { + + return false; + } + } + if (hasRejectInvNotifyMessage()) { + if (!getRejectInvNotifyMessage().isInitialized()) { + + return false; + } + } + if (hasStartEventMessage()) { + if (!getStartEventMessage().isInitialized()) { + + return false; + } + } + if (hasStartEventAckMessage()) { + if (!getStartEventAckMessage().isInitialized()) { + + return false; + } + } + if (hasGameStartInitialMessage()) { + if (!getGameStartInitialMessage().isInitialized()) { + + return false; + } + } + if (hasGameStartRejoinMessage()) { + if (!getGameStartRejoinMessage().isInitialized()) { + + return false; + } + } + if (hasHandStartMessage()) { + if (!getHandStartMessage().isInitialized()) { + + return false; + } + } + if (hasPlayersTurnMessage()) { + if (!getPlayersTurnMessage().isInitialized()) { + + return false; + } + } + if (hasMyActionRequestMessage()) { + if (!getMyActionRequestMessage().isInitialized()) { + + return false; + } + } + if (hasYourActionRejectedMessage()) { + if (!getYourActionRejectedMessage().isInitialized()) { + + return false; + } + } + if (hasPlayersActionDoneMessage()) { + if (!getPlayersActionDoneMessage().isInitialized()) { + + return false; + } + } + if (hasDealFlopCardsMessage()) { + if (!getDealFlopCardsMessage().isInitialized()) { + + return false; + } + } + if (hasDealTurnCardMessage()) { + if (!getDealTurnCardMessage().isInitialized()) { + + return false; + } + } + if (hasDealRiverCardMessage()) { + if (!getDealRiverCardMessage().isInitialized()) { + + return false; + } + } + if (hasAllInShowCardsMessage()) { + if (!getAllInShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfHandShowCardsMessage()) { + if (!getEndOfHandShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfHandHideCardsMessage()) { + if (!getEndOfHandHideCardsMessage().isInitialized()) { + + return false; + } + } + if (hasAfterHandShowCardsMessage()) { + if (!getAfterHandShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfGameMessage()) { + if (!getEndOfGameMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerIdChangedMessage()) { + if (!getPlayerIdChangedMessage().isInitialized()) { + + return false; + } + } + if (hasAskKickPlayerMessage()) { + if (!getAskKickPlayerMessage().isInitialized()) { + + return false; + } + } + if (hasAskKickDeniedMessage()) { + if (!getAskKickDeniedMessage().isInitialized()) { + + return false; + } + } + if (hasStartKickPetitionMessage()) { + if (!getStartKickPetitionMessage().isInitialized()) { + + return false; + } + } + if (hasVoteKickRequestMessage()) { + if (!getVoteKickRequestMessage().isInitialized()) { + + return false; + } + } + if (hasVoteKickReplyMessage()) { + if (!getVoteKickReplyMessage().isInitialized()) { + + return false; + } + } + if (hasKickPetitionUpdateMessage()) { + if (!getKickPetitionUpdateMessage().isInitialized()) { + + return false; + } + } + if (hasEndKickPetitionMessage()) { + if (!getEndKickPetitionMessage().isInitialized()) { + + return false; + } + } + if (hasStatisticsMessage()) { + if (!getStatisticsMessage().isInitialized()) { + + return false; + } + } + if (hasChatRequestMessage()) { + if (!getChatRequestMessage().isInitialized()) { + + return false; + } + } + if (hasChatMessage()) { + if (!getChatMessage().isInitialized()) { + + return false; + } + } + if (hasChatRejectMessage()) { + if (!getChatRejectMessage().isInitialized()) { + + return false; + } + } + if (hasDialogMessage()) { + if (!getDialogMessage().isInitialized()) { + + return false; + } + } + if (hasTimeoutWarningMessage()) { + if (!getTimeoutWarningMessage().isInitialized()) { + + return false; + } + } + if (hasReportAvatarMessage()) { + if (!getReportAvatarMessage().isInitialized()) { + + return false; + } + } + if (hasReportAvatarAckMessage()) { + if (!getReportAvatarAckMessage().isInitialized()) { + + return false; + } + } + if (hasReportGameMessage()) { + if (!getReportGameMessage().isInitialized()) { + + return false; + } + } + if (hasReportGameAckMessage()) { + if (!getReportGameAckMessage().isInitialized()) { + + return false; + } + } + if (hasErrorMessage()) { + if (!getErrorMessage().isInitialized()) { + + return false; + } + } + if (hasAdminRemoveGameMessage()) { + if (!getAdminRemoveGameMessage().isInitialized()) { + + return false; + } + } + if (hasAdminRemoveGameAckMessage()) { + if (!getAdminRemoveGameAckMessage().isInitialized()) { + + return false; + } + } + if (hasAdminBanPlayerMessage()) { + if (!getAdminBanPlayerMessage().isInitialized()) { + + return false; + } + } + if (hasAdminBanPlayerAckMessage()) { + if (!getAdminBanPlayerAckMessage().isInitialized()) { + + return false; + } + } + if (hasGameListSpectatorJoinedMessage()) { + if (!getGameListSpectatorJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGameListSpectatorLeftMessage()) { + if (!getGameListSpectatorLeftMessage().isInitialized()) { + + return false; + } + } + if (hasGameSpectatorJoinedMessage()) { + if (!getGameSpectatorJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGameSpectatorLeftMessage()) { + if (!getGameSpectatorLeftMessage().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + + return this; + default: { + if (!parseUnknownField(input, extensionRegistry, tag)) { + + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.valueOf(rawValue); + if (value != null) { + bitField0_ |= 0x00000001; + messageType_ = value; + } + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder(); + if (hasAnnounceMessage()) { + subBuilder.mergeFrom(getAnnounceMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAnnounceMessage(subBuilder.buildPartial()); + break; + } + case 26: { + de.pokerth.protocol.ProtoBuf.InitMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder(); + if (hasInitMessage()) { + subBuilder.mergeFrom(getInitMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInitMessage(subBuilder.buildPartial()); + break; + } + case 34: { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder(); + if (hasAuthServerChallengeMessage()) { + subBuilder.mergeFrom(getAuthServerChallengeMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthServerChallengeMessage(subBuilder.buildPartial()); + break; + } + case 42: { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder(); + if (hasAuthClientResponseMessage()) { + subBuilder.mergeFrom(getAuthClientResponseMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthClientResponseMessage(subBuilder.buildPartial()); + break; + } + case 50: { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder(); + if (hasAuthServerVerificationMessage()) { + subBuilder.mergeFrom(getAuthServerVerificationMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthServerVerificationMessage(subBuilder.buildPartial()); + break; + } + case 58: { + de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder(); + if (hasInitAckMessage()) { + subBuilder.mergeFrom(getInitAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInitAckMessage(subBuilder.buildPartial()); + break; + } + case 66: { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder(); + if (hasAvatarRequestMessage()) { + subBuilder.mergeFrom(getAvatarRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarRequestMessage(subBuilder.buildPartial()); + break; + } + case 74: { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder(); + if (hasAvatarHeaderMessage()) { + subBuilder.mergeFrom(getAvatarHeaderMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarHeaderMessage(subBuilder.buildPartial()); + break; + } + case 82: { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder(); + if (hasAvatarDataMessage()) { + subBuilder.mergeFrom(getAvatarDataMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarDataMessage(subBuilder.buildPartial()); + break; + } + case 90: { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder(); + if (hasAvatarEndMessage()) { + subBuilder.mergeFrom(getAvatarEndMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarEndMessage(subBuilder.buildPartial()); + break; + } + case 98: { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder(); + if (hasUnknownAvatarMessage()) { + subBuilder.mergeFrom(getUnknownAvatarMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setUnknownAvatarMessage(subBuilder.buildPartial()); + break; + } + case 106: { + de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder(); + if (hasPlayerListMessage()) { + subBuilder.mergeFrom(getPlayerListMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerListMessage(subBuilder.buildPartial()); + break; + } + case 114: { + de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder(); + if (hasGameListNewMessage()) { + subBuilder.mergeFrom(getGameListNewMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListNewMessage(subBuilder.buildPartial()); + break; + } + case 122: { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder(); + if (hasGameListUpdateMessage()) { + subBuilder.mergeFrom(getGameListUpdateMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListUpdateMessage(subBuilder.buildPartial()); + break; + } + case 130: { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder(); + if (hasGameListPlayerJoinedMessage()) { + subBuilder.mergeFrom(getGameListPlayerJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListPlayerJoinedMessage(subBuilder.buildPartial()); + break; + } + case 138: { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder(); + if (hasGameListPlayerLeftMessage()) { + subBuilder.mergeFrom(getGameListPlayerLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListPlayerLeftMessage(subBuilder.buildPartial()); + break; + } + case 146: { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder(); + if (hasGameListAdminChangedMessage()) { + subBuilder.mergeFrom(getGameListAdminChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListAdminChangedMessage(subBuilder.buildPartial()); + break; + } + case 154: { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder(); + if (hasPlayerInfoRequestMessage()) { + subBuilder.mergeFrom(getPlayerInfoRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoRequestMessage(subBuilder.buildPartial()); + break; + } + case 162: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder(); + if (hasPlayerInfoReplyMessage()) { + subBuilder.mergeFrom(getPlayerInfoReplyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoReplyMessage(subBuilder.buildPartial()); + break; + } + case 170: { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder(); + if (hasSubscriptionRequestMessage()) { + subBuilder.mergeFrom(getSubscriptionRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setSubscriptionRequestMessage(subBuilder.buildPartial()); + break; + } + case 178: { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder(); + if (hasJoinExistingGameMessage()) { + subBuilder.mergeFrom(getJoinExistingGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinExistingGameMessage(subBuilder.buildPartial()); + break; + } + case 186: { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder(); + if (hasJoinNewGameMessage()) { + subBuilder.mergeFrom(getJoinNewGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinNewGameMessage(subBuilder.buildPartial()); + break; + } + case 194: { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder(); + if (hasRejoinExistingGameMessage()) { + subBuilder.mergeFrom(getRejoinExistingGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejoinExistingGameMessage(subBuilder.buildPartial()); + break; + } + case 202: { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder(); + if (hasJoinGameAckMessage()) { + subBuilder.mergeFrom(getJoinGameAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinGameAckMessage(subBuilder.buildPartial()); + break; + } + case 210: { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder(); + if (hasJoinGameFailedMessage()) { + subBuilder.mergeFrom(getJoinGameFailedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinGameFailedMessage(subBuilder.buildPartial()); + break; + } + case 218: { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder(); + if (hasGamePlayerJoinedMessage()) { + subBuilder.mergeFrom(getGamePlayerJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGamePlayerJoinedMessage(subBuilder.buildPartial()); + break; + } + case 226: { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder(); + if (hasGamePlayerLeftMessage()) { + subBuilder.mergeFrom(getGamePlayerLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGamePlayerLeftMessage(subBuilder.buildPartial()); + break; + } + case 234: { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder(); + if (hasGameAdminChangedMessage()) { + subBuilder.mergeFrom(getGameAdminChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameAdminChangedMessage(subBuilder.buildPartial()); + break; + } + case 242: { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder(); + if (hasRemovedFromGameMessage()) { + subBuilder.mergeFrom(getRemovedFromGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRemovedFromGameMessage(subBuilder.buildPartial()); + break; + } + case 250: { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder(); + if (hasKickPlayerRequestMessage()) { + subBuilder.mergeFrom(getKickPlayerRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setKickPlayerRequestMessage(subBuilder.buildPartial()); + break; + } + case 258: { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder(); + if (hasLeaveGameRequestMessage()) { + subBuilder.mergeFrom(getLeaveGameRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setLeaveGameRequestMessage(subBuilder.buildPartial()); + break; + } + case 266: { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder(); + if (hasInvitePlayerToGameMessage()) { + subBuilder.mergeFrom(getInvitePlayerToGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInvitePlayerToGameMessage(subBuilder.buildPartial()); + break; + } + case 274: { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder(); + if (hasInviteNotifyMessage()) { + subBuilder.mergeFrom(getInviteNotifyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInviteNotifyMessage(subBuilder.buildPartial()); + break; + } + case 282: { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder(); + if (hasRejectGameInvitationMessage()) { + subBuilder.mergeFrom(getRejectGameInvitationMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejectGameInvitationMessage(subBuilder.buildPartial()); + break; + } + case 290: { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder(); + if (hasRejectInvNotifyMessage()) { + subBuilder.mergeFrom(getRejectInvNotifyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejectInvNotifyMessage(subBuilder.buildPartial()); + break; + } + case 298: { + de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder(); + if (hasStartEventMessage()) { + subBuilder.mergeFrom(getStartEventMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartEventMessage(subBuilder.buildPartial()); + break; + } + case 306: { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder(); + if (hasStartEventAckMessage()) { + subBuilder.mergeFrom(getStartEventAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartEventAckMessage(subBuilder.buildPartial()); + break; + } + case 314: { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder(); + if (hasGameStartInitialMessage()) { + subBuilder.mergeFrom(getGameStartInitialMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameStartInitialMessage(subBuilder.buildPartial()); + break; + } + case 322: { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder(); + if (hasGameStartRejoinMessage()) { + subBuilder.mergeFrom(getGameStartRejoinMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameStartRejoinMessage(subBuilder.buildPartial()); + break; + } + case 330: { + de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder(); + if (hasHandStartMessage()) { + subBuilder.mergeFrom(getHandStartMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setHandStartMessage(subBuilder.buildPartial()); + break; + } + case 338: { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder(); + if (hasPlayersTurnMessage()) { + subBuilder.mergeFrom(getPlayersTurnMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayersTurnMessage(subBuilder.buildPartial()); + break; + } + case 346: { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder(); + if (hasMyActionRequestMessage()) { + subBuilder.mergeFrom(getMyActionRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setMyActionRequestMessage(subBuilder.buildPartial()); + break; + } + case 354: { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder(); + if (hasYourActionRejectedMessage()) { + subBuilder.mergeFrom(getYourActionRejectedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setYourActionRejectedMessage(subBuilder.buildPartial()); + break; + } + case 362: { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder(); + if (hasPlayersActionDoneMessage()) { + subBuilder.mergeFrom(getPlayersActionDoneMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayersActionDoneMessage(subBuilder.buildPartial()); + break; + } + case 370: { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder(); + if (hasDealFlopCardsMessage()) { + subBuilder.mergeFrom(getDealFlopCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealFlopCardsMessage(subBuilder.buildPartial()); + break; + } + case 378: { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder(); + if (hasDealTurnCardMessage()) { + subBuilder.mergeFrom(getDealTurnCardMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealTurnCardMessage(subBuilder.buildPartial()); + break; + } + case 386: { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder(); + if (hasDealRiverCardMessage()) { + subBuilder.mergeFrom(getDealRiverCardMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealRiverCardMessage(subBuilder.buildPartial()); + break; + } + case 394: { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder(); + if (hasAllInShowCardsMessage()) { + subBuilder.mergeFrom(getAllInShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAllInShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 402: { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder(); + if (hasEndOfHandShowCardsMessage()) { + subBuilder.mergeFrom(getEndOfHandShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfHandShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 410: { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder(); + if (hasEndOfHandHideCardsMessage()) { + subBuilder.mergeFrom(getEndOfHandHideCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfHandHideCardsMessage(subBuilder.buildPartial()); + break; + } + case 418: { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder(); + if (hasShowMyCardsRequestMessage()) { + subBuilder.mergeFrom(getShowMyCardsRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setShowMyCardsRequestMessage(subBuilder.buildPartial()); + break; + } + case 426: { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder(); + if (hasAfterHandShowCardsMessage()) { + subBuilder.mergeFrom(getAfterHandShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAfterHandShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 434: { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder(); + if (hasEndOfGameMessage()) { + subBuilder.mergeFrom(getEndOfGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfGameMessage(subBuilder.buildPartial()); + break; + } + case 442: { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder(); + if (hasPlayerIdChangedMessage()) { + subBuilder.mergeFrom(getPlayerIdChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerIdChangedMessage(subBuilder.buildPartial()); + break; + } + case 450: { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder(); + if (hasAskKickPlayerMessage()) { + subBuilder.mergeFrom(getAskKickPlayerMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAskKickPlayerMessage(subBuilder.buildPartial()); + break; + } + case 458: { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder(); + if (hasAskKickDeniedMessage()) { + subBuilder.mergeFrom(getAskKickDeniedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAskKickDeniedMessage(subBuilder.buildPartial()); + break; + } + case 466: { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder(); + if (hasStartKickPetitionMessage()) { + subBuilder.mergeFrom(getStartKickPetitionMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartKickPetitionMessage(subBuilder.buildPartial()); + break; + } + case 474: { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder(); + if (hasVoteKickRequestMessage()) { + subBuilder.mergeFrom(getVoteKickRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setVoteKickRequestMessage(subBuilder.buildPartial()); + break; + } + case 482: { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder(); + if (hasVoteKickReplyMessage()) { + subBuilder.mergeFrom(getVoteKickReplyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setVoteKickReplyMessage(subBuilder.buildPartial()); + break; + } + case 490: { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder(); + if (hasKickPetitionUpdateMessage()) { + subBuilder.mergeFrom(getKickPetitionUpdateMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setKickPetitionUpdateMessage(subBuilder.buildPartial()); + break; + } + case 498: { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder(); + if (hasEndKickPetitionMessage()) { + subBuilder.mergeFrom(getEndKickPetitionMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndKickPetitionMessage(subBuilder.buildPartial()); + break; + } + case 506: { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder(); + if (hasStatisticsMessage()) { + subBuilder.mergeFrom(getStatisticsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStatisticsMessage(subBuilder.buildPartial()); + break; + } + case 514: { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder(); + if (hasChatRequestMessage()) { + subBuilder.mergeFrom(getChatRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatRequestMessage(subBuilder.buildPartial()); + break; + } + case 522: { + de.pokerth.protocol.ProtoBuf.ChatMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder(); + if (hasChatMessage()) { + subBuilder.mergeFrom(getChatMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatMessage(subBuilder.buildPartial()); + break; + } + case 530: { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder(); + if (hasChatRejectMessage()) { + subBuilder.mergeFrom(getChatRejectMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatRejectMessage(subBuilder.buildPartial()); + break; + } + case 538: { + de.pokerth.protocol.ProtoBuf.DialogMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder(); + if (hasDialogMessage()) { + subBuilder.mergeFrom(getDialogMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDialogMessage(subBuilder.buildPartial()); + break; + } + case 546: { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder(); + if (hasTimeoutWarningMessage()) { + subBuilder.mergeFrom(getTimeoutWarningMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setTimeoutWarningMessage(subBuilder.buildPartial()); + break; + } + case 554: { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder(); + if (hasResetTimeoutMessage()) { + subBuilder.mergeFrom(getResetTimeoutMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setResetTimeoutMessage(subBuilder.buildPartial()); + break; + } + case 562: { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder(); + if (hasReportAvatarMessage()) { + subBuilder.mergeFrom(getReportAvatarMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportAvatarMessage(subBuilder.buildPartial()); + break; + } + case 570: { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder(); + if (hasReportAvatarAckMessage()) { + subBuilder.mergeFrom(getReportAvatarAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportAvatarAckMessage(subBuilder.buildPartial()); + break; + } + case 578: { + de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder(); + if (hasReportGameMessage()) { + subBuilder.mergeFrom(getReportGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportGameMessage(subBuilder.buildPartial()); + break; + } + case 586: { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder(); + if (hasReportGameAckMessage()) { + subBuilder.mergeFrom(getReportGameAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportGameAckMessage(subBuilder.buildPartial()); + break; + } + case 594: { + de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder(); + if (hasErrorMessage()) { + subBuilder.mergeFrom(getErrorMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setErrorMessage(subBuilder.buildPartial()); + break; + } + case 602: { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.newBuilder(); + if (hasAdminRemoveGameMessage()) { + subBuilder.mergeFrom(getAdminRemoveGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAdminRemoveGameMessage(subBuilder.buildPartial()); + break; + } + case 610: { + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.newBuilder(); + if (hasAdminRemoveGameAckMessage()) { + subBuilder.mergeFrom(getAdminRemoveGameAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAdminRemoveGameAckMessage(subBuilder.buildPartial()); + break; + } + case 618: { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.newBuilder(); + if (hasAdminBanPlayerMessage()) { + subBuilder.mergeFrom(getAdminBanPlayerMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAdminBanPlayerMessage(subBuilder.buildPartial()); + break; + } + case 626: { + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.newBuilder(); + if (hasAdminBanPlayerAckMessage()) { + subBuilder.mergeFrom(getAdminBanPlayerAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAdminBanPlayerAckMessage(subBuilder.buildPartial()); + break; + } + case 634: { + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.newBuilder(); + if (hasGameListSpectatorJoinedMessage()) { + subBuilder.mergeFrom(getGameListSpectatorJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListSpectatorJoinedMessage(subBuilder.buildPartial()); + break; + } + case 642: { + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.newBuilder(); + if (hasGameListSpectatorLeftMessage()) { + subBuilder.mergeFrom(getGameListSpectatorLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListSpectatorLeftMessage(subBuilder.buildPartial()); + break; + } + case 650: { + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.newBuilder(); + if (hasGameSpectatorJoinedMessage()) { + subBuilder.mergeFrom(getGameSpectatorJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameSpectatorJoinedMessage(subBuilder.buildPartial()); + break; + } + case 658: { + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder(); + if (hasGameSpectatorLeftMessage()) { + subBuilder.mergeFrom(getGameSpectatorLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameSpectatorLeftMessage(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + private int bitField1_; + private int bitField2_; + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + public boolean hasMessageType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { + return messageType_; + } + public Builder setMessageType(de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + messageType_ = value; + + return this; + } + public Builder clearMessageType() { + bitField0_ = (bitField0_ & ~0x00000001); + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + + return this; + } + + // optional .AnnounceMessage announceMessage = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + public boolean hasAnnounceMessage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { + return announceMessage_; + } + public Builder setAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { + if (value == null) { + throw new NullPointerException(); + } + announceMessage_ = value; + + bitField0_ |= 0x00000002; + return this; + } public Builder setAnnounceMessage( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAnnounceMessage(builderForValue); + announceMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000002; return this; } - /** - * optional .AnnounceMessage announceMessage = 2; - */ public Builder mergeAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - copyOnWrite(); - instance.mergeAnnounceMessage(value); - return this; - } - /** - * optional .AnnounceMessage announceMessage = 2; - */ - public Builder clearAnnounceMessage() { copyOnWrite(); - instance.clearAnnounceMessage(); - return this; - } - - /** - * optional .InitMessage initMessage = 3; - */ - @java.lang.Override - public boolean hasInitMessage() { - return instance.hasInitMessage(); - } - /** - * optional .InitMessage initMessage = 3; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { - return instance.getInitMessage(); - } - /** - * optional .InitMessage initMessage = 3; - */ - public Builder setInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - copyOnWrite(); - instance.setInitMessage(value); - return this; + if (((bitField0_ & 0x00000002) == 0x00000002) && + announceMessage_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance()) { + announceMessage_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder(announceMessage_).mergeFrom(value).buildPartial(); + } else { + announceMessage_ = value; } - /** - * optional .InitMessage initMessage = 3; - */ + + bitField0_ |= 0x00000002; + return this; + } + public Builder clearAnnounceMessage() { + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + // optional .InitMessage initMessage = 3; + private de.pokerth.protocol.ProtoBuf.InitMessage initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + public boolean hasInitMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { + return initMessage_; + } + public Builder setInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { + if (value == null) { + throw new NullPointerException(); + } + initMessage_ = value; + + bitField0_ |= 0x00000004; + return this; + } public Builder setInitMessage( de.pokerth.protocol.ProtoBuf.InitMessage.Builder builderForValue) { - copyOnWrite(); - instance.setInitMessage(builderForValue); + initMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000004; return this; } - /** - * optional .InitMessage initMessage = 3; - */ public Builder mergeInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - copyOnWrite(); - instance.mergeInitMessage(value); - return this; - } - /** - * optional .InitMessage initMessage = 3; - */ - public Builder clearInitMessage() { copyOnWrite(); - instance.clearInitMessage(); - return this; - } - - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - @java.lang.Override - public boolean hasAuthServerChallengeMessage() { - return instance.hasAuthServerChallengeMessage(); - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { - return instance.getAuthServerChallengeMessage(); - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - public Builder setAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - copyOnWrite(); - instance.setAuthServerChallengeMessage(value); - return this; + if (((bitField0_ & 0x00000004) == 0x00000004) && + initMessage_ != de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance()) { + initMessage_ = + de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder(initMessage_).mergeFrom(value).buildPartial(); + } else { + initMessage_ = value; } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ + + bitField0_ |= 0x00000004; + return this; + } + public Builder clearInitMessage() { + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + public boolean hasAuthServerChallengeMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { + return authServerChallengeMessage_; + } + public Builder setAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { + if (value == null) { + throw new NullPointerException(); + } + authServerChallengeMessage_ = value; + + bitField0_ |= 0x00000008; + return this; + } public Builder setAuthServerChallengeMessage( de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAuthServerChallengeMessage(builderForValue); + authServerChallengeMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000008; return this; } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ public Builder mergeAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - copyOnWrite(); - instance.mergeAuthServerChallengeMessage(value); - return this; - } - /** - * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - */ - public Builder clearAuthServerChallengeMessage() { copyOnWrite(); - instance.clearAuthServerChallengeMessage(); - return this; - } - - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - @java.lang.Override - public boolean hasAuthClientResponseMessage() { - return instance.hasAuthClientResponseMessage(); - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { - return instance.getAuthClientResponseMessage(); - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - public Builder setAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - copyOnWrite(); - instance.setAuthClientResponseMessage(value); - return this; + if (((bitField0_ & 0x00000008) == 0x00000008) && + authServerChallengeMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance()) { + authServerChallengeMessage_ = + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder(authServerChallengeMessage_).mergeFrom(value).buildPartial(); + } else { + authServerChallengeMessage_ = value; } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ + + bitField0_ |= 0x00000008; + return this; + } + public Builder clearAuthServerChallengeMessage() { + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + public boolean hasAuthClientResponseMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { + return authClientResponseMessage_; + } + public Builder setAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { + if (value == null) { + throw new NullPointerException(); + } + authClientResponseMessage_ = value; + + bitField0_ |= 0x00000010; + return this; + } public Builder setAuthClientResponseMessage( de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAuthClientResponseMessage(builderForValue); + authClientResponseMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000010; return this; } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ public Builder mergeAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - copyOnWrite(); - instance.mergeAuthClientResponseMessage(value); - return this; - } - /** - * optional .AuthClientResponseMessage authClientResponseMessage = 5; - */ - public Builder clearAuthClientResponseMessage() { copyOnWrite(); - instance.clearAuthClientResponseMessage(); - return this; - } - - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - @java.lang.Override - public boolean hasAuthServerVerificationMessage() { - return instance.hasAuthServerVerificationMessage(); - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { - return instance.getAuthServerVerificationMessage(); - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - public Builder setAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - copyOnWrite(); - instance.setAuthServerVerificationMessage(value); - return this; + if (((bitField0_ & 0x00000010) == 0x00000010) && + authClientResponseMessage_ != de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance()) { + authClientResponseMessage_ = + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder(authClientResponseMessage_).mergeFrom(value).buildPartial(); + } else { + authClientResponseMessage_ = value; } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ + + bitField0_ |= 0x00000010; + return this; + } + public Builder clearAuthClientResponseMessage() { + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + public boolean hasAuthServerVerificationMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { + return authServerVerificationMessage_; + } + public Builder setAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { + if (value == null) { + throw new NullPointerException(); + } + authServerVerificationMessage_ = value; + + bitField0_ |= 0x00000020; + return this; + } public Builder setAuthServerVerificationMessage( de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAuthServerVerificationMessage(builderForValue); + authServerVerificationMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000020; return this; } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ public Builder mergeAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - copyOnWrite(); - instance.mergeAuthServerVerificationMessage(value); - return this; - } - /** - * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - */ - public Builder clearAuthServerVerificationMessage() { copyOnWrite(); - instance.clearAuthServerVerificationMessage(); - return this; - } - - /** - * optional .InitAckMessage initAckMessage = 7; - */ - @java.lang.Override - public boolean hasInitAckMessage() { - return instance.hasInitAckMessage(); - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { - return instance.getInitAckMessage(); - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - public Builder setInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - copyOnWrite(); - instance.setInitAckMessage(value); - return this; + if (((bitField0_ & 0x00000020) == 0x00000020) && + authServerVerificationMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance()) { + authServerVerificationMessage_ = + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder(authServerVerificationMessage_).mergeFrom(value).buildPartial(); + } else { + authServerVerificationMessage_ = value; } - /** - * optional .InitAckMessage initAckMessage = 7; - */ + + bitField0_ |= 0x00000020; + return this; + } + public Builder clearAuthServerVerificationMessage() { + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + // optional .InitAckMessage initAckMessage = 7; + private de.pokerth.protocol.ProtoBuf.InitAckMessage initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + public boolean hasInitAckMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { + return initAckMessage_; + } + public Builder setInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + initAckMessage_ = value; + + bitField0_ |= 0x00000040; + return this; + } public Builder setInitAckMessage( de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setInitAckMessage(builderForValue); + initAckMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000040; return this; } - /** - * optional .InitAckMessage initAckMessage = 7; - */ public Builder mergeInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - copyOnWrite(); - instance.mergeInitAckMessage(value); - return this; - } - /** - * optional .InitAckMessage initAckMessage = 7; - */ - public Builder clearInitAckMessage() { copyOnWrite(); - instance.clearInitAckMessage(); - return this; - } - - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - @java.lang.Override - public boolean hasAvatarRequestMessage() { - return instance.hasAvatarRequestMessage(); - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { - return instance.getAvatarRequestMessage(); - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - public Builder setAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - copyOnWrite(); - instance.setAvatarRequestMessage(value); - return this; + if (((bitField0_ & 0x00000040) == 0x00000040) && + initAckMessage_ != de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance()) { + initAckMessage_ = + de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder(initAckMessage_).mergeFrom(value).buildPartial(); + } else { + initAckMessage_ = value; } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ + + bitField0_ |= 0x00000040; + return this; + } + public Builder clearInitAckMessage() { + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + public boolean hasAvatarRequestMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { + return avatarRequestMessage_; + } + public Builder setAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + avatarRequestMessage_ = value; + + bitField0_ |= 0x00000080; + return this; + } public Builder setAvatarRequestMessage( de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAvatarRequestMessage(builderForValue); + avatarRequestMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000080; return this; } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ public Builder mergeAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - copyOnWrite(); - instance.mergeAvatarRequestMessage(value); - return this; - } - /** - * optional .AvatarRequestMessage avatarRequestMessage = 8; - */ - public Builder clearAvatarRequestMessage() { copyOnWrite(); - instance.clearAvatarRequestMessage(); - return this; - } - - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - @java.lang.Override - public boolean hasAvatarHeaderMessage() { - return instance.hasAvatarHeaderMessage(); - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { - return instance.getAvatarHeaderMessage(); - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - public Builder setAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - copyOnWrite(); - instance.setAvatarHeaderMessage(value); - return this; + if (((bitField0_ & 0x00000080) == 0x00000080) && + avatarRequestMessage_ != de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance()) { + avatarRequestMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder(avatarRequestMessage_).mergeFrom(value).buildPartial(); + } else { + avatarRequestMessage_ = value; } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ + + bitField0_ |= 0x00000080; + return this; + } + public Builder clearAvatarRequestMessage() { + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + public boolean hasAvatarHeaderMessage() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { + return avatarHeaderMessage_; + } + public Builder setAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { + if (value == null) { + throw new NullPointerException(); + } + avatarHeaderMessage_ = value; + + bitField0_ |= 0x00000100; + return this; + } public Builder setAvatarHeaderMessage( de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAvatarHeaderMessage(builderForValue); + avatarHeaderMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000100; return this; } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ public Builder mergeAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - copyOnWrite(); - instance.mergeAvatarHeaderMessage(value); - return this; - } - /** - * optional .AvatarHeaderMessage avatarHeaderMessage = 9; - */ - public Builder clearAvatarHeaderMessage() { copyOnWrite(); - instance.clearAvatarHeaderMessage(); - return this; - } - - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - @java.lang.Override - public boolean hasAvatarDataMessage() { - return instance.hasAvatarDataMessage(); - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { - return instance.getAvatarDataMessage(); - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - public Builder setAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - copyOnWrite(); - instance.setAvatarDataMessage(value); - return this; + if (((bitField0_ & 0x00000100) == 0x00000100) && + avatarHeaderMessage_ != de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance()) { + avatarHeaderMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder(avatarHeaderMessage_).mergeFrom(value).buildPartial(); + } else { + avatarHeaderMessage_ = value; } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ + + bitField0_ |= 0x00000100; + return this; + } + public Builder clearAvatarHeaderMessage() { + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + private de.pokerth.protocol.ProtoBuf.AvatarDataMessage avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + public boolean hasAvatarDataMessage() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { + return avatarDataMessage_; + } + public Builder setAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { + if (value == null) { + throw new NullPointerException(); + } + avatarDataMessage_ = value; + + bitField0_ |= 0x00000200; + return this; + } public Builder setAvatarDataMessage( de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAvatarDataMessage(builderForValue); + avatarDataMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000200; return this; } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ public Builder mergeAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - copyOnWrite(); - instance.mergeAvatarDataMessage(value); - return this; - } - /** - * optional .AvatarDataMessage avatarDataMessage = 10; - */ - public Builder clearAvatarDataMessage() { copyOnWrite(); - instance.clearAvatarDataMessage(); - return this; - } - - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - @java.lang.Override - public boolean hasAvatarEndMessage() { - return instance.hasAvatarEndMessage(); - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { - return instance.getAvatarEndMessage(); - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - public Builder setAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - copyOnWrite(); - instance.setAvatarEndMessage(value); - return this; + if (((bitField0_ & 0x00000200) == 0x00000200) && + avatarDataMessage_ != de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance()) { + avatarDataMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder(avatarDataMessage_).mergeFrom(value).buildPartial(); + } else { + avatarDataMessage_ = value; } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ + + bitField0_ |= 0x00000200; + return this; + } + public Builder clearAvatarDataMessage() { + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + private de.pokerth.protocol.ProtoBuf.AvatarEndMessage avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + public boolean hasAvatarEndMessage() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { + return avatarEndMessage_; + } + public Builder setAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { + if (value == null) { + throw new NullPointerException(); + } + avatarEndMessage_ = value; + + bitField0_ |= 0x00000400; + return this; + } public Builder setAvatarEndMessage( de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAvatarEndMessage(builderForValue); + avatarEndMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000400; return this; } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ public Builder mergeAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - copyOnWrite(); - instance.mergeAvatarEndMessage(value); - return this; - } - /** - * optional .AvatarEndMessage avatarEndMessage = 11; - */ - public Builder clearAvatarEndMessage() { copyOnWrite(); - instance.clearAvatarEndMessage(); - return this; - } - - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - @java.lang.Override - public boolean hasUnknownAvatarMessage() { - return instance.hasUnknownAvatarMessage(); - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { - return instance.getUnknownAvatarMessage(); - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - public Builder setUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - copyOnWrite(); - instance.setUnknownAvatarMessage(value); - return this; + if (((bitField0_ & 0x00000400) == 0x00000400) && + avatarEndMessage_ != de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance()) { + avatarEndMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder(avatarEndMessage_).mergeFrom(value).buildPartial(); + } else { + avatarEndMessage_ = value; } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ + + bitField0_ |= 0x00000400; + return this; + } + public Builder clearAvatarEndMessage() { + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + public boolean hasUnknownAvatarMessage() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { + return unknownAvatarMessage_; + } + public Builder setUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { + if (value == null) { + throw new NullPointerException(); + } + unknownAvatarMessage_ = value; + + bitField0_ |= 0x00000800; + return this; + } public Builder setUnknownAvatarMessage( de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder builderForValue) { - copyOnWrite(); - instance.setUnknownAvatarMessage(builderForValue); + unknownAvatarMessage_ = builderForValue.build(); + + bitField0_ |= 0x00000800; return this; } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ public Builder mergeUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - copyOnWrite(); - instance.mergeUnknownAvatarMessage(value); - return this; - } - /** - * optional .UnknownAvatarMessage unknownAvatarMessage = 12; - */ - public Builder clearUnknownAvatarMessage() { copyOnWrite(); - instance.clearUnknownAvatarMessage(); - return this; - } - - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - @java.lang.Override - public boolean hasPlayerListMessage() { - return instance.hasPlayerListMessage(); - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { - return instance.getPlayerListMessage(); - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - public Builder setPlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - copyOnWrite(); - instance.setPlayerListMessage(value); - return this; + if (((bitField0_ & 0x00000800) == 0x00000800) && + unknownAvatarMessage_ != de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance()) { + unknownAvatarMessage_ = + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder(unknownAvatarMessage_).mergeFrom(value).buildPartial(); + } else { + unknownAvatarMessage_ = value; } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ + + bitField0_ |= 0x00000800; + return this; + } + public Builder clearUnknownAvatarMessage() { + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + + // optional .PlayerListMessage playerListMessage = 13; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + public boolean hasPlayerListMessage() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { + return playerListMessage_; + } + public Builder setPlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playerListMessage_ = value; + + bitField0_ |= 0x00001000; + return this; + } public Builder setPlayerListMessage( de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerListMessage(builderForValue); + playerListMessage_ = builderForValue.build(); + + bitField0_ |= 0x00001000; return this; } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ public Builder mergePlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - copyOnWrite(); - instance.mergePlayerListMessage(value); - return this; - } - /** - * optional .PlayerListMessage playerListMessage = 13; - */ - public Builder clearPlayerListMessage() { copyOnWrite(); - instance.clearPlayerListMessage(); - return this; - } - - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - @java.lang.Override - public boolean hasGameListNewMessage() { - return instance.hasGameListNewMessage(); - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { - return instance.getGameListNewMessage(); - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - public Builder setGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - copyOnWrite(); - instance.setGameListNewMessage(value); - return this; + if (((bitField0_ & 0x00001000) == 0x00001000) && + playerListMessage_ != de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance()) { + playerListMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder(playerListMessage_).mergeFrom(value).buildPartial(); + } else { + playerListMessage_ = value; } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ + + bitField0_ |= 0x00001000; + return this; + } + public Builder clearPlayerListMessage() { + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + + // optional .GameListNewMessage gameListNewMessage = 14; + private de.pokerth.protocol.ProtoBuf.GameListNewMessage gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + public boolean hasGameListNewMessage() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { + return gameListNewMessage_; + } + public Builder setGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListNewMessage_ = value; + + bitField0_ |= 0x00002000; + return this; + } public Builder setGameListNewMessage( de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListNewMessage(builderForValue); + gameListNewMessage_ = builderForValue.build(); + + bitField0_ |= 0x00002000; return this; } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ public Builder mergeGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - copyOnWrite(); - instance.mergeGameListNewMessage(value); - return this; - } - /** - * optional .GameListNewMessage gameListNewMessage = 14; - */ - public Builder clearGameListNewMessage() { copyOnWrite(); - instance.clearGameListNewMessage(); - return this; - } - - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - @java.lang.Override - public boolean hasGameListUpdateMessage() { - return instance.hasGameListUpdateMessage(); - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { - return instance.getGameListUpdateMessage(); - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - public Builder setGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - copyOnWrite(); - instance.setGameListUpdateMessage(value); - return this; + if (((bitField0_ & 0x00002000) == 0x00002000) && + gameListNewMessage_ != de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance()) { + gameListNewMessage_ = + de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder(gameListNewMessage_).mergeFrom(value).buildPartial(); + } else { + gameListNewMessage_ = value; } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ + + bitField0_ |= 0x00002000; + return this; + } + public Builder clearGameListNewMessage() { + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + public boolean hasGameListUpdateMessage() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { + return gameListUpdateMessage_; + } + public Builder setGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListUpdateMessage_ = value; + + bitField0_ |= 0x00004000; + return this; + } public Builder setGameListUpdateMessage( de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListUpdateMessage(builderForValue); + gameListUpdateMessage_ = builderForValue.build(); + + bitField0_ |= 0x00004000; return this; } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ public Builder mergeGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - copyOnWrite(); - instance.mergeGameListUpdateMessage(value); - return this; - } - /** - * optional .GameListUpdateMessage gameListUpdateMessage = 15; - */ - public Builder clearGameListUpdateMessage() { copyOnWrite(); - instance.clearGameListUpdateMessage(); - return this; - } - - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - @java.lang.Override - public boolean hasGameListPlayerJoinedMessage() { - return instance.hasGameListPlayerJoinedMessage(); - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { - return instance.getGameListPlayerJoinedMessage(); - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - public Builder setGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - copyOnWrite(); - instance.setGameListPlayerJoinedMessage(value); - return this; + if (((bitField0_ & 0x00004000) == 0x00004000) && + gameListUpdateMessage_ != de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance()) { + gameListUpdateMessage_ = + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder(gameListUpdateMessage_).mergeFrom(value).buildPartial(); + } else { + gameListUpdateMessage_ = value; } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ + + bitField0_ |= 0x00004000; + return this; + } + public Builder clearGameListUpdateMessage() { + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + public boolean hasGameListPlayerJoinedMessage() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { + return gameListPlayerJoinedMessage_; + } + public Builder setGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListPlayerJoinedMessage_ = value; + + bitField0_ |= 0x00008000; + return this; + } public Builder setGameListPlayerJoinedMessage( de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListPlayerJoinedMessage(builderForValue); + gameListPlayerJoinedMessage_ = builderForValue.build(); + + bitField0_ |= 0x00008000; return this; } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ public Builder mergeGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - copyOnWrite(); - instance.mergeGameListPlayerJoinedMessage(value); - return this; - } - /** - * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - */ - public Builder clearGameListPlayerJoinedMessage() { copyOnWrite(); - instance.clearGameListPlayerJoinedMessage(); - return this; - } - - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - @java.lang.Override - public boolean hasGameListPlayerLeftMessage() { - return instance.hasGameListPlayerLeftMessage(); - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { - return instance.getGameListPlayerLeftMessage(); - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - public Builder setGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - copyOnWrite(); - instance.setGameListPlayerLeftMessage(value); - return this; + if (((bitField0_ & 0x00008000) == 0x00008000) && + gameListPlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance()) { + gameListPlayerJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder(gameListPlayerJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gameListPlayerJoinedMessage_ = value; } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ + + bitField0_ |= 0x00008000; + return this; + } + public Builder clearGameListPlayerJoinedMessage() { + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + public boolean hasGameListPlayerLeftMessage() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { + return gameListPlayerLeftMessage_; + } + public Builder setGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListPlayerLeftMessage_ = value; + + bitField0_ |= 0x00010000; + return this; + } public Builder setGameListPlayerLeftMessage( de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListPlayerLeftMessage(builderForValue); + gameListPlayerLeftMessage_ = builderForValue.build(); + + bitField0_ |= 0x00010000; return this; } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ public Builder mergeGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - copyOnWrite(); - instance.mergeGameListPlayerLeftMessage(value); - return this; - } - /** - * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - */ - public Builder clearGameListPlayerLeftMessage() { copyOnWrite(); - instance.clearGameListPlayerLeftMessage(); - return this; - } - - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - @java.lang.Override - public boolean hasGameListAdminChangedMessage() { - return instance.hasGameListAdminChangedMessage(); - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { - return instance.getGameListAdminChangedMessage(); - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - public Builder setGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - copyOnWrite(); - instance.setGameListAdminChangedMessage(value); - return this; + if (((bitField0_ & 0x00010000) == 0x00010000) && + gameListPlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance()) { + gameListPlayerLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder(gameListPlayerLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gameListPlayerLeftMessage_ = value; } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ + + bitField0_ |= 0x00010000; + return this; + } + public Builder clearGameListPlayerLeftMessage() { + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00010000); + return this; + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + public boolean hasGameListAdminChangedMessage() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { + return gameListAdminChangedMessage_; + } + public Builder setGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListAdminChangedMessage_ = value; + + bitField0_ |= 0x00020000; + return this; + } public Builder setGameListAdminChangedMessage( de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListAdminChangedMessage(builderForValue); + gameListAdminChangedMessage_ = builderForValue.build(); + + bitField0_ |= 0x00020000; return this; } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ public Builder mergeGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - copyOnWrite(); - instance.mergeGameListAdminChangedMessage(value); - return this; - } - /** - * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - */ - public Builder clearGameListAdminChangedMessage() { copyOnWrite(); - instance.clearGameListAdminChangedMessage(); - return this; - } - - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - @java.lang.Override - public boolean hasPlayerInfoRequestMessage() { - return instance.hasPlayerInfoRequestMessage(); - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { - return instance.getPlayerInfoRequestMessage(); - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - public Builder setPlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - copyOnWrite(); - instance.setPlayerInfoRequestMessage(value); - return this; + if (((bitField0_ & 0x00020000) == 0x00020000) && + gameListAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance()) { + gameListAdminChangedMessage_ = + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder(gameListAdminChangedMessage_).mergeFrom(value).buildPartial(); + } else { + gameListAdminChangedMessage_ = value; } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ + + bitField0_ |= 0x00020000; + return this; + } + public Builder clearGameListAdminChangedMessage() { + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + public boolean hasPlayerInfoRequestMessage() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { + return playerInfoRequestMessage_; + } + public Builder setPlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoRequestMessage_ = value; + + bitField0_ |= 0x00040000; + return this; + } public Builder setPlayerInfoRequestMessage( de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerInfoRequestMessage(builderForValue); + playerInfoRequestMessage_ = builderForValue.build(); + + bitField0_ |= 0x00040000; return this; } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ public Builder mergePlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - copyOnWrite(); - instance.mergePlayerInfoRequestMessage(value); - return this; - } - /** - * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - */ - public Builder clearPlayerInfoRequestMessage() { copyOnWrite(); - instance.clearPlayerInfoRequestMessage(); - return this; - } - - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - @java.lang.Override - public boolean hasPlayerInfoReplyMessage() { - return instance.hasPlayerInfoReplyMessage(); - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { - return instance.getPlayerInfoReplyMessage(); - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - public Builder setPlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - copyOnWrite(); - instance.setPlayerInfoReplyMessage(value); - return this; + if (((bitField0_ & 0x00040000) == 0x00040000) && + playerInfoRequestMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance()) { + playerInfoRequestMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder(playerInfoRequestMessage_).mergeFrom(value).buildPartial(); + } else { + playerInfoRequestMessage_ = value; } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ + + bitField0_ |= 0x00040000; + return this; + } + public Builder clearPlayerInfoRequestMessage() { + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00040000); + return this; + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + public boolean hasPlayerInfoReplyMessage() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { + return playerInfoReplyMessage_; + } + public Builder setPlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoReplyMessage_ = value; + + bitField0_ |= 0x00080000; + return this; + } public Builder setPlayerInfoReplyMessage( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerInfoReplyMessage(builderForValue); + playerInfoReplyMessage_ = builderForValue.build(); + + bitField0_ |= 0x00080000; return this; } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ public Builder mergePlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - copyOnWrite(); - instance.mergePlayerInfoReplyMessage(value); - return this; - } - /** - * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - */ - public Builder clearPlayerInfoReplyMessage() { copyOnWrite(); - instance.clearPlayerInfoReplyMessage(); - return this; - } - - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - @java.lang.Override - public boolean hasSubscriptionRequestMessage() { - return instance.hasSubscriptionRequestMessage(); - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { - return instance.getSubscriptionRequestMessage(); - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - public Builder setSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - copyOnWrite(); - instance.setSubscriptionRequestMessage(value); - return this; + if (((bitField0_ & 0x00080000) == 0x00080000) && + playerInfoReplyMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance()) { + playerInfoReplyMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder(playerInfoReplyMessage_).mergeFrom(value).buildPartial(); + } else { + playerInfoReplyMessage_ = value; } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ + + bitField0_ |= 0x00080000; + return this; + } + public Builder clearPlayerInfoReplyMessage() { + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00080000); + return this; + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + public boolean hasSubscriptionRequestMessage() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { + return subscriptionRequestMessage_; + } + public Builder setSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionRequestMessage_ = value; + + bitField0_ |= 0x00100000; + return this; + } public Builder setSubscriptionRequestMessage( de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setSubscriptionRequestMessage(builderForValue); + subscriptionRequestMessage_ = builderForValue.build(); + + bitField0_ |= 0x00100000; return this; } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ public Builder mergeSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - copyOnWrite(); - instance.mergeSubscriptionRequestMessage(value); - return this; - } - /** - * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - */ - public Builder clearSubscriptionRequestMessage() { copyOnWrite(); - instance.clearSubscriptionRequestMessage(); - return this; - } - - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - @java.lang.Override - public boolean hasJoinExistingGameMessage() { - return instance.hasJoinExistingGameMessage(); - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { - return instance.getJoinExistingGameMessage(); - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - public Builder setJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - copyOnWrite(); - instance.setJoinExistingGameMessage(value); - return this; + if (((bitField0_ & 0x00100000) == 0x00100000) && + subscriptionRequestMessage_ != de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance()) { + subscriptionRequestMessage_ = + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder(subscriptionRequestMessage_).mergeFrom(value).buildPartial(); + } else { + subscriptionRequestMessage_ = value; } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ + + bitField0_ |= 0x00100000; + return this; + } + public Builder clearSubscriptionRequestMessage() { + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00100000); + return this; + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + public boolean hasJoinExistingGameMessage() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { + return joinExistingGameMessage_; + } + public Builder setJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + joinExistingGameMessage_ = value; + + bitField0_ |= 0x00200000; + return this; + } public Builder setJoinExistingGameMessage( de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setJoinExistingGameMessage(builderForValue); + joinExistingGameMessage_ = builderForValue.build(); + + bitField0_ |= 0x00200000; return this; } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ public Builder mergeJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - copyOnWrite(); - instance.mergeJoinExistingGameMessage(value); - return this; - } - /** - * optional .JoinExistingGameMessage joinExistingGameMessage = 22; - */ - public Builder clearJoinExistingGameMessage() { copyOnWrite(); - instance.clearJoinExistingGameMessage(); - return this; - } - - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - @java.lang.Override - public boolean hasJoinNewGameMessage() { - return instance.hasJoinNewGameMessage(); - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { - return instance.getJoinNewGameMessage(); - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - public Builder setJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - copyOnWrite(); - instance.setJoinNewGameMessage(value); - return this; + if (((bitField0_ & 0x00200000) == 0x00200000) && + joinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance()) { + joinExistingGameMessage_ = + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder(joinExistingGameMessage_).mergeFrom(value).buildPartial(); + } else { + joinExistingGameMessage_ = value; } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ + + bitField0_ |= 0x00200000; + return this; + } + public Builder clearJoinExistingGameMessage() { + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00200000); + return this; + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + public boolean hasJoinNewGameMessage() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { + return joinNewGameMessage_; + } + public Builder setJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + joinNewGameMessage_ = value; + + bitField0_ |= 0x00400000; + return this; + } public Builder setJoinNewGameMessage( de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setJoinNewGameMessage(builderForValue); + joinNewGameMessage_ = builderForValue.build(); + + bitField0_ |= 0x00400000; return this; } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ public Builder mergeJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - copyOnWrite(); - instance.mergeJoinNewGameMessage(value); - return this; - } - /** - * optional .JoinNewGameMessage joinNewGameMessage = 23; - */ - public Builder clearJoinNewGameMessage() { copyOnWrite(); - instance.clearJoinNewGameMessage(); - return this; - } - - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - @java.lang.Override - public boolean hasRejoinExistingGameMessage() { - return instance.hasRejoinExistingGameMessage(); - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { - return instance.getRejoinExistingGameMessage(); - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - public Builder setRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - copyOnWrite(); - instance.setRejoinExistingGameMessage(value); - return this; + if (((bitField0_ & 0x00400000) == 0x00400000) && + joinNewGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance()) { + joinNewGameMessage_ = + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder(joinNewGameMessage_).mergeFrom(value).buildPartial(); + } else { + joinNewGameMessage_ = value; } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ + + bitField0_ |= 0x00400000; + return this; + } + public Builder clearJoinNewGameMessage() { + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00400000); + return this; + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + public boolean hasRejoinExistingGameMessage() { + return ((bitField0_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { + return rejoinExistingGameMessage_; + } + public Builder setRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + rejoinExistingGameMessage_ = value; + + bitField0_ |= 0x00800000; + return this; + } public Builder setRejoinExistingGameMessage( de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRejoinExistingGameMessage(builderForValue); + rejoinExistingGameMessage_ = builderForValue.build(); + + bitField0_ |= 0x00800000; return this; } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ public Builder mergeRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - copyOnWrite(); - instance.mergeRejoinExistingGameMessage(value); - return this; - } - /** - * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - */ - public Builder clearRejoinExistingGameMessage() { copyOnWrite(); - instance.clearRejoinExistingGameMessage(); - return this; - } - - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - @java.lang.Override - public boolean hasJoinGameAckMessage() { - return instance.hasJoinGameAckMessage(); - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { - return instance.getJoinGameAckMessage(); - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - public Builder setJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - copyOnWrite(); - instance.setJoinGameAckMessage(value); - return this; + if (((bitField0_ & 0x00800000) == 0x00800000) && + rejoinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance()) { + rejoinExistingGameMessage_ = + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder(rejoinExistingGameMessage_).mergeFrom(value).buildPartial(); + } else { + rejoinExistingGameMessage_ = value; } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ + + bitField0_ |= 0x00800000; + return this; + } + public Builder clearRejoinExistingGameMessage() { + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x00800000); + return this; + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + public boolean hasJoinGameAckMessage() { + return ((bitField0_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { + return joinGameAckMessage_; + } + public Builder setJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + joinGameAckMessage_ = value; + + bitField0_ |= 0x01000000; + return this; + } public Builder setJoinGameAckMessage( de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setJoinGameAckMessage(builderForValue); + joinGameAckMessage_ = builderForValue.build(); + + bitField0_ |= 0x01000000; return this; } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ public Builder mergeJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - copyOnWrite(); - instance.mergeJoinGameAckMessage(value); - return this; - } - /** - * optional .JoinGameAckMessage joinGameAckMessage = 25; - */ - public Builder clearJoinGameAckMessage() { copyOnWrite(); - instance.clearJoinGameAckMessage(); - return this; - } - - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - @java.lang.Override - public boolean hasJoinGameFailedMessage() { - return instance.hasJoinGameFailedMessage(); - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { - return instance.getJoinGameFailedMessage(); - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - public Builder setJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - copyOnWrite(); - instance.setJoinGameFailedMessage(value); - return this; + if (((bitField0_ & 0x01000000) == 0x01000000) && + joinGameAckMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance()) { + joinGameAckMessage_ = + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder(joinGameAckMessage_).mergeFrom(value).buildPartial(); + } else { + joinGameAckMessage_ = value; } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ + + bitField0_ |= 0x01000000; + return this; + } + public Builder clearJoinGameAckMessage() { + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x01000000); + return this; + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + public boolean hasJoinGameFailedMessage() { + return ((bitField0_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { + return joinGameFailedMessage_; + } + public Builder setJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + joinGameFailedMessage_ = value; + + bitField0_ |= 0x02000000; + return this; + } public Builder setJoinGameFailedMessage( de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setJoinGameFailedMessage(builderForValue); + joinGameFailedMessage_ = builderForValue.build(); + + bitField0_ |= 0x02000000; return this; } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ public Builder mergeJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - copyOnWrite(); - instance.mergeJoinGameFailedMessage(value); - return this; - } - /** - * optional .JoinGameFailedMessage joinGameFailedMessage = 26; - */ - public Builder clearJoinGameFailedMessage() { copyOnWrite(); - instance.clearJoinGameFailedMessage(); - return this; - } - - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - @java.lang.Override - public boolean hasGamePlayerJoinedMessage() { - return instance.hasGamePlayerJoinedMessage(); - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { - return instance.getGamePlayerJoinedMessage(); - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - public Builder setGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - copyOnWrite(); - instance.setGamePlayerJoinedMessage(value); - return this; + if (((bitField0_ & 0x02000000) == 0x02000000) && + joinGameFailedMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance()) { + joinGameFailedMessage_ = + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder(joinGameFailedMessage_).mergeFrom(value).buildPartial(); + } else { + joinGameFailedMessage_ = value; } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ + + bitField0_ |= 0x02000000; + return this; + } + public Builder clearJoinGameFailedMessage() { + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x02000000); + return this; + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + public boolean hasGamePlayerJoinedMessage() { + return ((bitField0_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { + return gamePlayerJoinedMessage_; + } + public Builder setGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gamePlayerJoinedMessage_ = value; + + bitField0_ |= 0x04000000; + return this; + } public Builder setGamePlayerJoinedMessage( de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGamePlayerJoinedMessage(builderForValue); + gamePlayerJoinedMessage_ = builderForValue.build(); + + bitField0_ |= 0x04000000; return this; } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ public Builder mergeGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - copyOnWrite(); - instance.mergeGamePlayerJoinedMessage(value); - return this; - } - /** - * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - */ - public Builder clearGamePlayerJoinedMessage() { copyOnWrite(); - instance.clearGamePlayerJoinedMessage(); - return this; - } - - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - @java.lang.Override - public boolean hasGamePlayerLeftMessage() { - return instance.hasGamePlayerLeftMessage(); - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { - return instance.getGamePlayerLeftMessage(); - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - public Builder setGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - copyOnWrite(); - instance.setGamePlayerLeftMessage(value); - return this; + if (((bitField0_ & 0x04000000) == 0x04000000) && + gamePlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance()) { + gamePlayerJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder(gamePlayerJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gamePlayerJoinedMessage_ = value; } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ + + bitField0_ |= 0x04000000; + return this; + } + public Builder clearGamePlayerJoinedMessage() { + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x04000000); + return this; + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + public boolean hasGamePlayerLeftMessage() { + return ((bitField0_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { + return gamePlayerLeftMessage_; + } + public Builder setGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gamePlayerLeftMessage_ = value; + + bitField0_ |= 0x08000000; + return this; + } public Builder setGamePlayerLeftMessage( de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGamePlayerLeftMessage(builderForValue); + gamePlayerLeftMessage_ = builderForValue.build(); + + bitField0_ |= 0x08000000; return this; } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ public Builder mergeGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - copyOnWrite(); - instance.mergeGamePlayerLeftMessage(value); - return this; - } - /** - * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - */ - public Builder clearGamePlayerLeftMessage() { copyOnWrite(); - instance.clearGamePlayerLeftMessage(); - return this; - } - - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - @java.lang.Override - public boolean hasGameAdminChangedMessage() { - return instance.hasGameAdminChangedMessage(); - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { - return instance.getGameAdminChangedMessage(); - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - public Builder setGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - copyOnWrite(); - instance.setGameAdminChangedMessage(value); - return this; + if (((bitField0_ & 0x08000000) == 0x08000000) && + gamePlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance()) { + gamePlayerLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder(gamePlayerLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gamePlayerLeftMessage_ = value; } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ + + bitField0_ |= 0x08000000; + return this; + } + public Builder clearGamePlayerLeftMessage() { + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x08000000); + return this; + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + public boolean hasGameAdminChangedMessage() { + return ((bitField0_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { + return gameAdminChangedMessage_; + } + public Builder setGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameAdminChangedMessage_ = value; + + bitField0_ |= 0x10000000; + return this; + } public Builder setGameAdminChangedMessage( de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameAdminChangedMessage(builderForValue); + gameAdminChangedMessage_ = builderForValue.build(); + + bitField0_ |= 0x10000000; return this; } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ public Builder mergeGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - copyOnWrite(); - instance.mergeGameAdminChangedMessage(value); - return this; - } - /** - * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - */ - public Builder clearGameAdminChangedMessage() { copyOnWrite(); - instance.clearGameAdminChangedMessage(); - return this; - } - - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - @java.lang.Override - public boolean hasRemovedFromGameMessage() { - return instance.hasRemovedFromGameMessage(); - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { - return instance.getRemovedFromGameMessage(); - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - public Builder setRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - copyOnWrite(); - instance.setRemovedFromGameMessage(value); - return this; + if (((bitField0_ & 0x10000000) == 0x10000000) && + gameAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance()) { + gameAdminChangedMessage_ = + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder(gameAdminChangedMessage_).mergeFrom(value).buildPartial(); + } else { + gameAdminChangedMessage_ = value; } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ + + bitField0_ |= 0x10000000; + return this; + } + public Builder clearGameAdminChangedMessage() { + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x10000000); + return this; + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + public boolean hasRemovedFromGameMessage() { + return ((bitField0_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { + return removedFromGameMessage_; + } + public Builder setRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + removedFromGameMessage_ = value; + + bitField0_ |= 0x20000000; + return this; + } public Builder setRemovedFromGameMessage( de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRemovedFromGameMessage(builderForValue); + removedFromGameMessage_ = builderForValue.build(); + + bitField0_ |= 0x20000000; return this; } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ public Builder mergeRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - copyOnWrite(); - instance.mergeRemovedFromGameMessage(value); - return this; - } - /** - * optional .RemovedFromGameMessage removedFromGameMessage = 30; - */ - public Builder clearRemovedFromGameMessage() { copyOnWrite(); - instance.clearRemovedFromGameMessage(); - return this; - } - - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - @java.lang.Override - public boolean hasKickPlayerRequestMessage() { - return instance.hasKickPlayerRequestMessage(); - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { - return instance.getKickPlayerRequestMessage(); - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - public Builder setKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - copyOnWrite(); - instance.setKickPlayerRequestMessage(value); - return this; + if (((bitField0_ & 0x20000000) == 0x20000000) && + removedFromGameMessage_ != de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance()) { + removedFromGameMessage_ = + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder(removedFromGameMessage_).mergeFrom(value).buildPartial(); + } else { + removedFromGameMessage_ = value; } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ + + bitField0_ |= 0x20000000; + return this; + } + public Builder clearRemovedFromGameMessage() { + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x20000000); + return this; + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + public boolean hasKickPlayerRequestMessage() { + return ((bitField0_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { + return kickPlayerRequestMessage_; + } + public Builder setKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + kickPlayerRequestMessage_ = value; + + bitField0_ |= 0x40000000; + return this; + } public Builder setKickPlayerRequestMessage( de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setKickPlayerRequestMessage(builderForValue); + kickPlayerRequestMessage_ = builderForValue.build(); + + bitField0_ |= 0x40000000; return this; } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ public Builder mergeKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - copyOnWrite(); - instance.mergeKickPlayerRequestMessage(value); - return this; - } - /** - * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - */ - public Builder clearKickPlayerRequestMessage() { copyOnWrite(); - instance.clearKickPlayerRequestMessage(); - return this; - } - - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - @java.lang.Override - public boolean hasLeaveGameRequestMessage() { - return instance.hasLeaveGameRequestMessage(); - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { - return instance.getLeaveGameRequestMessage(); - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - public Builder setLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - copyOnWrite(); - instance.setLeaveGameRequestMessage(value); - return this; + if (((bitField0_ & 0x40000000) == 0x40000000) && + kickPlayerRequestMessage_ != de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance()) { + kickPlayerRequestMessage_ = + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder(kickPlayerRequestMessage_).mergeFrom(value).buildPartial(); + } else { + kickPlayerRequestMessage_ = value; } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ + + bitField0_ |= 0x40000000; + return this; + } + public Builder clearKickPlayerRequestMessage() { + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x40000000); + return this; + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + public boolean hasLeaveGameRequestMessage() { + return ((bitField0_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { + return leaveGameRequestMessage_; + } + public Builder setLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + leaveGameRequestMessage_ = value; + + bitField0_ |= 0x80000000; + return this; + } public Builder setLeaveGameRequestMessage( de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setLeaveGameRequestMessage(builderForValue); + leaveGameRequestMessage_ = builderForValue.build(); + + bitField0_ |= 0x80000000; return this; } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ public Builder mergeLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - copyOnWrite(); - instance.mergeLeaveGameRequestMessage(value); - return this; - } - /** - * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - */ - public Builder clearLeaveGameRequestMessage() { copyOnWrite(); - instance.clearLeaveGameRequestMessage(); - return this; - } - - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - @java.lang.Override - public boolean hasInvitePlayerToGameMessage() { - return instance.hasInvitePlayerToGameMessage(); - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { - return instance.getInvitePlayerToGameMessage(); - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - public Builder setInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - copyOnWrite(); - instance.setInvitePlayerToGameMessage(value); - return this; + if (((bitField0_ & 0x80000000) == 0x80000000) && + leaveGameRequestMessage_ != de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance()) { + leaveGameRequestMessage_ = + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder(leaveGameRequestMessage_).mergeFrom(value).buildPartial(); + } else { + leaveGameRequestMessage_ = value; } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ + + bitField0_ |= 0x80000000; + return this; + } + public Builder clearLeaveGameRequestMessage() { + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + + bitField0_ = (bitField0_ & ~0x80000000); + return this; + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + public boolean hasInvitePlayerToGameMessage() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { + return invitePlayerToGameMessage_; + } + public Builder setInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + invitePlayerToGameMessage_ = value; + + bitField1_ |= 0x00000001; + return this; + } public Builder setInvitePlayerToGameMessage( de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setInvitePlayerToGameMessage(builderForValue); + invitePlayerToGameMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000001; return this; } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ public Builder mergeInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - copyOnWrite(); - instance.mergeInvitePlayerToGameMessage(value); - return this; - } - /** - * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - */ - public Builder clearInvitePlayerToGameMessage() { copyOnWrite(); - instance.clearInvitePlayerToGameMessage(); - return this; - } - - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - @java.lang.Override - public boolean hasInviteNotifyMessage() { - return instance.hasInviteNotifyMessage(); - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { - return instance.getInviteNotifyMessage(); - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - public Builder setInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - copyOnWrite(); - instance.setInviteNotifyMessage(value); - return this; + if (((bitField1_ & 0x00000001) == 0x00000001) && + invitePlayerToGameMessage_ != de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance()) { + invitePlayerToGameMessage_ = + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder(invitePlayerToGameMessage_).mergeFrom(value).buildPartial(); + } else { + invitePlayerToGameMessage_ = value; } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ + + bitField1_ |= 0x00000001; + return this; + } + public Builder clearInvitePlayerToGameMessage() { + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000001); + return this; + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + public boolean hasInviteNotifyMessage() { + return ((bitField1_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { + return inviteNotifyMessage_; + } + public Builder setInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { + if (value == null) { + throw new NullPointerException(); + } + inviteNotifyMessage_ = value; + + bitField1_ |= 0x00000002; + return this; + } public Builder setInviteNotifyMessage( de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder builderForValue) { - copyOnWrite(); - instance.setInviteNotifyMessage(builderForValue); + inviteNotifyMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000002; return this; } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ public Builder mergeInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - copyOnWrite(); - instance.mergeInviteNotifyMessage(value); - return this; - } - /** - * optional .InviteNotifyMessage inviteNotifyMessage = 34; - */ - public Builder clearInviteNotifyMessage() { copyOnWrite(); - instance.clearInviteNotifyMessage(); - return this; - } - - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - @java.lang.Override - public boolean hasRejectGameInvitationMessage() { - return instance.hasRejectGameInvitationMessage(); - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { - return instance.getRejectGameInvitationMessage(); - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - public Builder setRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - copyOnWrite(); - instance.setRejectGameInvitationMessage(value); - return this; + if (((bitField1_ & 0x00000002) == 0x00000002) && + inviteNotifyMessage_ != de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance()) { + inviteNotifyMessage_ = + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder(inviteNotifyMessage_).mergeFrom(value).buildPartial(); + } else { + inviteNotifyMessage_ = value; } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ + + bitField1_ |= 0x00000002; + return this; + } + public Builder clearInviteNotifyMessage() { + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000002); + return this; + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + public boolean hasRejectGameInvitationMessage() { + return ((bitField1_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { + return rejectGameInvitationMessage_; + } + public Builder setRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { + if (value == null) { + throw new NullPointerException(); + } + rejectGameInvitationMessage_ = value; + + bitField1_ |= 0x00000004; + return this; + } public Builder setRejectGameInvitationMessage( de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRejectGameInvitationMessage(builderForValue); + rejectGameInvitationMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000004; return this; } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ public Builder mergeRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - copyOnWrite(); - instance.mergeRejectGameInvitationMessage(value); - return this; - } - /** - * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - */ - public Builder clearRejectGameInvitationMessage() { copyOnWrite(); - instance.clearRejectGameInvitationMessage(); - return this; - } - - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - @java.lang.Override - public boolean hasRejectInvNotifyMessage() { - return instance.hasRejectInvNotifyMessage(); - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { - return instance.getRejectInvNotifyMessage(); - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - public Builder setRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - copyOnWrite(); - instance.setRejectInvNotifyMessage(value); - return this; + if (((bitField1_ & 0x00000004) == 0x00000004) && + rejectGameInvitationMessage_ != de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance()) { + rejectGameInvitationMessage_ = + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder(rejectGameInvitationMessage_).mergeFrom(value).buildPartial(); + } else { + rejectGameInvitationMessage_ = value; } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ + + bitField1_ |= 0x00000004; + return this; + } + public Builder clearRejectGameInvitationMessage() { + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000004); + return this; + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + public boolean hasRejectInvNotifyMessage() { + return ((bitField1_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { + return rejectInvNotifyMessage_; + } + public Builder setRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { + if (value == null) { + throw new NullPointerException(); + } + rejectInvNotifyMessage_ = value; + + bitField1_ |= 0x00000008; + return this; + } public Builder setRejectInvNotifyMessage( de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder builderForValue) { - copyOnWrite(); - instance.setRejectInvNotifyMessage(builderForValue); + rejectInvNotifyMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000008; return this; } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ public Builder mergeRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - copyOnWrite(); - instance.mergeRejectInvNotifyMessage(value); - return this; - } - /** - * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - */ - public Builder clearRejectInvNotifyMessage() { copyOnWrite(); - instance.clearRejectInvNotifyMessage(); - return this; - } - - /** - * optional .StartEventMessage startEventMessage = 37; - */ - @java.lang.Override - public boolean hasStartEventMessage() { - return instance.hasStartEventMessage(); - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { - return instance.getStartEventMessage(); - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - public Builder setStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - copyOnWrite(); - instance.setStartEventMessage(value); - return this; + if (((bitField1_ & 0x00000008) == 0x00000008) && + rejectInvNotifyMessage_ != de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance()) { + rejectInvNotifyMessage_ = + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder(rejectInvNotifyMessage_).mergeFrom(value).buildPartial(); + } else { + rejectInvNotifyMessage_ = value; } - /** - * optional .StartEventMessage startEventMessage = 37; - */ + + bitField1_ |= 0x00000008; + return this; + } + public Builder clearRejectInvNotifyMessage() { + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000008); + return this; + } + + // optional .StartEventMessage startEventMessage = 37; + private de.pokerth.protocol.ProtoBuf.StartEventMessage startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + public boolean hasStartEventMessage() { + return ((bitField1_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { + return startEventMessage_; + } + public Builder setStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { + if (value == null) { + throw new NullPointerException(); + } + startEventMessage_ = value; + + bitField1_ |= 0x00000010; + return this; + } public Builder setStartEventMessage( de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder builderForValue) { - copyOnWrite(); - instance.setStartEventMessage(builderForValue); + startEventMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000010; return this; } - /** - * optional .StartEventMessage startEventMessage = 37; - */ public Builder mergeStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - copyOnWrite(); - instance.mergeStartEventMessage(value); - return this; - } - /** - * optional .StartEventMessage startEventMessage = 37; - */ - public Builder clearStartEventMessage() { copyOnWrite(); - instance.clearStartEventMessage(); - return this; - } - - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - @java.lang.Override - public boolean hasStartEventAckMessage() { - return instance.hasStartEventAckMessage(); - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { - return instance.getStartEventAckMessage(); - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - public Builder setStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - copyOnWrite(); - instance.setStartEventAckMessage(value); - return this; + if (((bitField1_ & 0x00000010) == 0x00000010) && + startEventMessage_ != de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance()) { + startEventMessage_ = + de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder(startEventMessage_).mergeFrom(value).buildPartial(); + } else { + startEventMessage_ = value; } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ + + bitField1_ |= 0x00000010; + return this; + } + public Builder clearStartEventMessage() { + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000010); + return this; + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + private de.pokerth.protocol.ProtoBuf.StartEventAckMessage startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + public boolean hasStartEventAckMessage() { + return ((bitField1_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { + return startEventAckMessage_; + } + public Builder setStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + startEventAckMessage_ = value; + + bitField1_ |= 0x00000020; + return this; + } public Builder setStartEventAckMessage( de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setStartEventAckMessage(builderForValue); + startEventAckMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000020; return this; } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ public Builder mergeStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - copyOnWrite(); - instance.mergeStartEventAckMessage(value); - return this; - } - /** - * optional .StartEventAckMessage startEventAckMessage = 38; - */ - public Builder clearStartEventAckMessage() { copyOnWrite(); - instance.clearStartEventAckMessage(); - return this; - } - - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - @java.lang.Override - public boolean hasGameStartInitialMessage() { - return instance.hasGameStartInitialMessage(); - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { - return instance.getGameStartInitialMessage(); - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - public Builder setGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - copyOnWrite(); - instance.setGameStartInitialMessage(value); - return this; + if (((bitField1_ & 0x00000020) == 0x00000020) && + startEventAckMessage_ != de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance()) { + startEventAckMessage_ = + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder(startEventAckMessage_).mergeFrom(value).buildPartial(); + } else { + startEventAckMessage_ = value; } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ + + bitField1_ |= 0x00000020; + return this; + } + public Builder clearStartEventAckMessage() { + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000020); + return this; + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + public boolean hasGameStartInitialMessage() { + return ((bitField1_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { + return gameStartInitialMessage_; + } + public Builder setGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameStartInitialMessage_ = value; + + bitField1_ |= 0x00000040; + return this; + } public Builder setGameStartInitialMessage( de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameStartInitialMessage(builderForValue); + gameStartInitialMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000040; return this; } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ public Builder mergeGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - copyOnWrite(); - instance.mergeGameStartInitialMessage(value); - return this; - } - /** - * optional .GameStartInitialMessage gameStartInitialMessage = 39; - */ - public Builder clearGameStartInitialMessage() { copyOnWrite(); - instance.clearGameStartInitialMessage(); - return this; - } - - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - @java.lang.Override - public boolean hasGameStartRejoinMessage() { - return instance.hasGameStartRejoinMessage(); - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { - return instance.getGameStartRejoinMessage(); - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - public Builder setGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - copyOnWrite(); - instance.setGameStartRejoinMessage(value); - return this; + if (((bitField1_ & 0x00000040) == 0x00000040) && + gameStartInitialMessage_ != de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance()) { + gameStartInitialMessage_ = + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder(gameStartInitialMessage_).mergeFrom(value).buildPartial(); + } else { + gameStartInitialMessage_ = value; } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ + + bitField1_ |= 0x00000040; + return this; + } + public Builder clearGameStartInitialMessage() { + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000040); + return this; + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + public boolean hasGameStartRejoinMessage() { + return ((bitField1_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { + return gameStartRejoinMessage_; + } + public Builder setGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameStartRejoinMessage_ = value; + + bitField1_ |= 0x00000080; + return this; + } public Builder setGameStartRejoinMessage( de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameStartRejoinMessage(builderForValue); + gameStartRejoinMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000080; return this; } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ public Builder mergeGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - copyOnWrite(); - instance.mergeGameStartRejoinMessage(value); - return this; - } - /** - * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - */ - public Builder clearGameStartRejoinMessage() { copyOnWrite(); - instance.clearGameStartRejoinMessage(); - return this; - } - - /** - * optional .HandStartMessage handStartMessage = 41; - */ - @java.lang.Override - public boolean hasHandStartMessage() { - return instance.hasHandStartMessage(); - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { - return instance.getHandStartMessage(); - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - public Builder setHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - copyOnWrite(); - instance.setHandStartMessage(value); - return this; + if (((bitField1_ & 0x00000080) == 0x00000080) && + gameStartRejoinMessage_ != de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance()) { + gameStartRejoinMessage_ = + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder(gameStartRejoinMessage_).mergeFrom(value).buildPartial(); + } else { + gameStartRejoinMessage_ = value; } - /** - * optional .HandStartMessage handStartMessage = 41; - */ + + bitField1_ |= 0x00000080; + return this; + } + public Builder clearGameStartRejoinMessage() { + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000080); + return this; + } + + // optional .HandStartMessage handStartMessage = 41; + private de.pokerth.protocol.ProtoBuf.HandStartMessage handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + public boolean hasHandStartMessage() { + return ((bitField1_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { + return handStartMessage_; + } + public Builder setHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { + if (value == null) { + throw new NullPointerException(); + } + handStartMessage_ = value; + + bitField1_ |= 0x00000100; + return this; + } public Builder setHandStartMessage( de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder builderForValue) { - copyOnWrite(); - instance.setHandStartMessage(builderForValue); + handStartMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000100; return this; } - /** - * optional .HandStartMessage handStartMessage = 41; - */ public Builder mergeHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - copyOnWrite(); - instance.mergeHandStartMessage(value); - return this; - } - /** - * optional .HandStartMessage handStartMessage = 41; - */ - public Builder clearHandStartMessage() { copyOnWrite(); - instance.clearHandStartMessage(); - return this; - } - - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - @java.lang.Override - public boolean hasPlayersTurnMessage() { - return instance.hasPlayersTurnMessage(); - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { - return instance.getPlayersTurnMessage(); - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - public Builder setPlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - copyOnWrite(); - instance.setPlayersTurnMessage(value); - return this; + if (((bitField1_ & 0x00000100) == 0x00000100) && + handStartMessage_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance()) { + handStartMessage_ = + de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder(handStartMessage_).mergeFrom(value).buildPartial(); + } else { + handStartMessage_ = value; } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ + + bitField1_ |= 0x00000100; + return this; + } + public Builder clearHandStartMessage() { + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000100); + return this; + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + public boolean hasPlayersTurnMessage() { + return ((bitField1_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { + return playersTurnMessage_; + } + public Builder setPlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playersTurnMessage_ = value; + + bitField1_ |= 0x00000200; + return this; + } public Builder setPlayersTurnMessage( de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayersTurnMessage(builderForValue); + playersTurnMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000200; return this; } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ public Builder mergePlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - copyOnWrite(); - instance.mergePlayersTurnMessage(value); - return this; - } - /** - * optional .PlayersTurnMessage playersTurnMessage = 42; - */ - public Builder clearPlayersTurnMessage() { copyOnWrite(); - instance.clearPlayersTurnMessage(); - return this; - } - - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - @java.lang.Override - public boolean hasMyActionRequestMessage() { - return instance.hasMyActionRequestMessage(); - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { - return instance.getMyActionRequestMessage(); - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - public Builder setMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - copyOnWrite(); - instance.setMyActionRequestMessage(value); - return this; + if (((bitField1_ & 0x00000200) == 0x00000200) && + playersTurnMessage_ != de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance()) { + playersTurnMessage_ = + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder(playersTurnMessage_).mergeFrom(value).buildPartial(); + } else { + playersTurnMessage_ = value; } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ + + bitField1_ |= 0x00000200; + return this; + } + public Builder clearPlayersTurnMessage() { + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000200); + return this; + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + public boolean hasMyActionRequestMessage() { + return ((bitField1_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { + return myActionRequestMessage_; + } + public Builder setMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + myActionRequestMessage_ = value; + + bitField1_ |= 0x00000400; + return this; + } public Builder setMyActionRequestMessage( de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setMyActionRequestMessage(builderForValue); + myActionRequestMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000400; return this; } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ public Builder mergeMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - copyOnWrite(); - instance.mergeMyActionRequestMessage(value); - return this; - } - /** - * optional .MyActionRequestMessage myActionRequestMessage = 43; - */ - public Builder clearMyActionRequestMessage() { copyOnWrite(); - instance.clearMyActionRequestMessage(); - return this; - } - - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - @java.lang.Override - public boolean hasYourActionRejectedMessage() { - return instance.hasYourActionRejectedMessage(); - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { - return instance.getYourActionRejectedMessage(); - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - public Builder setYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - copyOnWrite(); - instance.setYourActionRejectedMessage(value); - return this; + if (((bitField1_ & 0x00000400) == 0x00000400) && + myActionRequestMessage_ != de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance()) { + myActionRequestMessage_ = + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder(myActionRequestMessage_).mergeFrom(value).buildPartial(); + } else { + myActionRequestMessage_ = value; } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ + + bitField1_ |= 0x00000400; + return this; + } + public Builder clearMyActionRequestMessage() { + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000400); + return this; + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + public boolean hasYourActionRejectedMessage() { + return ((bitField1_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { + return yourActionRejectedMessage_; + } + public Builder setYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + yourActionRejectedMessage_ = value; + + bitField1_ |= 0x00000800; + return this; + } public Builder setYourActionRejectedMessage( de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setYourActionRejectedMessage(builderForValue); + yourActionRejectedMessage_ = builderForValue.build(); + + bitField1_ |= 0x00000800; return this; } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ public Builder mergeYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - copyOnWrite(); - instance.mergeYourActionRejectedMessage(value); - return this; - } - /** - * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - */ - public Builder clearYourActionRejectedMessage() { copyOnWrite(); - instance.clearYourActionRejectedMessage(); - return this; - } - - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - @java.lang.Override - public boolean hasPlayersActionDoneMessage() { - return instance.hasPlayersActionDoneMessage(); - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { - return instance.getPlayersActionDoneMessage(); - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - public Builder setPlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - copyOnWrite(); - instance.setPlayersActionDoneMessage(value); - return this; + if (((bitField1_ & 0x00000800) == 0x00000800) && + yourActionRejectedMessage_ != de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance()) { + yourActionRejectedMessage_ = + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder(yourActionRejectedMessage_).mergeFrom(value).buildPartial(); + } else { + yourActionRejectedMessage_ = value; } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ + + bitField1_ |= 0x00000800; + return this; + } + public Builder clearYourActionRejectedMessage() { + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00000800); + return this; + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + public boolean hasPlayersActionDoneMessage() { + return ((bitField1_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { + return playersActionDoneMessage_; + } + public Builder setPlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playersActionDoneMessage_ = value; + + bitField1_ |= 0x00001000; + return this; + } public Builder setPlayersActionDoneMessage( de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayersActionDoneMessage(builderForValue); + playersActionDoneMessage_ = builderForValue.build(); + + bitField1_ |= 0x00001000; return this; } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ public Builder mergePlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - copyOnWrite(); - instance.mergePlayersActionDoneMessage(value); - return this; - } - /** - * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - */ - public Builder clearPlayersActionDoneMessage() { copyOnWrite(); - instance.clearPlayersActionDoneMessage(); - return this; - } - - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - @java.lang.Override - public boolean hasDealFlopCardsMessage() { - return instance.hasDealFlopCardsMessage(); - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { - return instance.getDealFlopCardsMessage(); - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - public Builder setDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - copyOnWrite(); - instance.setDealFlopCardsMessage(value); - return this; + if (((bitField1_ & 0x00001000) == 0x00001000) && + playersActionDoneMessage_ != de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance()) { + playersActionDoneMessage_ = + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder(playersActionDoneMessage_).mergeFrom(value).buildPartial(); + } else { + playersActionDoneMessage_ = value; } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ + + bitField1_ |= 0x00001000; + return this; + } + public Builder clearPlayersActionDoneMessage() { + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00001000); + return this; + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + public boolean hasDealFlopCardsMessage() { + return ((bitField1_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { + return dealFlopCardsMessage_; + } + public Builder setDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + dealFlopCardsMessage_ = value; + + bitField1_ |= 0x00002000; + return this; + } public Builder setDealFlopCardsMessage( de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setDealFlopCardsMessage(builderForValue); + dealFlopCardsMessage_ = builderForValue.build(); + + bitField1_ |= 0x00002000; return this; } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ public Builder mergeDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - copyOnWrite(); - instance.mergeDealFlopCardsMessage(value); - return this; - } - /** - * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - */ - public Builder clearDealFlopCardsMessage() { copyOnWrite(); - instance.clearDealFlopCardsMessage(); - return this; - } - - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - @java.lang.Override - public boolean hasDealTurnCardMessage() { - return instance.hasDealTurnCardMessage(); - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { - return instance.getDealTurnCardMessage(); - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - public Builder setDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - copyOnWrite(); - instance.setDealTurnCardMessage(value); - return this; + if (((bitField1_ & 0x00002000) == 0x00002000) && + dealFlopCardsMessage_ != de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance()) { + dealFlopCardsMessage_ = + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder(dealFlopCardsMessage_).mergeFrom(value).buildPartial(); + } else { + dealFlopCardsMessage_ = value; } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ + + bitField1_ |= 0x00002000; + return this; + } + public Builder clearDealFlopCardsMessage() { + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00002000); + return this; + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + public boolean hasDealTurnCardMessage() { + return ((bitField1_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { + return dealTurnCardMessage_; + } + public Builder setDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { + if (value == null) { + throw new NullPointerException(); + } + dealTurnCardMessage_ = value; + + bitField1_ |= 0x00004000; + return this; + } public Builder setDealTurnCardMessage( de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder builderForValue) { - copyOnWrite(); - instance.setDealTurnCardMessage(builderForValue); + dealTurnCardMessage_ = builderForValue.build(); + + bitField1_ |= 0x00004000; return this; } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ public Builder mergeDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - copyOnWrite(); - instance.mergeDealTurnCardMessage(value); - return this; - } - /** - * optional .DealTurnCardMessage dealTurnCardMessage = 47; - */ - public Builder clearDealTurnCardMessage() { copyOnWrite(); - instance.clearDealTurnCardMessage(); - return this; - } - - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - @java.lang.Override - public boolean hasDealRiverCardMessage() { - return instance.hasDealRiverCardMessage(); - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { - return instance.getDealRiverCardMessage(); - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - public Builder setDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - copyOnWrite(); - instance.setDealRiverCardMessage(value); - return this; + if (((bitField1_ & 0x00004000) == 0x00004000) && + dealTurnCardMessage_ != de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance()) { + dealTurnCardMessage_ = + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder(dealTurnCardMessage_).mergeFrom(value).buildPartial(); + } else { + dealTurnCardMessage_ = value; } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ + + bitField1_ |= 0x00004000; + return this; + } + public Builder clearDealTurnCardMessage() { + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00004000); + return this; + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + public boolean hasDealRiverCardMessage() { + return ((bitField1_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { + return dealRiverCardMessage_; + } + public Builder setDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { + if (value == null) { + throw new NullPointerException(); + } + dealRiverCardMessage_ = value; + + bitField1_ |= 0x00008000; + return this; + } public Builder setDealRiverCardMessage( de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder builderForValue) { - copyOnWrite(); - instance.setDealRiverCardMessage(builderForValue); + dealRiverCardMessage_ = builderForValue.build(); + + bitField1_ |= 0x00008000; return this; } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ public Builder mergeDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - copyOnWrite(); - instance.mergeDealRiverCardMessage(value); - return this; - } - /** - * optional .DealRiverCardMessage dealRiverCardMessage = 48; - */ - public Builder clearDealRiverCardMessage() { copyOnWrite(); - instance.clearDealRiverCardMessage(); - return this; - } - - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - @java.lang.Override - public boolean hasAllInShowCardsMessage() { - return instance.hasAllInShowCardsMessage(); - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { - return instance.getAllInShowCardsMessage(); - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - public Builder setAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - copyOnWrite(); - instance.setAllInShowCardsMessage(value); - return this; + if (((bitField1_ & 0x00008000) == 0x00008000) && + dealRiverCardMessage_ != de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance()) { + dealRiverCardMessage_ = + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder(dealRiverCardMessage_).mergeFrom(value).buildPartial(); + } else { + dealRiverCardMessage_ = value; } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ + + bitField1_ |= 0x00008000; + return this; + } + public Builder clearDealRiverCardMessage() { + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00008000); + return this; + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + public boolean hasAllInShowCardsMessage() { + return ((bitField1_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { + return allInShowCardsMessage_; + } + public Builder setAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + allInShowCardsMessage_ = value; + + bitField1_ |= 0x00010000; + return this; + } public Builder setAllInShowCardsMessage( de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAllInShowCardsMessage(builderForValue); + allInShowCardsMessage_ = builderForValue.build(); + + bitField1_ |= 0x00010000; return this; } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ public Builder mergeAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - copyOnWrite(); - instance.mergeAllInShowCardsMessage(value); - return this; - } - /** - * optional .AllInShowCardsMessage allInShowCardsMessage = 49; - */ - public Builder clearAllInShowCardsMessage() { copyOnWrite(); - instance.clearAllInShowCardsMessage(); - return this; - } - - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - @java.lang.Override - public boolean hasEndOfHandShowCardsMessage() { - return instance.hasEndOfHandShowCardsMessage(); - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { - return instance.getEndOfHandShowCardsMessage(); - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - public Builder setEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - copyOnWrite(); - instance.setEndOfHandShowCardsMessage(value); - return this; + if (((bitField1_ & 0x00010000) == 0x00010000) && + allInShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance()) { + allInShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder(allInShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + allInShowCardsMessage_ = value; } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ + + bitField1_ |= 0x00010000; + return this; + } + public Builder clearAllInShowCardsMessage() { + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00010000); + return this; + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + public boolean hasEndOfHandShowCardsMessage() { + return ((bitField1_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { + return endOfHandShowCardsMessage_; + } + public Builder setEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + endOfHandShowCardsMessage_ = value; + + bitField1_ |= 0x00020000; + return this; + } public Builder setEndOfHandShowCardsMessage( de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setEndOfHandShowCardsMessage(builderForValue); + endOfHandShowCardsMessage_ = builderForValue.build(); + + bitField1_ |= 0x00020000; return this; } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ public Builder mergeEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - copyOnWrite(); - instance.mergeEndOfHandShowCardsMessage(value); - return this; - } - /** - * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - */ - public Builder clearEndOfHandShowCardsMessage() { copyOnWrite(); - instance.clearEndOfHandShowCardsMessage(); - return this; - } - - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - @java.lang.Override - public boolean hasEndOfHandHideCardsMessage() { - return instance.hasEndOfHandHideCardsMessage(); - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { - return instance.getEndOfHandHideCardsMessage(); - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - public Builder setEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - copyOnWrite(); - instance.setEndOfHandHideCardsMessage(value); - return this; + if (((bitField1_ & 0x00020000) == 0x00020000) && + endOfHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance()) { + endOfHandShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder(endOfHandShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + endOfHandShowCardsMessage_ = value; } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ + + bitField1_ |= 0x00020000; + return this; + } + public Builder clearEndOfHandShowCardsMessage() { + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00020000); + return this; + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + public boolean hasEndOfHandHideCardsMessage() { + return ((bitField1_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { + return endOfHandHideCardsMessage_; + } + public Builder setEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + endOfHandHideCardsMessage_ = value; + + bitField1_ |= 0x00040000; + return this; + } public Builder setEndOfHandHideCardsMessage( de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setEndOfHandHideCardsMessage(builderForValue); + endOfHandHideCardsMessage_ = builderForValue.build(); + + bitField1_ |= 0x00040000; return this; } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ public Builder mergeEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - copyOnWrite(); - instance.mergeEndOfHandHideCardsMessage(value); - return this; - } - /** - * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - */ - public Builder clearEndOfHandHideCardsMessage() { copyOnWrite(); - instance.clearEndOfHandHideCardsMessage(); - return this; - } - - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - @java.lang.Override - public boolean hasShowMyCardsRequestMessage() { - return instance.hasShowMyCardsRequestMessage(); - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { - return instance.getShowMyCardsRequestMessage(); - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - public Builder setShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - copyOnWrite(); - instance.setShowMyCardsRequestMessage(value); - return this; + if (((bitField1_ & 0x00040000) == 0x00040000) && + endOfHandHideCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance()) { + endOfHandHideCardsMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder(endOfHandHideCardsMessage_).mergeFrom(value).buildPartial(); + } else { + endOfHandHideCardsMessage_ = value; } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ + + bitField1_ |= 0x00040000; + return this; + } + public Builder clearEndOfHandHideCardsMessage() { + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00040000); + return this; + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + public boolean hasShowMyCardsRequestMessage() { + return ((bitField1_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { + return showMyCardsRequestMessage_; + } + public Builder setShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + showMyCardsRequestMessage_ = value; + + bitField1_ |= 0x00080000; + return this; + } public Builder setShowMyCardsRequestMessage( de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setShowMyCardsRequestMessage(builderForValue); + showMyCardsRequestMessage_ = builderForValue.build(); + + bitField1_ |= 0x00080000; return this; } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ public Builder mergeShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - copyOnWrite(); - instance.mergeShowMyCardsRequestMessage(value); - return this; - } - /** - * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - */ - public Builder clearShowMyCardsRequestMessage() { copyOnWrite(); - instance.clearShowMyCardsRequestMessage(); - return this; - } - - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - @java.lang.Override - public boolean hasAfterHandShowCardsMessage() { - return instance.hasAfterHandShowCardsMessage(); - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { - return instance.getAfterHandShowCardsMessage(); - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - public Builder setAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - copyOnWrite(); - instance.setAfterHandShowCardsMessage(value); - return this; + if (((bitField1_ & 0x00080000) == 0x00080000) && + showMyCardsRequestMessage_ != de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance()) { + showMyCardsRequestMessage_ = + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder(showMyCardsRequestMessage_).mergeFrom(value).buildPartial(); + } else { + showMyCardsRequestMessage_ = value; } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ + + bitField1_ |= 0x00080000; + return this; + } + public Builder clearShowMyCardsRequestMessage() { + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00080000); + return this; + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + public boolean hasAfterHandShowCardsMessage() { + return ((bitField1_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { + return afterHandShowCardsMessage_; + } + public Builder setAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + afterHandShowCardsMessage_ = value; + + bitField1_ |= 0x00100000; + return this; + } public Builder setAfterHandShowCardsMessage( de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAfterHandShowCardsMessage(builderForValue); + afterHandShowCardsMessage_ = builderForValue.build(); + + bitField1_ |= 0x00100000; return this; } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ public Builder mergeAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - copyOnWrite(); - instance.mergeAfterHandShowCardsMessage(value); - return this; - } - /** - * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - */ - public Builder clearAfterHandShowCardsMessage() { copyOnWrite(); - instance.clearAfterHandShowCardsMessage(); - return this; - } - - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - @java.lang.Override - public boolean hasEndOfGameMessage() { - return instance.hasEndOfGameMessage(); - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { - return instance.getEndOfGameMessage(); - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - public Builder setEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - copyOnWrite(); - instance.setEndOfGameMessage(value); - return this; + if (((bitField1_ & 0x00100000) == 0x00100000) && + afterHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance()) { + afterHandShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder(afterHandShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + afterHandShowCardsMessage_ = value; } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ + + bitField1_ |= 0x00100000; + return this; + } + public Builder clearAfterHandShowCardsMessage() { + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00100000); + return this; + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + private de.pokerth.protocol.ProtoBuf.EndOfGameMessage endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + public boolean hasEndOfGameMessage() { + return ((bitField1_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { + return endOfGameMessage_; + } + public Builder setEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + endOfGameMessage_ = value; + + bitField1_ |= 0x00200000; + return this; + } public Builder setEndOfGameMessage( de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setEndOfGameMessage(builderForValue); + endOfGameMessage_ = builderForValue.build(); + + bitField1_ |= 0x00200000; return this; } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ public Builder mergeEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - copyOnWrite(); - instance.mergeEndOfGameMessage(value); - return this; - } - /** - * optional .EndOfGameMessage endOfGameMessage = 54; - */ - public Builder clearEndOfGameMessage() { copyOnWrite(); - instance.clearEndOfGameMessage(); - return this; - } - - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - @java.lang.Override - public boolean hasPlayerIdChangedMessage() { - return instance.hasPlayerIdChangedMessage(); - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { - return instance.getPlayerIdChangedMessage(); - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - public Builder setPlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - copyOnWrite(); - instance.setPlayerIdChangedMessage(value); - return this; + if (((bitField1_ & 0x00200000) == 0x00200000) && + endOfGameMessage_ != de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance()) { + endOfGameMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder(endOfGameMessage_).mergeFrom(value).buildPartial(); + } else { + endOfGameMessage_ = value; } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ + + bitField1_ |= 0x00200000; + return this; + } + public Builder clearEndOfGameMessage() { + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00200000); + return this; + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + public boolean hasPlayerIdChangedMessage() { + return ((bitField1_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { + return playerIdChangedMessage_; + } + public Builder setPlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + playerIdChangedMessage_ = value; + + bitField1_ |= 0x00400000; + return this; + } public Builder setPlayerIdChangedMessage( de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setPlayerIdChangedMessage(builderForValue); + playerIdChangedMessage_ = builderForValue.build(); + + bitField1_ |= 0x00400000; return this; } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ public Builder mergePlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - copyOnWrite(); - instance.mergePlayerIdChangedMessage(value); - return this; - } - /** - * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - */ - public Builder clearPlayerIdChangedMessage() { copyOnWrite(); - instance.clearPlayerIdChangedMessage(); - return this; - } - - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - @java.lang.Override - public boolean hasAskKickPlayerMessage() { - return instance.hasAskKickPlayerMessage(); - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { - return instance.getAskKickPlayerMessage(); - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - public Builder setAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - copyOnWrite(); - instance.setAskKickPlayerMessage(value); - return this; + if (((bitField1_ & 0x00400000) == 0x00400000) && + playerIdChangedMessage_ != de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance()) { + playerIdChangedMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder(playerIdChangedMessage_).mergeFrom(value).buildPartial(); + } else { + playerIdChangedMessage_ = value; } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ + + bitField1_ |= 0x00400000; + return this; + } + public Builder clearPlayerIdChangedMessage() { + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00400000); + return this; + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + public boolean hasAskKickPlayerMessage() { + return ((bitField1_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { + return askKickPlayerMessage_; + } + public Builder setAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { + if (value == null) { + throw new NullPointerException(); + } + askKickPlayerMessage_ = value; + + bitField1_ |= 0x00800000; + return this; + } public Builder setAskKickPlayerMessage( de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAskKickPlayerMessage(builderForValue); + askKickPlayerMessage_ = builderForValue.build(); + + bitField1_ |= 0x00800000; return this; } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ public Builder mergeAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - copyOnWrite(); - instance.mergeAskKickPlayerMessage(value); - return this; - } - /** - * optional .AskKickPlayerMessage askKickPlayerMessage = 56; - */ - public Builder clearAskKickPlayerMessage() { copyOnWrite(); - instance.clearAskKickPlayerMessage(); - return this; - } - - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - @java.lang.Override - public boolean hasAskKickDeniedMessage() { - return instance.hasAskKickDeniedMessage(); - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { - return instance.getAskKickDeniedMessage(); - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - public Builder setAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - copyOnWrite(); - instance.setAskKickDeniedMessage(value); - return this; + if (((bitField1_ & 0x00800000) == 0x00800000) && + askKickPlayerMessage_ != de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance()) { + askKickPlayerMessage_ = + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder(askKickPlayerMessage_).mergeFrom(value).buildPartial(); + } else { + askKickPlayerMessage_ = value; } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ + + bitField1_ |= 0x00800000; + return this; + } + public Builder clearAskKickPlayerMessage() { + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x00800000); + return this; + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + public boolean hasAskKickDeniedMessage() { + return ((bitField1_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { + return askKickDeniedMessage_; + } + public Builder setAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + askKickDeniedMessage_ = value; + + bitField1_ |= 0x01000000; + return this; + } public Builder setAskKickDeniedMessage( de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAskKickDeniedMessage(builderForValue); + askKickDeniedMessage_ = builderForValue.build(); + + bitField1_ |= 0x01000000; return this; } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ public Builder mergeAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - copyOnWrite(); - instance.mergeAskKickDeniedMessage(value); - return this; - } - /** - * optional .AskKickDeniedMessage askKickDeniedMessage = 57; - */ - public Builder clearAskKickDeniedMessage() { copyOnWrite(); - instance.clearAskKickDeniedMessage(); - return this; - } - - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - @java.lang.Override - public boolean hasStartKickPetitionMessage() { - return instance.hasStartKickPetitionMessage(); - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { - return instance.getStartKickPetitionMessage(); - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - public Builder setStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - copyOnWrite(); - instance.setStartKickPetitionMessage(value); - return this; + if (((bitField1_ & 0x01000000) == 0x01000000) && + askKickDeniedMessage_ != de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance()) { + askKickDeniedMessage_ = + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder(askKickDeniedMessage_).mergeFrom(value).buildPartial(); + } else { + askKickDeniedMessage_ = value; } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ + + bitField1_ |= 0x01000000; + return this; + } + public Builder clearAskKickDeniedMessage() { + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x01000000); + return this; + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + public boolean hasStartKickPetitionMessage() { + return ((bitField1_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { + return startKickPetitionMessage_; + } + public Builder setStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { + if (value == null) { + throw new NullPointerException(); + } + startKickPetitionMessage_ = value; + + bitField1_ |= 0x02000000; + return this; + } public Builder setStartKickPetitionMessage( de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder builderForValue) { - copyOnWrite(); - instance.setStartKickPetitionMessage(builderForValue); + startKickPetitionMessage_ = builderForValue.build(); + + bitField1_ |= 0x02000000; return this; } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ public Builder mergeStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - copyOnWrite(); - instance.mergeStartKickPetitionMessage(value); - return this; - } - /** - * optional .StartKickPetitionMessage startKickPetitionMessage = 58; - */ - public Builder clearStartKickPetitionMessage() { copyOnWrite(); - instance.clearStartKickPetitionMessage(); - return this; - } - - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - @java.lang.Override - public boolean hasVoteKickRequestMessage() { - return instance.hasVoteKickRequestMessage(); - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { - return instance.getVoteKickRequestMessage(); - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - public Builder setVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - copyOnWrite(); - instance.setVoteKickRequestMessage(value); - return this; + if (((bitField1_ & 0x02000000) == 0x02000000) && + startKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance()) { + startKickPetitionMessage_ = + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder(startKickPetitionMessage_).mergeFrom(value).buildPartial(); + } else { + startKickPetitionMessage_ = value; } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ + + bitField1_ |= 0x02000000; + return this; + } + public Builder clearStartKickPetitionMessage() { + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x02000000); + return this; + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + public boolean hasVoteKickRequestMessage() { + return ((bitField1_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { + return voteKickRequestMessage_; + } + public Builder setVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + voteKickRequestMessage_ = value; + + bitField1_ |= 0x04000000; + return this; + } public Builder setVoteKickRequestMessage( de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setVoteKickRequestMessage(builderForValue); + voteKickRequestMessage_ = builderForValue.build(); + + bitField1_ |= 0x04000000; return this; } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ public Builder mergeVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - copyOnWrite(); - instance.mergeVoteKickRequestMessage(value); - return this; - } - /** - * optional .VoteKickRequestMessage voteKickRequestMessage = 59; - */ - public Builder clearVoteKickRequestMessage() { copyOnWrite(); - instance.clearVoteKickRequestMessage(); - return this; - } - - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - @java.lang.Override - public boolean hasVoteKickReplyMessage() { - return instance.hasVoteKickReplyMessage(); - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { - return instance.getVoteKickReplyMessage(); - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - public Builder setVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - copyOnWrite(); - instance.setVoteKickReplyMessage(value); - return this; + if (((bitField1_ & 0x04000000) == 0x04000000) && + voteKickRequestMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance()) { + voteKickRequestMessage_ = + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder(voteKickRequestMessage_).mergeFrom(value).buildPartial(); + } else { + voteKickRequestMessage_ = value; } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ + + bitField1_ |= 0x04000000; + return this; + } + public Builder clearVoteKickRequestMessage() { + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x04000000); + return this; + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + public boolean hasVoteKickReplyMessage() { + return ((bitField1_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { + return voteKickReplyMessage_; + } + public Builder setVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { + if (value == null) { + throw new NullPointerException(); + } + voteKickReplyMessage_ = value; + + bitField1_ |= 0x08000000; + return this; + } public Builder setVoteKickReplyMessage( de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder builderForValue) { - copyOnWrite(); - instance.setVoteKickReplyMessage(builderForValue); + voteKickReplyMessage_ = builderForValue.build(); + + bitField1_ |= 0x08000000; return this; } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ public Builder mergeVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - copyOnWrite(); - instance.mergeVoteKickReplyMessage(value); - return this; - } - /** - * optional .VoteKickReplyMessage voteKickReplyMessage = 60; - */ - public Builder clearVoteKickReplyMessage() { copyOnWrite(); - instance.clearVoteKickReplyMessage(); - return this; - } - - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - @java.lang.Override - public boolean hasKickPetitionUpdateMessage() { - return instance.hasKickPetitionUpdateMessage(); - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { - return instance.getKickPetitionUpdateMessage(); - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - public Builder setKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - copyOnWrite(); - instance.setKickPetitionUpdateMessage(value); - return this; + if (((bitField1_ & 0x08000000) == 0x08000000) && + voteKickReplyMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance()) { + voteKickReplyMessage_ = + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder(voteKickReplyMessage_).mergeFrom(value).buildPartial(); + } else { + voteKickReplyMessage_ = value; } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ + + bitField1_ |= 0x08000000; + return this; + } + public Builder clearVoteKickReplyMessage() { + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x08000000); + return this; + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + public boolean hasKickPetitionUpdateMessage() { + return ((bitField1_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { + return kickPetitionUpdateMessage_; + } + public Builder setKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { + if (value == null) { + throw new NullPointerException(); + } + kickPetitionUpdateMessage_ = value; + + bitField1_ |= 0x10000000; + return this; + } public Builder setKickPetitionUpdateMessage( de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder builderForValue) { - copyOnWrite(); - instance.setKickPetitionUpdateMessage(builderForValue); + kickPetitionUpdateMessage_ = builderForValue.build(); + + bitField1_ |= 0x10000000; return this; } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ public Builder mergeKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - copyOnWrite(); - instance.mergeKickPetitionUpdateMessage(value); - return this; - } - /** - * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - */ - public Builder clearKickPetitionUpdateMessage() { copyOnWrite(); - instance.clearKickPetitionUpdateMessage(); - return this; - } - - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - @java.lang.Override - public boolean hasEndKickPetitionMessage() { - return instance.hasEndKickPetitionMessage(); - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { - return instance.getEndKickPetitionMessage(); - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - public Builder setEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - copyOnWrite(); - instance.setEndKickPetitionMessage(value); - return this; + if (((bitField1_ & 0x10000000) == 0x10000000) && + kickPetitionUpdateMessage_ != de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance()) { + kickPetitionUpdateMessage_ = + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder(kickPetitionUpdateMessage_).mergeFrom(value).buildPartial(); + } else { + kickPetitionUpdateMessage_ = value; } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ + + bitField1_ |= 0x10000000; + return this; + } + public Builder clearKickPetitionUpdateMessage() { + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x10000000); + return this; + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + public boolean hasEndKickPetitionMessage() { + return ((bitField1_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { + return endKickPetitionMessage_; + } + public Builder setEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { + if (value == null) { + throw new NullPointerException(); + } + endKickPetitionMessage_ = value; + + bitField1_ |= 0x20000000; + return this; + } public Builder setEndKickPetitionMessage( de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder builderForValue) { - copyOnWrite(); - instance.setEndKickPetitionMessage(builderForValue); + endKickPetitionMessage_ = builderForValue.build(); + + bitField1_ |= 0x20000000; return this; } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ public Builder mergeEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - copyOnWrite(); - instance.mergeEndKickPetitionMessage(value); - return this; - } - /** - * optional .EndKickPetitionMessage endKickPetitionMessage = 62; - */ - public Builder clearEndKickPetitionMessage() { copyOnWrite(); - instance.clearEndKickPetitionMessage(); - return this; - } - - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - @java.lang.Override - public boolean hasStatisticsMessage() { - return instance.hasStatisticsMessage(); - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { - return instance.getStatisticsMessage(); - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - public Builder setStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - copyOnWrite(); - instance.setStatisticsMessage(value); - return this; + if (((bitField1_ & 0x20000000) == 0x20000000) && + endKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance()) { + endKickPetitionMessage_ = + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder(endKickPetitionMessage_).mergeFrom(value).buildPartial(); + } else { + endKickPetitionMessage_ = value; } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ + + bitField1_ |= 0x20000000; + return this; + } + public Builder clearEndKickPetitionMessage() { + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x20000000); + return this; + } + + // optional .StatisticsMessage statisticsMessage = 63; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + public boolean hasStatisticsMessage() { + return ((bitField1_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { + return statisticsMessage_; + } + public Builder setStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { + if (value == null) { + throw new NullPointerException(); + } + statisticsMessage_ = value; + + bitField1_ |= 0x40000000; + return this; + } public Builder setStatisticsMessage( de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder builderForValue) { - copyOnWrite(); - instance.setStatisticsMessage(builderForValue); + statisticsMessage_ = builderForValue.build(); + + bitField1_ |= 0x40000000; return this; } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ public Builder mergeStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - copyOnWrite(); - instance.mergeStatisticsMessage(value); - return this; - } - /** - * optional .StatisticsMessage statisticsMessage = 63; - */ - public Builder clearStatisticsMessage() { copyOnWrite(); - instance.clearStatisticsMessage(); - return this; - } - - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - @java.lang.Override - public boolean hasChatRequestMessage() { - return instance.hasChatRequestMessage(); - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { - return instance.getChatRequestMessage(); - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - public Builder setChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - copyOnWrite(); - instance.setChatRequestMessage(value); - return this; + if (((bitField1_ & 0x40000000) == 0x40000000) && + statisticsMessage_ != de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance()) { + statisticsMessage_ = + de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder(statisticsMessage_).mergeFrom(value).buildPartial(); + } else { + statisticsMessage_ = value; } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ + + bitField1_ |= 0x40000000; + return this; + } + public Builder clearStatisticsMessage() { + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x40000000); + return this; + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + private de.pokerth.protocol.ProtoBuf.ChatRequestMessage chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + public boolean hasChatRequestMessage() { + return ((bitField1_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { + return chatRequestMessage_; + } + public Builder setChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { + if (value == null) { + throw new NullPointerException(); + } + chatRequestMessage_ = value; + + bitField1_ |= 0x80000000; + return this; + } public Builder setChatRequestMessage( de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder builderForValue) { - copyOnWrite(); - instance.setChatRequestMessage(builderForValue); + chatRequestMessage_ = builderForValue.build(); + + bitField1_ |= 0x80000000; return this; } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ public Builder mergeChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - copyOnWrite(); - instance.mergeChatRequestMessage(value); - return this; - } - /** - * optional .ChatRequestMessage chatRequestMessage = 64; - */ - public Builder clearChatRequestMessage() { copyOnWrite(); - instance.clearChatRequestMessage(); - return this; - } - - /** - * optional .ChatMessage chatMessage = 65; - */ - @java.lang.Override - public boolean hasChatMessage() { - return instance.hasChatMessage(); - } - /** - * optional .ChatMessage chatMessage = 65; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { - return instance.getChatMessage(); - } - /** - * optional .ChatMessage chatMessage = 65; - */ - public Builder setChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - copyOnWrite(); - instance.setChatMessage(value); - return this; + if (((bitField1_ & 0x80000000) == 0x80000000) && + chatRequestMessage_ != de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance()) { + chatRequestMessage_ = + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder(chatRequestMessage_).mergeFrom(value).buildPartial(); + } else { + chatRequestMessage_ = value; } - /** - * optional .ChatMessage chatMessage = 65; - */ + + bitField1_ |= 0x80000000; + return this; + } + public Builder clearChatRequestMessage() { + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + + bitField1_ = (bitField1_ & ~0x80000000); + return this; + } + + // optional .ChatMessage chatMessage = 65; + private de.pokerth.protocol.ProtoBuf.ChatMessage chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + public boolean hasChatMessage() { + return ((bitField2_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { + return chatMessage_; + } + public Builder setChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { + if (value == null) { + throw new NullPointerException(); + } + chatMessage_ = value; + + bitField2_ |= 0x00000001; + return this; + } public Builder setChatMessage( de.pokerth.protocol.ProtoBuf.ChatMessage.Builder builderForValue) { - copyOnWrite(); - instance.setChatMessage(builderForValue); + chatMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000001; return this; } - /** - * optional .ChatMessage chatMessage = 65; - */ public Builder mergeChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - copyOnWrite(); - instance.mergeChatMessage(value); - return this; - } - /** - * optional .ChatMessage chatMessage = 65; - */ - public Builder clearChatMessage() { copyOnWrite(); - instance.clearChatMessage(); - return this; - } - - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - @java.lang.Override - public boolean hasChatRejectMessage() { - return instance.hasChatRejectMessage(); - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { - return instance.getChatRejectMessage(); - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - public Builder setChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - copyOnWrite(); - instance.setChatRejectMessage(value); - return this; + if (((bitField2_ & 0x00000001) == 0x00000001) && + chatMessage_ != de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance()) { + chatMessage_ = + de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder(chatMessage_).mergeFrom(value).buildPartial(); + } else { + chatMessage_ = value; } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ + + bitField2_ |= 0x00000001; + return this; + } + public Builder clearChatMessage() { + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000001); + return this; + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + private de.pokerth.protocol.ProtoBuf.ChatRejectMessage chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + public boolean hasChatRejectMessage() { + return ((bitField2_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { + return chatRejectMessage_; + } + public Builder setChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { + if (value == null) { + throw new NullPointerException(); + } + chatRejectMessage_ = value; + + bitField2_ |= 0x00000002; + return this; + } public Builder setChatRejectMessage( de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder builderForValue) { - copyOnWrite(); - instance.setChatRejectMessage(builderForValue); + chatRejectMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000002; return this; } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ public Builder mergeChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - copyOnWrite(); - instance.mergeChatRejectMessage(value); - return this; - } - /** - * optional .ChatRejectMessage chatRejectMessage = 66; - */ - public Builder clearChatRejectMessage() { copyOnWrite(); - instance.clearChatRejectMessage(); - return this; - } - - /** - * optional .DialogMessage dialogMessage = 67; - */ - @java.lang.Override - public boolean hasDialogMessage() { - return instance.hasDialogMessage(); - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { - return instance.getDialogMessage(); - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - public Builder setDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - copyOnWrite(); - instance.setDialogMessage(value); - return this; + if (((bitField2_ & 0x00000002) == 0x00000002) && + chatRejectMessage_ != de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance()) { + chatRejectMessage_ = + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder(chatRejectMessage_).mergeFrom(value).buildPartial(); + } else { + chatRejectMessage_ = value; } - /** - * optional .DialogMessage dialogMessage = 67; - */ + + bitField2_ |= 0x00000002; + return this; + } + public Builder clearChatRejectMessage() { + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000002); + return this; + } + + // optional .DialogMessage dialogMessage = 67; + private de.pokerth.protocol.ProtoBuf.DialogMessage dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + public boolean hasDialogMessage() { + return ((bitField2_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { + return dialogMessage_; + } + public Builder setDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { + if (value == null) { + throw new NullPointerException(); + } + dialogMessage_ = value; + + bitField2_ |= 0x00000004; + return this; + } public Builder setDialogMessage( de.pokerth.protocol.ProtoBuf.DialogMessage.Builder builderForValue) { - copyOnWrite(); - instance.setDialogMessage(builderForValue); + dialogMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000004; return this; } - /** - * optional .DialogMessage dialogMessage = 67; - */ public Builder mergeDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - copyOnWrite(); - instance.mergeDialogMessage(value); - return this; - } - /** - * optional .DialogMessage dialogMessage = 67; - */ - public Builder clearDialogMessage() { copyOnWrite(); - instance.clearDialogMessage(); - return this; - } - - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - @java.lang.Override - public boolean hasTimeoutWarningMessage() { - return instance.hasTimeoutWarningMessage(); - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { - return instance.getTimeoutWarningMessage(); - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - public Builder setTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - copyOnWrite(); - instance.setTimeoutWarningMessage(value); - return this; + if (((bitField2_ & 0x00000004) == 0x00000004) && + dialogMessage_ != de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance()) { + dialogMessage_ = + de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder(dialogMessage_).mergeFrom(value).buildPartial(); + } else { + dialogMessage_ = value; } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ + + bitField2_ |= 0x00000004; + return this; + } + public Builder clearDialogMessage() { + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000004); + return this; + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + public boolean hasTimeoutWarningMessage() { + return ((bitField2_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { + return timeoutWarningMessage_; + } + public Builder setTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { + if (value == null) { + throw new NullPointerException(); + } + timeoutWarningMessage_ = value; + + bitField2_ |= 0x00000008; + return this; + } public Builder setTimeoutWarningMessage( de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder builderForValue) { - copyOnWrite(); - instance.setTimeoutWarningMessage(builderForValue); + timeoutWarningMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000008; return this; } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ public Builder mergeTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - copyOnWrite(); - instance.mergeTimeoutWarningMessage(value); - return this; - } - /** - * optional .TimeoutWarningMessage timeoutWarningMessage = 68; - */ - public Builder clearTimeoutWarningMessage() { copyOnWrite(); - instance.clearTimeoutWarningMessage(); - return this; - } - - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - @java.lang.Override - public boolean hasResetTimeoutMessage() { - return instance.hasResetTimeoutMessage(); - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { - return instance.getResetTimeoutMessage(); - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - public Builder setResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - copyOnWrite(); - instance.setResetTimeoutMessage(value); - return this; + if (((bitField2_ & 0x00000008) == 0x00000008) && + timeoutWarningMessage_ != de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance()) { + timeoutWarningMessage_ = + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder(timeoutWarningMessage_).mergeFrom(value).buildPartial(); + } else { + timeoutWarningMessage_ = value; } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ + + bitField2_ |= 0x00000008; + return this; + } + public Builder clearTimeoutWarningMessage() { + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000008); + return this; + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + public boolean hasResetTimeoutMessage() { + return ((bitField2_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { + return resetTimeoutMessage_; + } + public Builder setResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { + if (value == null) { + throw new NullPointerException(); + } + resetTimeoutMessage_ = value; + + bitField2_ |= 0x00000010; + return this; + } public Builder setResetTimeoutMessage( de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder builderForValue) { - copyOnWrite(); - instance.setResetTimeoutMessage(builderForValue); + resetTimeoutMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000010; return this; } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ public Builder mergeResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - copyOnWrite(); - instance.mergeResetTimeoutMessage(value); - return this; - } - /** - * optional .ResetTimeoutMessage resetTimeoutMessage = 69; - */ - public Builder clearResetTimeoutMessage() { copyOnWrite(); - instance.clearResetTimeoutMessage(); - return this; - } - - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - @java.lang.Override - public boolean hasReportAvatarMessage() { - return instance.hasReportAvatarMessage(); - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { - return instance.getReportAvatarMessage(); - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - public Builder setReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - copyOnWrite(); - instance.setReportAvatarMessage(value); - return this; + if (((bitField2_ & 0x00000010) == 0x00000010) && + resetTimeoutMessage_ != de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance()) { + resetTimeoutMessage_ = + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder(resetTimeoutMessage_).mergeFrom(value).buildPartial(); + } else { + resetTimeoutMessage_ = value; } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ + + bitField2_ |= 0x00000010; + return this; + } + public Builder clearResetTimeoutMessage() { + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000010); + return this; + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + public boolean hasReportAvatarMessage() { + return ((bitField2_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { + return reportAvatarMessage_; + } + public Builder setReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { + if (value == null) { + throw new NullPointerException(); + } + reportAvatarMessage_ = value; + + bitField2_ |= 0x00000020; + return this; + } public Builder setReportAvatarMessage( de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder builderForValue) { - copyOnWrite(); - instance.setReportAvatarMessage(builderForValue); + reportAvatarMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000020; return this; } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ public Builder mergeReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - copyOnWrite(); - instance.mergeReportAvatarMessage(value); - return this; - } - /** - * optional .ReportAvatarMessage reportAvatarMessage = 70; - */ - public Builder clearReportAvatarMessage() { copyOnWrite(); - instance.clearReportAvatarMessage(); - return this; - } - - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - @java.lang.Override - public boolean hasReportAvatarAckMessage() { - return instance.hasReportAvatarAckMessage(); - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { - return instance.getReportAvatarAckMessage(); - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - public Builder setReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - copyOnWrite(); - instance.setReportAvatarAckMessage(value); - return this; + if (((bitField2_ & 0x00000020) == 0x00000020) && + reportAvatarMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance()) { + reportAvatarMessage_ = + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder(reportAvatarMessage_).mergeFrom(value).buildPartial(); + } else { + reportAvatarMessage_ = value; } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ + + bitField2_ |= 0x00000020; + return this; + } + public Builder clearReportAvatarMessage() { + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000020); + return this; + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + public boolean hasReportAvatarAckMessage() { + return ((bitField2_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { + return reportAvatarAckMessage_; + } + public Builder setReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + reportAvatarAckMessage_ = value; + + bitField2_ |= 0x00000040; + return this; + } public Builder setReportAvatarAckMessage( de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setReportAvatarAckMessage(builderForValue); + reportAvatarAckMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000040; return this; } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ public Builder mergeReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - copyOnWrite(); - instance.mergeReportAvatarAckMessage(value); - return this; - } - /** - * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - */ - public Builder clearReportAvatarAckMessage() { copyOnWrite(); - instance.clearReportAvatarAckMessage(); - return this; - } - - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - @java.lang.Override - public boolean hasReportGameMessage() { - return instance.hasReportGameMessage(); - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { - return instance.getReportGameMessage(); - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - public Builder setReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - copyOnWrite(); - instance.setReportGameMessage(value); - return this; + if (((bitField2_ & 0x00000040) == 0x00000040) && + reportAvatarAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance()) { + reportAvatarAckMessage_ = + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder(reportAvatarAckMessage_).mergeFrom(value).buildPartial(); + } else { + reportAvatarAckMessage_ = value; } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ + + bitField2_ |= 0x00000040; + return this; + } + public Builder clearReportAvatarAckMessage() { + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000040); + return this; + } + + // optional .ReportGameMessage reportGameMessage = 72; + private de.pokerth.protocol.ProtoBuf.ReportGameMessage reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + public boolean hasReportGameMessage() { + return ((bitField2_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { + return reportGameMessage_; + } + public Builder setReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + reportGameMessage_ = value; + + bitField2_ |= 0x00000080; + return this; + } public Builder setReportGameMessage( de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setReportGameMessage(builderForValue); + reportGameMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000080; return this; } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ public Builder mergeReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - copyOnWrite(); - instance.mergeReportGameMessage(value); - return this; - } - /** - * optional .ReportGameMessage reportGameMessage = 72; - */ - public Builder clearReportGameMessage() { copyOnWrite(); - instance.clearReportGameMessage(); - return this; - } - - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - @java.lang.Override - public boolean hasReportGameAckMessage() { - return instance.hasReportGameAckMessage(); - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { - return instance.getReportGameAckMessage(); - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - public Builder setReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - copyOnWrite(); - instance.setReportGameAckMessage(value); - return this; + if (((bitField2_ & 0x00000080) == 0x00000080) && + reportGameMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance()) { + reportGameMessage_ = + de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder(reportGameMessage_).mergeFrom(value).buildPartial(); + } else { + reportGameMessage_ = value; } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ + + bitField2_ |= 0x00000080; + return this; + } + public Builder clearReportGameMessage() { + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000080); + return this; + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + public boolean hasReportGameAckMessage() { + return ((bitField2_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { + return reportGameAckMessage_; + } + public Builder setReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + reportGameAckMessage_ = value; + + bitField2_ |= 0x00000100; + return this; + } public Builder setReportGameAckMessage( de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setReportGameAckMessage(builderForValue); + reportGameAckMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000100; return this; } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ public Builder mergeReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - copyOnWrite(); - instance.mergeReportGameAckMessage(value); - return this; - } - /** - * optional .ReportGameAckMessage reportGameAckMessage = 73; - */ - public Builder clearReportGameAckMessage() { copyOnWrite(); - instance.clearReportGameAckMessage(); - return this; - } - - /** - * optional .ErrorMessage errorMessage = 74; - */ - @java.lang.Override - public boolean hasErrorMessage() { - return instance.hasErrorMessage(); - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { - return instance.getErrorMessage(); - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - public Builder setErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - copyOnWrite(); - instance.setErrorMessage(value); - return this; + if (((bitField2_ & 0x00000100) == 0x00000100) && + reportGameAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance()) { + reportGameAckMessage_ = + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder(reportGameAckMessage_).mergeFrom(value).buildPartial(); + } else { + reportGameAckMessage_ = value; } - /** - * optional .ErrorMessage errorMessage = 74; - */ + + bitField2_ |= 0x00000100; + return this; + } + public Builder clearReportGameAckMessage() { + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000100); + return this; + } + + // optional .ErrorMessage errorMessage = 74; + private de.pokerth.protocol.ProtoBuf.ErrorMessage errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + public boolean hasErrorMessage() { + return ((bitField2_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { + return errorMessage_; + } + public Builder setErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + + bitField2_ |= 0x00000200; + return this; + } public Builder setErrorMessage( de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder builderForValue) { - copyOnWrite(); - instance.setErrorMessage(builderForValue); + errorMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000200; return this; } - /** - * optional .ErrorMessage errorMessage = 74; - */ public Builder mergeErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - copyOnWrite(); - instance.mergeErrorMessage(value); - return this; - } - /** - * optional .ErrorMessage errorMessage = 74; - */ - public Builder clearErrorMessage() { copyOnWrite(); - instance.clearErrorMessage(); - return this; - } - - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - @java.lang.Override - public boolean hasAdminRemoveGameMessage() { - return instance.hasAdminRemoveGameMessage(); - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage() { - return instance.getAdminRemoveGameMessage(); - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - public Builder setAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - copyOnWrite(); - instance.setAdminRemoveGameMessage(value); - return this; + if (((bitField2_ & 0x00000200) == 0x00000200) && + errorMessage_ != de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance()) { + errorMessage_ = + de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder(errorMessage_).mergeFrom(value).buildPartial(); + } else { + errorMessage_ = value; } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ + + bitField2_ |= 0x00000200; + return this; + } + public Builder clearErrorMessage() { + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000200); + return this; + } + + // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); + public boolean hasAdminRemoveGameMessage() { + return ((bitField2_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage() { + return adminRemoveGameMessage_; + } + public Builder setAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { + if (value == null) { + throw new NullPointerException(); + } + adminRemoveGameMessage_ = value; + + bitField2_ |= 0x00000400; + return this; + } public Builder setAdminRemoveGameMessage( de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAdminRemoveGameMessage(builderForValue); + adminRemoveGameMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000400; return this; } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ public Builder mergeAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - copyOnWrite(); - instance.mergeAdminRemoveGameMessage(value); - return this; - } - /** - * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - */ - public Builder clearAdminRemoveGameMessage() { copyOnWrite(); - instance.clearAdminRemoveGameMessage(); - return this; - } - - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - @java.lang.Override - public boolean hasAdminRemoveGameAckMessage() { - return instance.hasAdminRemoveGameAckMessage(); - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage() { - return instance.getAdminRemoveGameAckMessage(); - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - public Builder setAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - copyOnWrite(); - instance.setAdminRemoveGameAckMessage(value); - return this; + if (((bitField2_ & 0x00000400) == 0x00000400) && + adminRemoveGameMessage_ != de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance()) { + adminRemoveGameMessage_ = + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.newBuilder(adminRemoveGameMessage_).mergeFrom(value).buildPartial(); + } else { + adminRemoveGameMessage_ = value; } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ + + bitField2_ |= 0x00000400; + return this; + } + public Builder clearAdminRemoveGameMessage() { + adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000400); + return this; + } + + // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; + private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); + public boolean hasAdminRemoveGameAckMessage() { + return ((bitField2_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage() { + return adminRemoveGameAckMessage_; + } + public Builder setAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + adminRemoveGameAckMessage_ = value; + + bitField2_ |= 0x00000800; + return this; + } public Builder setAdminRemoveGameAckMessage( de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAdminRemoveGameAckMessage(builderForValue); + adminRemoveGameAckMessage_ = builderForValue.build(); + + bitField2_ |= 0x00000800; return this; } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ public Builder mergeAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - copyOnWrite(); - instance.mergeAdminRemoveGameAckMessage(value); - return this; - } - /** - * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - */ - public Builder clearAdminRemoveGameAckMessage() { copyOnWrite(); - instance.clearAdminRemoveGameAckMessage(); - return this; - } - - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - @java.lang.Override - public boolean hasAdminBanPlayerMessage() { - return instance.hasAdminBanPlayerMessage(); - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage() { - return instance.getAdminBanPlayerMessage(); - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - public Builder setAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - copyOnWrite(); - instance.setAdminBanPlayerMessage(value); - return this; + if (((bitField2_ & 0x00000800) == 0x00000800) && + adminRemoveGameAckMessage_ != de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance()) { + adminRemoveGameAckMessage_ = + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.newBuilder(adminRemoveGameAckMessage_).mergeFrom(value).buildPartial(); + } else { + adminRemoveGameAckMessage_ = value; } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ + + bitField2_ |= 0x00000800; + return this; + } + public Builder clearAdminRemoveGameAckMessage() { + adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00000800); + return this; + } + + // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); + public boolean hasAdminBanPlayerMessage() { + return ((bitField2_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage() { + return adminBanPlayerMessage_; + } + public Builder setAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { + if (value == null) { + throw new NullPointerException(); + } + adminBanPlayerMessage_ = value; + + bitField2_ |= 0x00001000; + return this; + } public Builder setAdminBanPlayerMessage( de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAdminBanPlayerMessage(builderForValue); + adminBanPlayerMessage_ = builderForValue.build(); + + bitField2_ |= 0x00001000; return this; } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ public Builder mergeAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - copyOnWrite(); - instance.mergeAdminBanPlayerMessage(value); - return this; - } - /** - * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - */ - public Builder clearAdminBanPlayerMessage() { copyOnWrite(); - instance.clearAdminBanPlayerMessage(); - return this; - } - - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - @java.lang.Override - public boolean hasAdminBanPlayerAckMessage() { - return instance.hasAdminBanPlayerAckMessage(); - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage() { - return instance.getAdminBanPlayerAckMessage(); - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - public Builder setAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - copyOnWrite(); - instance.setAdminBanPlayerAckMessage(value); - return this; + if (((bitField2_ & 0x00001000) == 0x00001000) && + adminBanPlayerMessage_ != de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance()) { + adminBanPlayerMessage_ = + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.newBuilder(adminBanPlayerMessage_).mergeFrom(value).buildPartial(); + } else { + adminBanPlayerMessage_ = value; } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ + + bitField2_ |= 0x00001000; + return this; + } + public Builder clearAdminBanPlayerMessage() { + adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00001000); + return this; + } + + // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; + private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); + public boolean hasAdminBanPlayerAckMessage() { + return ((bitField2_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage() { + return adminBanPlayerAckMessage_; + } + public Builder setAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { + if (value == null) { + throw new NullPointerException(); + } + adminBanPlayerAckMessage_ = value; + + bitField2_ |= 0x00002000; + return this; + } public Builder setAdminBanPlayerAckMessage( de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.Builder builderForValue) { - copyOnWrite(); - instance.setAdminBanPlayerAckMessage(builderForValue); + adminBanPlayerAckMessage_ = builderForValue.build(); + + bitField2_ |= 0x00002000; return this; } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ public Builder mergeAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - copyOnWrite(); - instance.mergeAdminBanPlayerAckMessage(value); - return this; - } - /** - * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - */ - public Builder clearAdminBanPlayerAckMessage() { copyOnWrite(); - instance.clearAdminBanPlayerAckMessage(); - return this; - } - - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - @java.lang.Override - public boolean hasGameListSpectatorJoinedMessage() { - return instance.hasGameListSpectatorJoinedMessage(); - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage() { - return instance.getGameListSpectatorJoinedMessage(); - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - public Builder setGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - copyOnWrite(); - instance.setGameListSpectatorJoinedMessage(value); - return this; + if (((bitField2_ & 0x00002000) == 0x00002000) && + adminBanPlayerAckMessage_ != de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance()) { + adminBanPlayerAckMessage_ = + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.newBuilder(adminBanPlayerAckMessage_).mergeFrom(value).buildPartial(); + } else { + adminBanPlayerAckMessage_ = value; } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ + + bitField2_ |= 0x00002000; + return this; + } + public Builder clearAdminBanPlayerAckMessage() { + adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00002000); + return this; + } + + // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; + private de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); + public boolean hasGameListSpectatorJoinedMessage() { + return ((bitField2_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage() { + return gameListSpectatorJoinedMessage_; + } + public Builder setGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListSpectatorJoinedMessage_ = value; + + bitField2_ |= 0x00004000; + return this; + } public Builder setGameListSpectatorJoinedMessage( de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListSpectatorJoinedMessage(builderForValue); + gameListSpectatorJoinedMessage_ = builderForValue.build(); + + bitField2_ |= 0x00004000; return this; } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ public Builder mergeGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - copyOnWrite(); - instance.mergeGameListSpectatorJoinedMessage(value); - return this; - } - /** - * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - */ - public Builder clearGameListSpectatorJoinedMessage() { copyOnWrite(); - instance.clearGameListSpectatorJoinedMessage(); - return this; - } - - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - @java.lang.Override - public boolean hasGameListSpectatorLeftMessage() { - return instance.hasGameListSpectatorLeftMessage(); - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage() { - return instance.getGameListSpectatorLeftMessage(); - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - public Builder setGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - copyOnWrite(); - instance.setGameListSpectatorLeftMessage(value); - return this; + if (((bitField2_ & 0x00004000) == 0x00004000) && + gameListSpectatorJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance()) { + gameListSpectatorJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.newBuilder(gameListSpectatorJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gameListSpectatorJoinedMessage_ = value; } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ + + bitField2_ |= 0x00004000; + return this; + } + public Builder clearGameListSpectatorJoinedMessage() { + gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00004000); + return this; + } + + // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; + private de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); + public boolean hasGameListSpectatorLeftMessage() { + return ((bitField2_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage() { + return gameListSpectatorLeftMessage_; + } + public Builder setGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameListSpectatorLeftMessage_ = value; + + bitField2_ |= 0x00008000; + return this; + } public Builder setGameListSpectatorLeftMessage( de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameListSpectatorLeftMessage(builderForValue); + gameListSpectatorLeftMessage_ = builderForValue.build(); + + bitField2_ |= 0x00008000; return this; } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ public Builder mergeGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - copyOnWrite(); - instance.mergeGameListSpectatorLeftMessage(value); - return this; - } - /** - * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - */ - public Builder clearGameListSpectatorLeftMessage() { copyOnWrite(); - instance.clearGameListSpectatorLeftMessage(); - return this; - } - - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - @java.lang.Override - public boolean hasGameSpectatorJoinedMessage() { - return instance.hasGameSpectatorJoinedMessage(); - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage() { - return instance.getGameSpectatorJoinedMessage(); - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - public Builder setGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - copyOnWrite(); - instance.setGameSpectatorJoinedMessage(value); - return this; + if (((bitField2_ & 0x00008000) == 0x00008000) && + gameListSpectatorLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance()) { + gameListSpectatorLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.newBuilder(gameListSpectatorLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gameListSpectatorLeftMessage_ = value; } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ + + bitField2_ |= 0x00008000; + return this; + } + public Builder clearGameListSpectatorLeftMessage() { + gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00008000); + return this; + } + + // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; + private de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); + public boolean hasGameSpectatorJoinedMessage() { + return ((bitField2_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage() { + return gameSpectatorJoinedMessage_; + } + public Builder setGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameSpectatorJoinedMessage_ = value; + + bitField2_ |= 0x00010000; + return this; + } public Builder setGameSpectatorJoinedMessage( de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameSpectatorJoinedMessage(builderForValue); + gameSpectatorJoinedMessage_ = builderForValue.build(); + + bitField2_ |= 0x00010000; return this; } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ public Builder mergeGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - copyOnWrite(); - instance.mergeGameSpectatorJoinedMessage(value); - return this; - } - /** - * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - */ - public Builder clearGameSpectatorJoinedMessage() { copyOnWrite(); - instance.clearGameSpectatorJoinedMessage(); - return this; - } - - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - @java.lang.Override - public boolean hasGameSpectatorLeftMessage() { - return instance.hasGameSpectatorLeftMessage(); - } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - @java.lang.Override - public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage() { - return instance.getGameSpectatorLeftMessage(); - } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - public Builder setGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { - copyOnWrite(); - instance.setGameSpectatorLeftMessage(value); - return this; + if (((bitField2_ & 0x00010000) == 0x00010000) && + gameSpectatorJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance()) { + gameSpectatorJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.newBuilder(gameSpectatorJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gameSpectatorJoinedMessage_ = value; } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ + + bitField2_ |= 0x00010000; + return this; + } + public Builder clearGameSpectatorJoinedMessage() { + gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00010000); + return this; + } + + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; + private de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); + public boolean hasGameSpectatorLeftMessage() { + return ((bitField2_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage() { + return gameSpectatorLeftMessage_; + } + public Builder setGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { + if (value == null) { + throw new NullPointerException(); + } + gameSpectatorLeftMessage_ = value; + + bitField2_ |= 0x00020000; + return this; + } public Builder setGameSpectatorLeftMessage( de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.Builder builderForValue) { - copyOnWrite(); - instance.setGameSpectatorLeftMessage(builderForValue); + gameSpectatorLeftMessage_ = builderForValue.build(); + + bitField2_ |= 0x00020000; return this; } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ public Builder mergeGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { - copyOnWrite(); - instance.mergeGameSpectatorLeftMessage(value); + if (((bitField2_ & 0x00020000) == 0x00020000) && + gameSpectatorLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance()) { + gameSpectatorLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder(gameSpectatorLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gameSpectatorLeftMessage_ = value; + } + + bitField2_ |= 0x00020000; return this; } - /** - * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - */ - public Builder clearGameSpectatorLeftMessage() { copyOnWrite(); - instance.clearGameSpectatorLeftMessage(); + public Builder clearGameSpectatorLeftMessage() { + gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); + + bitField2_ = (bitField2_ & ~0x00020000); return this; } - + // @@protoc_insertion_point(builder_scope:PokerTHMessage) } - private byte memoizedIsInitialized = 2; - @java.lang.Override - @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) - protected final java.lang.Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - java.lang.Object arg0, java.lang.Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new de.pokerth.protocol.ProtoBuf.PokerTHMessage(); - } - case NEW_BUILDER: { - return new Builder(); - } - case IS_INITIALIZED: { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return DEFAULT_INSTANCE; - if (isInitialized == 0) return null; - - boolean shouldMemoize = ((Boolean) arg0).booleanValue(); - if (!hasMessageType()) { - return null; - } - if (hasAnnounceMessage()) { - if (!getAnnounceMessage().isInitialized()) { - return null; - } - } - if (hasInitMessage()) { - if (!getInitMessage().isInitialized()) { - return null; - } - } - if (hasAuthServerChallengeMessage()) { - if (!getAuthServerChallengeMessage().isInitialized()) { - return null; - } - } - if (hasAuthClientResponseMessage()) { - if (!getAuthClientResponseMessage().isInitialized()) { - return null; - } - } - if (hasAuthServerVerificationMessage()) { - if (!getAuthServerVerificationMessage().isInitialized()) { - return null; - } - } - if (hasInitAckMessage()) { - if (!getInitAckMessage().isInitialized()) { - return null; - } - } - if (hasAvatarRequestMessage()) { - if (!getAvatarRequestMessage().isInitialized()) { - return null; - } - } - if (hasAvatarHeaderMessage()) { - if (!getAvatarHeaderMessage().isInitialized()) { - return null; - } - } - if (hasAvatarDataMessage()) { - if (!getAvatarDataMessage().isInitialized()) { - return null; - } - } - if (hasAvatarEndMessage()) { - if (!getAvatarEndMessage().isInitialized()) { - return null; - } - } - if (hasUnknownAvatarMessage()) { - if (!getUnknownAvatarMessage().isInitialized()) { - return null; - } - } - if (hasPlayerListMessage()) { - if (!getPlayerListMessage().isInitialized()) { - return null; - } - } - if (hasGameListNewMessage()) { - if (!getGameListNewMessage().isInitialized()) { - return null; - } - } - if (hasGameListUpdateMessage()) { - if (!getGameListUpdateMessage().isInitialized()) { - return null; - } - } - if (hasGameListPlayerJoinedMessage()) { - if (!getGameListPlayerJoinedMessage().isInitialized()) { - return null; - } - } - if (hasGameListPlayerLeftMessage()) { - if (!getGameListPlayerLeftMessage().isInitialized()) { - return null; - } - } - if (hasGameListAdminChangedMessage()) { - if (!getGameListAdminChangedMessage().isInitialized()) { - return null; - } - } - if (hasPlayerInfoReplyMessage()) { - if (!getPlayerInfoReplyMessage().isInitialized()) { - return null; - } - } - if (hasSubscriptionRequestMessage()) { - if (!getSubscriptionRequestMessage().isInitialized()) { - return null; - } - } - if (hasJoinExistingGameMessage()) { - if (!getJoinExistingGameMessage().isInitialized()) { - return null; - } - } - if (hasJoinNewGameMessage()) { - if (!getJoinNewGameMessage().isInitialized()) { - return null; - } - } - if (hasRejoinExistingGameMessage()) { - if (!getRejoinExistingGameMessage().isInitialized()) { - return null; - } - } - if (hasJoinGameAckMessage()) { - if (!getJoinGameAckMessage().isInitialized()) { - return null; - } - } - if (hasJoinGameFailedMessage()) { - if (!getJoinGameFailedMessage().isInitialized()) { - return null; - } - } - if (hasGamePlayerJoinedMessage()) { - if (!getGamePlayerJoinedMessage().isInitialized()) { - return null; - } - } - if (hasGamePlayerLeftMessage()) { - if (!getGamePlayerLeftMessage().isInitialized()) { - return null; - } - } - if (hasGameAdminChangedMessage()) { - if (!getGameAdminChangedMessage().isInitialized()) { - return null; - } - } - if (hasRemovedFromGameMessage()) { - if (!getRemovedFromGameMessage().isInitialized()) { - return null; - } - } - if (hasKickPlayerRequestMessage()) { - if (!getKickPlayerRequestMessage().isInitialized()) { - return null; - } - } - if (hasLeaveGameRequestMessage()) { - if (!getLeaveGameRequestMessage().isInitialized()) { - return null; - } - } - if (hasInvitePlayerToGameMessage()) { - if (!getInvitePlayerToGameMessage().isInitialized()) { - return null; - } - } - if (hasInviteNotifyMessage()) { - if (!getInviteNotifyMessage().isInitialized()) { - return null; - } - } - if (hasRejectGameInvitationMessage()) { - if (!getRejectGameInvitationMessage().isInitialized()) { - return null; - } - } - if (hasRejectInvNotifyMessage()) { - if (!getRejectInvNotifyMessage().isInitialized()) { - return null; - } - } - if (hasStartEventMessage()) { - if (!getStartEventMessage().isInitialized()) { - return null; - } - } - if (hasStartEventAckMessage()) { - if (!getStartEventAckMessage().isInitialized()) { - return null; - } - } - if (hasGameStartInitialMessage()) { - if (!getGameStartInitialMessage().isInitialized()) { - return null; - } - } - if (hasGameStartRejoinMessage()) { - if (!getGameStartRejoinMessage().isInitialized()) { - return null; - } - } - if (hasHandStartMessage()) { - if (!getHandStartMessage().isInitialized()) { - return null; - } - } - if (hasPlayersTurnMessage()) { - if (!getPlayersTurnMessage().isInitialized()) { - return null; - } - } - if (hasMyActionRequestMessage()) { - if (!getMyActionRequestMessage().isInitialized()) { - return null; - } - } - if (hasYourActionRejectedMessage()) { - if (!getYourActionRejectedMessage().isInitialized()) { - return null; - } - } - if (hasPlayersActionDoneMessage()) { - if (!getPlayersActionDoneMessage().isInitialized()) { - return null; - } - } - if (hasDealFlopCardsMessage()) { - if (!getDealFlopCardsMessage().isInitialized()) { - return null; - } - } - if (hasDealTurnCardMessage()) { - if (!getDealTurnCardMessage().isInitialized()) { - return null; - } - } - if (hasDealRiverCardMessage()) { - if (!getDealRiverCardMessage().isInitialized()) { - return null; - } - } - if (hasAllInShowCardsMessage()) { - if (!getAllInShowCardsMessage().isInitialized()) { - return null; - } - } - if (hasEndOfHandShowCardsMessage()) { - if (!getEndOfHandShowCardsMessage().isInitialized()) { - return null; - } - } - if (hasEndOfHandHideCardsMessage()) { - if (!getEndOfHandHideCardsMessage().isInitialized()) { - return null; - } - } - if (hasAfterHandShowCardsMessage()) { - if (!getAfterHandShowCardsMessage().isInitialized()) { - return null; - } - } - if (hasEndOfGameMessage()) { - if (!getEndOfGameMessage().isInitialized()) { - return null; - } - } - if (hasPlayerIdChangedMessage()) { - if (!getPlayerIdChangedMessage().isInitialized()) { - return null; - } - } - if (hasAskKickPlayerMessage()) { - if (!getAskKickPlayerMessage().isInitialized()) { - return null; - } - } - if (hasAskKickDeniedMessage()) { - if (!getAskKickDeniedMessage().isInitialized()) { - return null; - } - } - if (hasStartKickPetitionMessage()) { - if (!getStartKickPetitionMessage().isInitialized()) { - return null; - } - } - if (hasVoteKickRequestMessage()) { - if (!getVoteKickRequestMessage().isInitialized()) { - return null; - } - } - if (hasVoteKickReplyMessage()) { - if (!getVoteKickReplyMessage().isInitialized()) { - return null; - } - } - if (hasKickPetitionUpdateMessage()) { - if (!getKickPetitionUpdateMessage().isInitialized()) { - return null; - } - } - if (hasEndKickPetitionMessage()) { - if (!getEndKickPetitionMessage().isInitialized()) { - return null; - } - } - if (hasStatisticsMessage()) { - if (!getStatisticsMessage().isInitialized()) { - return null; - } - } - if (hasChatRequestMessage()) { - if (!getChatRequestMessage().isInitialized()) { - return null; - } - } - if (hasChatMessage()) { - if (!getChatMessage().isInitialized()) { - return null; - } - } - if (hasChatRejectMessage()) { - if (!getChatRejectMessage().isInitialized()) { - return null; - } - } - if (hasDialogMessage()) { - if (!getDialogMessage().isInitialized()) { - return null; - } - } - if (hasTimeoutWarningMessage()) { - if (!getTimeoutWarningMessage().isInitialized()) { - return null; - } - } - if (hasReportAvatarMessage()) { - if (!getReportAvatarMessage().isInitialized()) { - return null; - } - } - if (hasReportAvatarAckMessage()) { - if (!getReportAvatarAckMessage().isInitialized()) { - return null; - } - } - if (hasReportGameMessage()) { - if (!getReportGameMessage().isInitialized()) { - return null; - } - } - if (hasReportGameAckMessage()) { - if (!getReportGameAckMessage().isInitialized()) { - return null; - } - } - if (hasErrorMessage()) { - if (!getErrorMessage().isInitialized()) { - return null; - } - } - if (hasAdminRemoveGameMessage()) { - if (!getAdminRemoveGameMessage().isInitialized()) { - return null; - } - } - if (hasAdminRemoveGameAckMessage()) { - if (!getAdminRemoveGameAckMessage().isInitialized()) { - return null; - } - } - if (hasAdminBanPlayerMessage()) { - if (!getAdminBanPlayerMessage().isInitialized()) { - return null; - } - } - if (hasAdminBanPlayerAckMessage()) { - if (!getAdminBanPlayerAckMessage().isInitialized()) { - return null; - } - } - if (hasGameListSpectatorJoinedMessage()) { - if (!getGameListSpectatorJoinedMessage().isInitialized()) { - return null; - } - } - if (hasGameListSpectatorLeftMessage()) { - if (!getGameListSpectatorLeftMessage().isInitialized()) { - return null; - } - } - if (hasGameSpectatorJoinedMessage()) { - if (!getGameSpectatorJoinedMessage().isInitialized()) { - return null; - } - } - if (hasGameSpectatorLeftMessage()) { - if (!getGameSpectatorLeftMessage().isInitialized()) { - return null; - } - } - return DEFAULT_INSTANCE; - - } - case MAKE_IMMUTABLE: { - return null; - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - de.pokerth.protocol.ProtoBuf.PokerTHMessage other = (de.pokerth.protocol.ProtoBuf.PokerTHMessage) arg1; - messageType_ = visitor.visitInt(hasMessageType(), messageType_, - other.hasMessageType(), other.messageType_); - announceMessage_ = visitor.visitMessage(announceMessage_, other.announceMessage_); - initMessage_ = visitor.visitMessage(initMessage_, other.initMessage_); - authServerChallengeMessage_ = visitor.visitMessage(authServerChallengeMessage_, other.authServerChallengeMessage_); - authClientResponseMessage_ = visitor.visitMessage(authClientResponseMessage_, other.authClientResponseMessage_); - authServerVerificationMessage_ = visitor.visitMessage(authServerVerificationMessage_, other.authServerVerificationMessage_); - initAckMessage_ = visitor.visitMessage(initAckMessage_, other.initAckMessage_); - avatarRequestMessage_ = visitor.visitMessage(avatarRequestMessage_, other.avatarRequestMessage_); - avatarHeaderMessage_ = visitor.visitMessage(avatarHeaderMessage_, other.avatarHeaderMessage_); - avatarDataMessage_ = visitor.visitMessage(avatarDataMessage_, other.avatarDataMessage_); - avatarEndMessage_ = visitor.visitMessage(avatarEndMessage_, other.avatarEndMessage_); - unknownAvatarMessage_ = visitor.visitMessage(unknownAvatarMessage_, other.unknownAvatarMessage_); - playerListMessage_ = visitor.visitMessage(playerListMessage_, other.playerListMessage_); - gameListNewMessage_ = visitor.visitMessage(gameListNewMessage_, other.gameListNewMessage_); - gameListUpdateMessage_ = visitor.visitMessage(gameListUpdateMessage_, other.gameListUpdateMessage_); - gameListPlayerJoinedMessage_ = visitor.visitMessage(gameListPlayerJoinedMessage_, other.gameListPlayerJoinedMessage_); - gameListPlayerLeftMessage_ = visitor.visitMessage(gameListPlayerLeftMessage_, other.gameListPlayerLeftMessage_); - gameListAdminChangedMessage_ = visitor.visitMessage(gameListAdminChangedMessage_, other.gameListAdminChangedMessage_); - playerInfoRequestMessage_ = visitor.visitMessage(playerInfoRequestMessage_, other.playerInfoRequestMessage_); - playerInfoReplyMessage_ = visitor.visitMessage(playerInfoReplyMessage_, other.playerInfoReplyMessage_); - subscriptionRequestMessage_ = visitor.visitMessage(subscriptionRequestMessage_, other.subscriptionRequestMessage_); - joinExistingGameMessage_ = visitor.visitMessage(joinExistingGameMessage_, other.joinExistingGameMessage_); - joinNewGameMessage_ = visitor.visitMessage(joinNewGameMessage_, other.joinNewGameMessage_); - rejoinExistingGameMessage_ = visitor.visitMessage(rejoinExistingGameMessage_, other.rejoinExistingGameMessage_); - joinGameAckMessage_ = visitor.visitMessage(joinGameAckMessage_, other.joinGameAckMessage_); - joinGameFailedMessage_ = visitor.visitMessage(joinGameFailedMessage_, other.joinGameFailedMessage_); - gamePlayerJoinedMessage_ = visitor.visitMessage(gamePlayerJoinedMessage_, other.gamePlayerJoinedMessage_); - gamePlayerLeftMessage_ = visitor.visitMessage(gamePlayerLeftMessage_, other.gamePlayerLeftMessage_); - gameAdminChangedMessage_ = visitor.visitMessage(gameAdminChangedMessage_, other.gameAdminChangedMessage_); - removedFromGameMessage_ = visitor.visitMessage(removedFromGameMessage_, other.removedFromGameMessage_); - kickPlayerRequestMessage_ = visitor.visitMessage(kickPlayerRequestMessage_, other.kickPlayerRequestMessage_); - leaveGameRequestMessage_ = visitor.visitMessage(leaveGameRequestMessage_, other.leaveGameRequestMessage_); - invitePlayerToGameMessage_ = visitor.visitMessage(invitePlayerToGameMessage_, other.invitePlayerToGameMessage_); - inviteNotifyMessage_ = visitor.visitMessage(inviteNotifyMessage_, other.inviteNotifyMessage_); - rejectGameInvitationMessage_ = visitor.visitMessage(rejectGameInvitationMessage_, other.rejectGameInvitationMessage_); - rejectInvNotifyMessage_ = visitor.visitMessage(rejectInvNotifyMessage_, other.rejectInvNotifyMessage_); - startEventMessage_ = visitor.visitMessage(startEventMessage_, other.startEventMessage_); - startEventAckMessage_ = visitor.visitMessage(startEventAckMessage_, other.startEventAckMessage_); - gameStartInitialMessage_ = visitor.visitMessage(gameStartInitialMessage_, other.gameStartInitialMessage_); - gameStartRejoinMessage_ = visitor.visitMessage(gameStartRejoinMessage_, other.gameStartRejoinMessage_); - handStartMessage_ = visitor.visitMessage(handStartMessage_, other.handStartMessage_); - playersTurnMessage_ = visitor.visitMessage(playersTurnMessage_, other.playersTurnMessage_); - myActionRequestMessage_ = visitor.visitMessage(myActionRequestMessage_, other.myActionRequestMessage_); - yourActionRejectedMessage_ = visitor.visitMessage(yourActionRejectedMessage_, other.yourActionRejectedMessage_); - playersActionDoneMessage_ = visitor.visitMessage(playersActionDoneMessage_, other.playersActionDoneMessage_); - dealFlopCardsMessage_ = visitor.visitMessage(dealFlopCardsMessage_, other.dealFlopCardsMessage_); - dealTurnCardMessage_ = visitor.visitMessage(dealTurnCardMessage_, other.dealTurnCardMessage_); - dealRiverCardMessage_ = visitor.visitMessage(dealRiverCardMessage_, other.dealRiverCardMessage_); - allInShowCardsMessage_ = visitor.visitMessage(allInShowCardsMessage_, other.allInShowCardsMessage_); - endOfHandShowCardsMessage_ = visitor.visitMessage(endOfHandShowCardsMessage_, other.endOfHandShowCardsMessage_); - endOfHandHideCardsMessage_ = visitor.visitMessage(endOfHandHideCardsMessage_, other.endOfHandHideCardsMessage_); - showMyCardsRequestMessage_ = visitor.visitMessage(showMyCardsRequestMessage_, other.showMyCardsRequestMessage_); - afterHandShowCardsMessage_ = visitor.visitMessage(afterHandShowCardsMessage_, other.afterHandShowCardsMessage_); - endOfGameMessage_ = visitor.visitMessage(endOfGameMessage_, other.endOfGameMessage_); - playerIdChangedMessage_ = visitor.visitMessage(playerIdChangedMessage_, other.playerIdChangedMessage_); - askKickPlayerMessage_ = visitor.visitMessage(askKickPlayerMessage_, other.askKickPlayerMessage_); - askKickDeniedMessage_ = visitor.visitMessage(askKickDeniedMessage_, other.askKickDeniedMessage_); - startKickPetitionMessage_ = visitor.visitMessage(startKickPetitionMessage_, other.startKickPetitionMessage_); - voteKickRequestMessage_ = visitor.visitMessage(voteKickRequestMessage_, other.voteKickRequestMessage_); - voteKickReplyMessage_ = visitor.visitMessage(voteKickReplyMessage_, other.voteKickReplyMessage_); - kickPetitionUpdateMessage_ = visitor.visitMessage(kickPetitionUpdateMessage_, other.kickPetitionUpdateMessage_); - endKickPetitionMessage_ = visitor.visitMessage(endKickPetitionMessage_, other.endKickPetitionMessage_); - statisticsMessage_ = visitor.visitMessage(statisticsMessage_, other.statisticsMessage_); - chatRequestMessage_ = visitor.visitMessage(chatRequestMessage_, other.chatRequestMessage_); - chatMessage_ = visitor.visitMessage(chatMessage_, other.chatMessage_); - chatRejectMessage_ = visitor.visitMessage(chatRejectMessage_, other.chatRejectMessage_); - dialogMessage_ = visitor.visitMessage(dialogMessage_, other.dialogMessage_); - timeoutWarningMessage_ = visitor.visitMessage(timeoutWarningMessage_, other.timeoutWarningMessage_); - resetTimeoutMessage_ = visitor.visitMessage(resetTimeoutMessage_, other.resetTimeoutMessage_); - reportAvatarMessage_ = visitor.visitMessage(reportAvatarMessage_, other.reportAvatarMessage_); - reportAvatarAckMessage_ = visitor.visitMessage(reportAvatarAckMessage_, other.reportAvatarAckMessage_); - reportGameMessage_ = visitor.visitMessage(reportGameMessage_, other.reportGameMessage_); - reportGameAckMessage_ = visitor.visitMessage(reportGameAckMessage_, other.reportGameAckMessage_); - errorMessage_ = visitor.visitMessage(errorMessage_, other.errorMessage_); - adminRemoveGameMessage_ = visitor.visitMessage(adminRemoveGameMessage_, other.adminRemoveGameMessage_); - adminRemoveGameAckMessage_ = visitor.visitMessage(adminRemoveGameAckMessage_, other.adminRemoveGameAckMessage_); - adminBanPlayerMessage_ = visitor.visitMessage(adminBanPlayerMessage_, other.adminBanPlayerMessage_); - adminBanPlayerAckMessage_ = visitor.visitMessage(adminBanPlayerAckMessage_, other.adminBanPlayerAckMessage_); - gameListSpectatorJoinedMessage_ = visitor.visitMessage(gameListSpectatorJoinedMessage_, other.gameListSpectatorJoinedMessage_); - gameListSpectatorLeftMessage_ = visitor.visitMessage(gameListSpectatorLeftMessage_, other.gameListSpectatorLeftMessage_); - gameSpectatorJoinedMessage_ = visitor.visitMessage(gameSpectatorJoinedMessage_, other.gameSpectatorJoinedMessage_); - gameSpectatorLeftMessage_ = visitor.visitMessage(gameSpectatorLeftMessage_, other.gameSpectatorLeftMessage_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - bitField1_ |= other.bitField1_; - bitField2_ |= other.bitField2_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.forNumber(rawValue); - if (value == null) { - super.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - messageType_ = rawValue; - } - break; - } - case 18: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = announceMessage_.toBuilder(); - } - announceMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(announceMessage_); - announceMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - de.pokerth.protocol.ProtoBuf.InitMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = initMessage_.toBuilder(); - } - initMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.InitMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(initMessage_); - initMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = authServerChallengeMessage_.toBuilder(); - } - authServerChallengeMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authServerChallengeMessage_); - authServerChallengeMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) != 0)) { - subBuilder = authClientResponseMessage_.toBuilder(); - } - authClientResponseMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authClientResponseMessage_); - authClientResponseMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) != 0)) { - subBuilder = authServerVerificationMessage_.toBuilder(); - } - authServerVerificationMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authServerVerificationMessage_); - authServerVerificationMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 58: { - de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) != 0)) { - subBuilder = initAckMessage_.toBuilder(); - } - initAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(initAckMessage_); - initAckMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) != 0)) { - subBuilder = avatarRequestMessage_.toBuilder(); - } - avatarRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarRequestMessage_); - avatarRequestMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 74: { - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) != 0)) { - subBuilder = avatarHeaderMessage_.toBuilder(); - } - avatarHeaderMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarHeaderMessage_); - avatarHeaderMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) != 0)) { - subBuilder = avatarDataMessage_.toBuilder(); - } - avatarDataMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarDataMessage_); - avatarDataMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 90: { - de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) != 0)) { - subBuilder = avatarEndMessage_.toBuilder(); - } - avatarEndMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatarEndMessage_); - avatarEndMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - case 98: { - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000800) != 0)) { - subBuilder = unknownAvatarMessage_.toBuilder(); - } - unknownAvatarMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unknownAvatarMessage_); - unknownAvatarMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000800; - break; - } - case 106: { - de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00001000) != 0)) { - subBuilder = playerListMessage_.toBuilder(); - } - playerListMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerListMessage_); - playerListMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00001000; - break; - } - case 114: { - de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00002000) != 0)) { - subBuilder = gameListNewMessage_.toBuilder(); - } - gameListNewMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListNewMessage_); - gameListNewMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00002000; - break; - } - case 122: { - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00004000) != 0)) { - subBuilder = gameListUpdateMessage_.toBuilder(); - } - gameListUpdateMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListUpdateMessage_); - gameListUpdateMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00004000; - break; - } - case 130: { - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00008000) != 0)) { - subBuilder = gameListPlayerJoinedMessage_.toBuilder(); - } - gameListPlayerJoinedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListPlayerJoinedMessage_); - gameListPlayerJoinedMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00008000; - break; - } - case 138: { - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00010000) != 0)) { - subBuilder = gameListPlayerLeftMessage_.toBuilder(); - } - gameListPlayerLeftMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListPlayerLeftMessage_); - gameListPlayerLeftMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00010000; - break; - } - case 146: { - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00020000) != 0)) { - subBuilder = gameListAdminChangedMessage_.toBuilder(); - } - gameListAdminChangedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListAdminChangedMessage_); - gameListAdminChangedMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00020000; - break; - } - case 154: { - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00040000) != 0)) { - subBuilder = playerInfoRequestMessage_.toBuilder(); - } - playerInfoRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerInfoRequestMessage_); - playerInfoRequestMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00040000; - break; - } - case 162: { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00080000) != 0)) { - subBuilder = playerInfoReplyMessage_.toBuilder(); - } - playerInfoReplyMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerInfoReplyMessage_); - playerInfoReplyMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00080000; - break; - } - case 170: { - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00100000) != 0)) { - subBuilder = subscriptionRequestMessage_.toBuilder(); - } - subscriptionRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subscriptionRequestMessage_); - subscriptionRequestMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00100000; - break; - } - case 178: { - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00200000) != 0)) { - subBuilder = joinExistingGameMessage_.toBuilder(); - } - joinExistingGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(joinExistingGameMessage_); - joinExistingGameMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00200000; - break; - } - case 186: { - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00400000) != 0)) { - subBuilder = joinNewGameMessage_.toBuilder(); - } - joinNewGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(joinNewGameMessage_); - joinNewGameMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00400000; - break; - } - case 194: { - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00800000) != 0)) { - subBuilder = rejoinExistingGameMessage_.toBuilder(); - } - rejoinExistingGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejoinExistingGameMessage_); - rejoinExistingGameMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00800000; - break; - } - case 202: { - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder subBuilder = null; - if (((bitField0_ & 0x01000000) != 0)) { - subBuilder = joinGameAckMessage_.toBuilder(); - } - joinGameAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(joinGameAckMessage_); - joinGameAckMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x01000000; - break; - } - case 210: { - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder subBuilder = null; - if (((bitField0_ & 0x02000000) != 0)) { - subBuilder = joinGameFailedMessage_.toBuilder(); - } - joinGameFailedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(joinGameFailedMessage_); - joinGameFailedMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x02000000; - break; - } - case 218: { - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder subBuilder = null; - if (((bitField0_ & 0x04000000) != 0)) { - subBuilder = gamePlayerJoinedMessage_.toBuilder(); - } - gamePlayerJoinedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gamePlayerJoinedMessage_); - gamePlayerJoinedMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x04000000; - break; - } - case 226: { - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder subBuilder = null; - if (((bitField0_ & 0x08000000) != 0)) { - subBuilder = gamePlayerLeftMessage_.toBuilder(); - } - gamePlayerLeftMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gamePlayerLeftMessage_); - gamePlayerLeftMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x08000000; - break; - } - case 234: { - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder subBuilder = null; - if (((bitField0_ & 0x10000000) != 0)) { - subBuilder = gameAdminChangedMessage_.toBuilder(); - } - gameAdminChangedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameAdminChangedMessage_); - gameAdminChangedMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x10000000; - break; - } - case 242: { - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder subBuilder = null; - if (((bitField0_ & 0x20000000) != 0)) { - subBuilder = removedFromGameMessage_.toBuilder(); - } - removedFromGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(removedFromGameMessage_); - removedFromGameMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x20000000; - break; - } - case 250: { - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder subBuilder = null; - if (((bitField0_ & 0x40000000) != 0)) { - subBuilder = kickPlayerRequestMessage_.toBuilder(); - } - kickPlayerRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kickPlayerRequestMessage_); - kickPlayerRequestMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x40000000; - break; - } - case 258: { - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder subBuilder = null; - if (((bitField0_ & 0x80000000) != 0)) { - subBuilder = leaveGameRequestMessage_.toBuilder(); - } - leaveGameRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leaveGameRequestMessage_); - leaveGameRequestMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x80000000; - break; - } - case 266: { - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000001) != 0)) { - subBuilder = invitePlayerToGameMessage_.toBuilder(); - } - invitePlayerToGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(invitePlayerToGameMessage_); - invitePlayerToGameMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000001; - break; - } - case 274: { - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000002) != 0)) { - subBuilder = inviteNotifyMessage_.toBuilder(); - } - inviteNotifyMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inviteNotifyMessage_); - inviteNotifyMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000002; - break; - } - case 282: { - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000004) != 0)) { - subBuilder = rejectGameInvitationMessage_.toBuilder(); - } - rejectGameInvitationMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejectGameInvitationMessage_); - rejectGameInvitationMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000004; - break; - } - case 290: { - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000008) != 0)) { - subBuilder = rejectInvNotifyMessage_.toBuilder(); - } - rejectInvNotifyMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejectInvNotifyMessage_); - rejectInvNotifyMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000008; - break; - } - case 298: { - de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000010) != 0)) { - subBuilder = startEventMessage_.toBuilder(); - } - startEventMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startEventMessage_); - startEventMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000010; - break; - } - case 306: { - de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000020) != 0)) { - subBuilder = startEventAckMessage_.toBuilder(); - } - startEventAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startEventAckMessage_); - startEventAckMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000020; - break; - } - case 314: { - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000040) != 0)) { - subBuilder = gameStartInitialMessage_.toBuilder(); - } - gameStartInitialMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameStartInitialMessage_); - gameStartInitialMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000040; - break; - } - case 322: { - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000080) != 0)) { - subBuilder = gameStartRejoinMessage_.toBuilder(); - } - gameStartRejoinMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameStartRejoinMessage_); - gameStartRejoinMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000080; - break; - } - case 330: { - de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000100) != 0)) { - subBuilder = handStartMessage_.toBuilder(); - } - handStartMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(handStartMessage_); - handStartMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000100; - break; - } - case 338: { - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000200) != 0)) { - subBuilder = playersTurnMessage_.toBuilder(); - } - playersTurnMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playersTurnMessage_); - playersTurnMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000200; - break; - } - case 346: { - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000400) != 0)) { - subBuilder = myActionRequestMessage_.toBuilder(); - } - myActionRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(myActionRequestMessage_); - myActionRequestMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000400; - break; - } - case 354: { - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00000800) != 0)) { - subBuilder = yourActionRejectedMessage_.toBuilder(); - } - yourActionRejectedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(yourActionRejectedMessage_); - yourActionRejectedMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00000800; - break; - } - case 362: { - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00001000) != 0)) { - subBuilder = playersActionDoneMessage_.toBuilder(); - } - playersActionDoneMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playersActionDoneMessage_); - playersActionDoneMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00001000; - break; - } - case 370: { - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00002000) != 0)) { - subBuilder = dealFlopCardsMessage_.toBuilder(); - } - dealFlopCardsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dealFlopCardsMessage_); - dealFlopCardsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00002000; - break; - } - case 378: { - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00004000) != 0)) { - subBuilder = dealTurnCardMessage_.toBuilder(); - } - dealTurnCardMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dealTurnCardMessage_); - dealTurnCardMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00004000; - break; - } - case 386: { - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00008000) != 0)) { - subBuilder = dealRiverCardMessage_.toBuilder(); - } - dealRiverCardMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dealRiverCardMessage_); - dealRiverCardMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00008000; - break; - } - case 394: { - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00010000) != 0)) { - subBuilder = allInShowCardsMessage_.toBuilder(); - } - allInShowCardsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allInShowCardsMessage_); - allInShowCardsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00010000; - break; - } - case 402: { - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00020000) != 0)) { - subBuilder = endOfHandShowCardsMessage_.toBuilder(); - } - endOfHandShowCardsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endOfHandShowCardsMessage_); - endOfHandShowCardsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00020000; - break; - } - case 410: { - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00040000) != 0)) { - subBuilder = endOfHandHideCardsMessage_.toBuilder(); - } - endOfHandHideCardsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endOfHandHideCardsMessage_); - endOfHandHideCardsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00040000; - break; - } - case 418: { - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00080000) != 0)) { - subBuilder = showMyCardsRequestMessage_.toBuilder(); - } - showMyCardsRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(showMyCardsRequestMessage_); - showMyCardsRequestMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00080000; - break; - } - case 426: { - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00100000) != 0)) { - subBuilder = afterHandShowCardsMessage_.toBuilder(); - } - afterHandShowCardsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(afterHandShowCardsMessage_); - afterHandShowCardsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00100000; - break; - } - case 434: { - de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00200000) != 0)) { - subBuilder = endOfGameMessage_.toBuilder(); - } - endOfGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endOfGameMessage_); - endOfGameMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00200000; - break; - } - case 442: { - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00400000) != 0)) { - subBuilder = playerIdChangedMessage_.toBuilder(); - } - playerIdChangedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(playerIdChangedMessage_); - playerIdChangedMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00400000; - break; - } - case 450: { - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder subBuilder = null; - if (((bitField1_ & 0x00800000) != 0)) { - subBuilder = askKickPlayerMessage_.toBuilder(); - } - askKickPlayerMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(askKickPlayerMessage_); - askKickPlayerMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x00800000; - break; - } - case 458: { - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder subBuilder = null; - if (((bitField1_ & 0x01000000) != 0)) { - subBuilder = askKickDeniedMessage_.toBuilder(); - } - askKickDeniedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(askKickDeniedMessage_); - askKickDeniedMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x01000000; - break; - } - case 466: { - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder subBuilder = null; - if (((bitField1_ & 0x02000000) != 0)) { - subBuilder = startKickPetitionMessage_.toBuilder(); - } - startKickPetitionMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startKickPetitionMessage_); - startKickPetitionMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x02000000; - break; - } - case 474: { - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder subBuilder = null; - if (((bitField1_ & 0x04000000) != 0)) { - subBuilder = voteKickRequestMessage_.toBuilder(); - } - voteKickRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voteKickRequestMessage_); - voteKickRequestMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x04000000; - break; - } - case 482: { - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder subBuilder = null; - if (((bitField1_ & 0x08000000) != 0)) { - subBuilder = voteKickReplyMessage_.toBuilder(); - } - voteKickReplyMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(voteKickReplyMessage_); - voteKickReplyMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x08000000; - break; - } - case 490: { - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder subBuilder = null; - if (((bitField1_ & 0x10000000) != 0)) { - subBuilder = kickPetitionUpdateMessage_.toBuilder(); - } - kickPetitionUpdateMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kickPetitionUpdateMessage_); - kickPetitionUpdateMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x10000000; - break; - } - case 498: { - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder subBuilder = null; - if (((bitField1_ & 0x20000000) != 0)) { - subBuilder = endKickPetitionMessage_.toBuilder(); - } - endKickPetitionMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endKickPetitionMessage_); - endKickPetitionMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x20000000; - break; - } - case 506: { - de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder subBuilder = null; - if (((bitField1_ & 0x40000000) != 0)) { - subBuilder = statisticsMessage_.toBuilder(); - } - statisticsMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(statisticsMessage_); - statisticsMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x40000000; - break; - } - case 514: { - de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder subBuilder = null; - if (((bitField1_ & 0x80000000) != 0)) { - subBuilder = chatRequestMessage_.toBuilder(); - } - chatRequestMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatRequestMessage_); - chatRequestMessage_ = subBuilder.buildPartial(); - } - bitField1_ |= 0x80000000; - break; - } - case 522: { - de.pokerth.protocol.ProtoBuf.ChatMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000001) != 0)) { - subBuilder = chatMessage_.toBuilder(); - } - chatMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ChatMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatMessage_); - chatMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000001; - break; - } - case 530: { - de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000002) != 0)) { - subBuilder = chatRejectMessage_.toBuilder(); - } - chatRejectMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chatRejectMessage_); - chatRejectMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000002; - break; - } - case 538: { - de.pokerth.protocol.ProtoBuf.DialogMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000004) != 0)) { - subBuilder = dialogMessage_.toBuilder(); - } - dialogMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.DialogMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dialogMessage_); - dialogMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000004; - break; - } - case 546: { - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000008) != 0)) { - subBuilder = timeoutWarningMessage_.toBuilder(); - } - timeoutWarningMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeoutWarningMessage_); - timeoutWarningMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000008; - break; - } - case 554: { - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000010) != 0)) { - subBuilder = resetTimeoutMessage_.toBuilder(); - } - resetTimeoutMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resetTimeoutMessage_); - resetTimeoutMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000010; - break; - } - case 562: { - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000020) != 0)) { - subBuilder = reportAvatarMessage_.toBuilder(); - } - reportAvatarMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportAvatarMessage_); - reportAvatarMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000020; - break; - } - case 570: { - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000040) != 0)) { - subBuilder = reportAvatarAckMessage_.toBuilder(); - } - reportAvatarAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportAvatarAckMessage_); - reportAvatarAckMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000040; - break; - } - case 578: { - de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000080) != 0)) { - subBuilder = reportGameMessage_.toBuilder(); - } - reportGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportGameMessage_); - reportGameMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000080; - break; - } - case 586: { - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000100) != 0)) { - subBuilder = reportGameAckMessage_.toBuilder(); - } - reportGameAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportGameAckMessage_); - reportGameAckMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000100; - break; - } - case 594: { - de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000200) != 0)) { - subBuilder = errorMessage_.toBuilder(); - } - errorMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorMessage_); - errorMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000200; - break; - } - case 602: { - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000400) != 0)) { - subBuilder = adminRemoveGameMessage_.toBuilder(); - } - adminRemoveGameMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminRemoveGameMessage_); - adminRemoveGameMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000400; - break; - } - case 610: { - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00000800) != 0)) { - subBuilder = adminRemoveGameAckMessage_.toBuilder(); - } - adminRemoveGameAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminRemoveGameAckMessage_); - adminRemoveGameAckMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00000800; - break; - } - case 618: { - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00001000) != 0)) { - subBuilder = adminBanPlayerMessage_.toBuilder(); - } - adminBanPlayerMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminBanPlayerMessage_); - adminBanPlayerMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00001000; - break; - } - case 626: { - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00002000) != 0)) { - subBuilder = adminBanPlayerAckMessage_.toBuilder(); - } - adminBanPlayerAckMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(adminBanPlayerAckMessage_); - adminBanPlayerAckMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00002000; - break; - } - case 634: { - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00004000) != 0)) { - subBuilder = gameListSpectatorJoinedMessage_.toBuilder(); - } - gameListSpectatorJoinedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListSpectatorJoinedMessage_); - gameListSpectatorJoinedMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00004000; - break; - } - case 642: { - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00008000) != 0)) { - subBuilder = gameListSpectatorLeftMessage_.toBuilder(); - } - gameListSpectatorLeftMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameListSpectatorLeftMessage_); - gameListSpectatorLeftMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00008000; - break; - } - case 650: { - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00010000) != 0)) { - subBuilder = gameSpectatorJoinedMessage_.toBuilder(); - } - gameSpectatorJoinedMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameSpectatorJoinedMessage_); - gameSpectatorJoinedMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00010000; - break; - } - case 658: { - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.Builder subBuilder = null; - if (((bitField2_ & 0x00020000) != 0)) { - subBuilder = gameSpectatorLeftMessage_.toBuilder(); - } - gameSpectatorLeftMessage_ = input.readMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gameSpectatorLeftMessage_); - gameSpectatorLeftMessage_ = subBuilder.buildPartial(); - } - bitField2_ |= 0x00020000; - break; - } - default: { - if (!parseUnknownField(tag, input)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - // fall through - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - com.google.protobuf.Parser parser = PARSER; - if (parser == null) { - synchronized (de.pokerth.protocol.ProtoBuf.PokerTHMessage.class) { - parser = PARSER; - if (parser == null) { - parser = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - PARSER = parser; - } - } - } - return parser; - } - case GET_MEMOIZED_IS_INITIALIZED: { - return memoizedIsInitialized; - } - case SET_MEMOIZED_IS_INITIALIZED: { - memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1); - return null; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:PokerTHMessage) - private static final de.pokerth.protocol.ProtoBuf.PokerTHMessage DEFAULT_INSTANCE; + static { - // New instances are implicitly immutable so no need to make - // immutable. - DEFAULT_INSTANCE = new PokerTHMessage(); - } - - public static de.pokerth.protocol.ProtoBuf.PokerTHMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); + defaultInstance = new PokerTHMessage(true); + defaultInstance.initFields(); } + + // @@protoc_insertion_point(class_scope:PokerTHMessage) } - - + + static { } - + // @@protoc_insertion_point(outer_class_scope) }